From 23ab752b592e2d6c7db1a58e42e21a0afbbfbc32 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 24 Oct 2018 14:36:57 -0700 Subject: [PATCH 01/21] Generated from 15db3a1eb5955b63b419027978ceb13d1b8a421d (#198) Add missing files upload option for Schema migration scenario. Add support for MongoDb migration acenario. --- packages/@azure/arm-datamigration/.npmignore | 70 +- packages/@azure/arm-datamigration/LICENSE.txt | 42 +- packages/@azure/arm-datamigration/README.md | 154 +- .../lib/dataMigrationServiceClient.ts | 2 + .../lib/models/filesMappers.ts | 165 +++ .../arm-datamigration/lib/models/index.ts | 1146 +++++++++++++-- .../arm-datamigration/lib/models/mappers.ts | 1252 +++++++++++++---- .../lib/models/parameters.ts | 10 + .../lib/models/projectsMappers.ts | 22 + .../lib/models/servicesMappers.ts | 22 + .../lib/models/tasksMappers.ts | 24 +- .../arm-datamigration/lib/operations/files.ts | 579 ++++++++ .../arm-datamigration/lib/operations/index.ts | 1 + .../@azure/arm-datamigration/package.json | 2 +- 14 files changed, 2975 insertions(+), 516 deletions(-) create mode 100644 packages/@azure/arm-datamigration/lib/models/filesMappers.ts create mode 100644 packages/@azure/arm-datamigration/lib/operations/files.ts diff --git a/packages/@azure/arm-datamigration/.npmignore b/packages/@azure/arm-datamigration/.npmignore index 3b46bc6202d8..a07a455ac10c 100644 --- a/packages/@azure/arm-datamigration/.npmignore +++ b/packages/@azure/arm-datamigration/.npmignore @@ -1,35 +1,35 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-datamigration/LICENSE.txt b/packages/@azure/arm-datamigration/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-datamigration/LICENSE.txt +++ b/packages/@azure/arm-datamigration/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-datamigration/README.md b/packages/@azure/arm-datamigration/README.md index 8bf74770ccd1..75ffe42bdac4 100644 --- a/packages/@azure/arm-datamigration/README.md +++ b/packages/@azure/arm-datamigration/README.md @@ -1,77 +1,77 @@ -# Azure DataMigrationServiceClient SDK for JavaScript -This package contains an isomorphic SDK for DataMigrationServiceClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-datamigration -``` - - -## How to use - -### nodejs - Authentication, client creation and listSkus resourceSkus as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { DataMigrationServiceClient, DataMigrationServiceModels, DataMigrationServiceMappers } from "@azure/arm-datamigration"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new DataMigrationServiceClient(creds, subscriptionId); - client.resourceSkus.listSkus().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and listSkus resourceSkus as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-datamigration sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure DataMigrationServiceClient SDK for JavaScript +This package contains an isomorphic SDK for DataMigrationServiceClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-datamigration +``` + + +## How to use + +### nodejs - Authentication, client creation and listSkus resourceSkus as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { DataMigrationServiceClient, DataMigrationServiceModels, DataMigrationServiceMappers } from "@azure/arm-datamigration"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DataMigrationServiceClient(creds, subscriptionId); + client.resourceSkus.listSkus().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and listSkus resourceSkus as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-datamigration sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClient.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClient.ts index 026f9af9a97b..23e16af742db 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClient.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClient.ts @@ -23,6 +23,7 @@ class DataMigrationServiceClient extends DataMigrationServiceClientContext { projects: operations.Projects; usages: operations.Usages; operations: operations.Operations; + files: operations.Files; /** * Initializes a new instance of the DataMigrationServiceClient class. @@ -38,6 +39,7 @@ class DataMigrationServiceClient extends DataMigrationServiceClientContext { this.projects = new operations.Projects(this); this.usages = new operations.Usages(this); this.operations = new operations.Operations(this); + this.files = new operations.Files(this); } } diff --git a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts new file mode 100644 index 000000000000..5a4756b2d0a3 --- /dev/null +++ b/packages/@azure/arm-datamigration/lib/models/filesMappers.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. + */ + +export { + discriminators, + FileList, + ProjectFile, + Resource, + BaseResource, + ProjectFileProperties, + ApiError, + ODataError, + FileStorageInfo, + TrackedResource, + ProjectTask, + ProjectTaskProperties, + CommandProperties, + DataMigrationService, + ServiceSku, + Project, + ConnectionInfo, + DatabaseInfo, + ConnectToSourceMySqlTaskProperties, + ConnectToSourceMySqlTaskInput, + MySqlConnectionInfo, + ConnectToSourceNonSqlTaskOutput, + ServerProperties, + ReportableException, + MigrateSchemaSqlServerSqlDbTaskProperties, + MigrateSchemaSqlServerSqlDbTaskInput, + SqlMigrationTaskInput, + SqlConnectionInfo, + MigrateSchemaSqlServerSqlDbDatabaseInput, + SchemaMigrationSetting, + MigrateSchemaSqlServerSqlDbTaskOutput, + MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, + MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, + MigrateSchemaSqlServerSqlDbTaskOutputError, + MigrateSchemaSqlTaskOutputError, + MigrateSyncCompleteCommandProperties, + MigrateSyncCompleteCommandInput, + MigrateSyncCompleteCommandOutput, + PostgreSqlConnectionInfo, + MongoDbConnectionInfo, + GetTdeCertificatesSqlTaskProperties, + GetTdeCertificatesSqlTaskInput, + FileShare, + SelectedCertificateInput, + GetTdeCertificatesSqlTaskOutput, + ValidateMongoDbTaskProperties, + MongoDbMigrationSettings, + MongoDbDatabaseSettings, + MongoDbCollectionSettings, + MongoDbShardKeySetting, + MongoDbShardKeyField, + MongoDbThrottlingSettings, + MongoDbMigrationProgress, + MongoDbProgress, + MongoDbError, + MongoDbDatabaseProgress, + MongoDbCollectionProgress, + ValidateMigrationInputSqlServerSqlMITaskProperties, + ValidateMigrationInputSqlServerSqlMITaskInput, + MigrateSqlServerSqlMIDatabaseInput, + BlobShare, + ValidateMigrationInputSqlServerSqlMITaskOutput, + DatabaseBackupInfo, + ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, + ValidateSyncMigrationInputSqlServerTaskInput, + MigrateSqlServerSqlDbSyncDatabaseInput, + ValidateSyncMigrationInputSqlServerTaskOutput, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, + MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, + MigrateMySqlAzureDbForMySqlSyncTaskProperties, + MigrateMySqlAzureDbForMySqlSyncTaskInput, + MigrateMySqlAzureDbForMySqlSyncDatabaseInput, + MigrateMySqlAzureDbForMySqlSyncTaskOutput, + MigrateSqlServerSqlDbSyncTaskInput, + MigrationValidationOptions, + MigrateSqlServerSqlDbSyncTaskProperties, + MigrateSqlServerSqlDbSyncTaskOutput, + MigrateSqlServerSqlDbTaskInput, + MigrateSqlServerSqlDbDatabaseInput, + MigrateSqlServerSqlDbTaskProperties, + MigrateSqlServerSqlDbTaskOutput, + MigrateSqlServerSqlMITaskInput, + MigrateSqlServerSqlMITaskProperties, + MigrateSqlServerSqlMITaskOutput, + MigrateMongoDbTaskProperties, + ConnectToTargetAzureDbForMySqlTaskProperties, + ConnectToTargetAzureDbForMySqlTaskInput, + ConnectToTargetAzureDbForMySqlTaskOutput, + ConnectToTargetSqlMITaskProperties, + ConnectToTargetSqlMITaskInput, + ConnectToTargetSqlMITaskOutput, + GetUserTablesSqlSyncTaskProperties, + GetUserTablesSqlSyncTaskInput, + GetUserTablesSqlSyncTaskOutput, + DatabaseTable, + GetUserTablesSqlTaskProperties, + GetUserTablesSqlTaskInput, + GetUserTablesSqlTaskOutput, + ConnectToTargetSqlSqlDbSyncTaskProperties, + ConnectToTargetSqlSqlDbSyncTaskInput, + ConnectToTargetSqlDbTaskOutput, + ConnectToTargetSqlDbTaskProperties, + ConnectToTargetSqlDbTaskInput, + ConnectToSourceSqlServerSyncTaskProperties, + ConnectToSourceSqlServerTaskInput, + ConnectToSourceSqlServerTaskOutput, + ConnectToSourceSqlServerTaskProperties, + ConnectToMongoDbTaskProperties, + MongoDbClusterInfo, + MongoDbDatabaseInfo, + MongoDbObjectInfo, + MongoDbCollectionInfo, + MongoDbShardKeyInfo, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, + SyncMigrationDatabaseErrorEvent, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel, + MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, + MigrateMySqlAzureDbForMySqlSyncTaskOutputError, + MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel, + MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, + MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel, + MigrateSqlServerSqlDbSyncTaskOutputDatabaseError, + MigrateSqlServerSqlDbSyncTaskOutputError, + MigrateSqlServerSqlDbSyncTaskOutputTableLevel, + MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, + MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel, + MigrateSqlServerSqlDbTaskOutputError, + MigrateSqlServerSqlDbTaskOutputTableLevel, + MigrateSqlServerSqlDbTaskOutputDatabaseLevel, + DataItemMigrationSummaryResult, + DatabaseSummaryResult, + MigrateSqlServerSqlDbTaskOutputMigrationLevel, + MigrationValidationResult, + MigrationValidationDatabaseSummaryResult, + MigrationReportResult, + MigrateSqlServerSqlMITaskOutputError, + MigrateSqlServerSqlMITaskOutputLoginLevel, + MigrateSqlServerSqlMITaskOutputAgentJobLevel, + MigrateSqlServerSqlMITaskOutputDatabaseLevel, + MigrateSqlServerSqlMITaskOutputMigrationLevel, + StartMigrationScenarioServerRoleResult, + ConnectToSourceSqlServerTaskOutputAgentJobLevel, + MigrationEligibilityInfo, + ConnectToSourceSqlServerTaskOutputLoginLevel, + ConnectToSourceSqlServerTaskOutputDatabaseLevel, + DatabaseFileInfo, + ConnectToSourceSqlServerTaskOutputTaskLevel +} from "../models/mappers"; + diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index c4ed2ed235b9..df4cb4215707 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -14,6 +14,108 @@ import * as msRest from "ms-rest-js"; export { BaseResource, CloudError }; +/** + * @interface + * An interface representing Resource. + * ARM resource. + * + * @extends BaseResource + */ +export interface Resource extends BaseResource { + /** + * @member {string} [id] Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; +} + +/** + * @interface + * An interface representing TrackedResource. + * ARM tracked top level resource. + * + * @extends Resource + */ +export interface TrackedResource extends Resource { + /** + * @member {{ [propertyName: string]: string }} [tags] Resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * @member {string} location Resource location. + */ + location: string; +} + +/** + * @interface + * An interface representing ProjectFileProperties. + * Base class for file properties. + * + */ +export interface ProjectFileProperties { + /** + * @member {string} [extension] Optional File extension. If submitted it + * should not have a leading period and must match the extension from + * filePath. + */ + extension?: string; + /** + * @member {string} [filePath] Relative path of this file resource. This + * property can be set when creating or updating the file resource. + */ + filePath?: string; + /** + * @member {Date} [lastModified] Modification DateTime. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModified?: Date; + /** + * @member {string} [mediaType] File content type. This propery can be + * modified to reflect the file content type. + */ + mediaType?: string; + /** + * @member {number} [size] File size. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly size?: number; +} + +/** + * @interface + * An interface representing ProjectFile. + * A file resource + * + * @extends Resource + */ +export interface ProjectFile extends Resource { + /** + * @member {string} [etag] HTTP strong entity tag value. This is ignored if + * submitted. + */ + etag?: string; + /** + * @member {ProjectFileProperties} [properties] Custom file properties + */ + properties?: ProjectFileProperties; +} + /** * @interface * An interface representing ODataError. @@ -174,52 +276,6 @@ export interface MigrateSyncCompleteCommandProperties { readonly output?: MigrateSyncCompleteCommandOutput; } -/** - * @interface - * An interface representing Resource. - * ARM resource. - * - * @extends BaseResource - */ -export interface Resource extends BaseResource { - /** - * @member {string} [id] Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly id?: string; - /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly name?: string; - /** - * @member {string} [type] Resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly type?: string; -} - -/** - * @interface - * An interface representing TrackedResource. - * ARM tracked top level resource. - * - * @extends Resource - */ -export interface TrackedResource extends Resource { - /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. - */ - tags?: { [propertyName: string]: string }; - /** - * @member {string} location Resource location. - */ - location: string; -} - /** * @interface * An interface representing GetTdeCertificatesSqlTaskOutput. @@ -286,7 +342,7 @@ export interface FileShare { /** * Contains the possible cases for ConnectionInfo. */ -export type ConnectionInfoUnion = ConnectionInfo | PostgreSqlConnectionInfo | MySqlConnectionInfo | SqlConnectionInfo; +export type ConnectionInfoUnion = ConnectionInfo | PostgreSqlConnectionInfo | MySqlConnectionInfo | MongoDbConnectionInfo | SqlConnectionInfo; /** * @interface @@ -371,6 +427,33 @@ export interface MySqlConnectionInfo { port: number; } +/** + * @interface + * An interface representing MongoDbConnectionInfo. + * Describes a connection to a MongoDB data source + * + */ +export interface MongoDbConnectionInfo { + /** + * @member {string} type Polymorphic Discriminator + */ + type: "MongoDbConnectionInfo"; + /** + * @member {string} [userName] User name + */ + userName?: string; + /** + * @member {string} [password] Password credential. + */ + password?: string; + /** + * @member {string} connectionString A MongoDB connection string or blob + * container URL. The user name and password can be specified here or in the + * userName and password properties + */ + connectionString: string; +} + /** * @interface * An interface representing SqlConnectionInfo. @@ -451,7 +534,7 @@ export interface GetTdeCertificatesSqlTaskInput { /** * Contains the possible cases for ProjectTaskProperties. */ -export type ProjectTaskPropertiesUnion = ProjectTaskProperties | GetTdeCertificatesSqlTaskProperties | ValidateMigrationInputSqlServerSqlMITaskProperties | ValidateMigrationInputSqlServerSqlDbSyncTaskProperties | MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties | MigrateMySqlAzureDbForMySqlSyncTaskProperties | MigrateSqlServerSqlDbSyncTaskProperties | MigrateSqlServerSqlDbTaskProperties | MigrateSqlServerSqlMITaskProperties | ConnectToTargetAzureDbForMySqlTaskProperties | ConnectToTargetSqlMITaskProperties | GetUserTablesSqlSyncTaskProperties | GetUserTablesSqlTaskProperties | ConnectToTargetSqlSqlDbSyncTaskProperties | ConnectToTargetSqlDbTaskProperties | ConnectToSourceSqlServerSyncTaskProperties | ConnectToSourceSqlServerTaskProperties | ConnectToSourceMySqlTaskProperties | MigrateSchemaSqlServerSqlDbTaskProperties; +export type ProjectTaskPropertiesUnion = ProjectTaskProperties | GetTdeCertificatesSqlTaskProperties | ValidateMongoDbTaskProperties | ValidateMigrationInputSqlServerSqlMITaskProperties | ValidateMigrationInputSqlServerSqlDbSyncTaskProperties | MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties | MigrateMySqlAzureDbForMySqlSyncTaskProperties | MigrateSqlServerSqlDbSyncTaskProperties | MigrateSqlServerSqlDbTaskProperties | MigrateSqlServerSqlMITaskProperties | MigrateMongoDbTaskProperties | ConnectToTargetAzureDbForMySqlTaskProperties | ConnectToTargetSqlMITaskProperties | GetUserTablesSqlSyncTaskProperties | GetUserTablesSqlTaskProperties | ConnectToTargetSqlSqlDbSyncTaskProperties | ConnectToTargetSqlDbTaskProperties | ConnectToSourceSqlServerSyncTaskProperties | ConnectToSourceSqlServerTaskProperties | ConnectToMongoDbTaskProperties | ConnectToSourceMySqlTaskProperties | MigrateSchemaSqlServerSqlDbTaskProperties; /** * @interface @@ -533,6 +616,358 @@ export interface GetTdeCertificatesSqlTaskProperties { readonly output?: GetTdeCertificatesSqlTaskOutput[]; } +/** + * @interface + * An interface representing MongoDbError. + * Describes an error or warning that occurred during a MongoDB migration + * + */ +export interface MongoDbError { + /** + * @member {string} [code] The non-localized, machine-readable code that + * describes the error or warning + */ + code?: string; + /** + * @member {number} [count] The number of times the error or warning has + * occurred + */ + count?: number; + /** + * @member {string} [message] The localized, human-readable message that + * describes the error or warning + */ + message?: string; + /** + * @member {MongoDbErrorType} [type] The type of error or warning. Possible + * values include: 'Error', 'ValidationError', 'Warning' + */ + type?: MongoDbErrorType; +} + +/** + * @interface + * An interface representing MongoDbProgress. + * Base class for MongoDB migration outputs + * + */ +export interface MongoDbProgress { + /** + * @member {number} bytesCopied The number of document bytes copied during + * the Copying stage + */ + bytesCopied: number; + /** + * @member {number} documentsCopied The number of documents copied during the + * Copying stage + */ + documentsCopied: number; + /** + * @member {string} elapsedTime The elapsed time in the format + * [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + */ + elapsedTime: string; + /** + * @member {{ [propertyName: string]: MongoDbError }} errors The errors and + * warnings that have occurred for the current object. The keys are the error + * codes. + */ + errors: { [propertyName: string]: MongoDbError }; + /** + * @member {number} eventsPending The number of oplog events awaiting replay + */ + eventsPending: number; + /** + * @member {number} eventsReplayed The number of oplog events replayed so far + */ + eventsReplayed: number; + /** + * @member {Date} [lastEventTime] The timestamp of the last oplog event + * received, or null if no oplog event has been received yet + */ + lastEventTime?: Date; + /** + * @member {Date} [lastReplayTime] The timestamp of the last oplog event + * replayed, or null if no oplog event has been replayed yet + */ + lastReplayTime?: Date; + /** + * @member {string} [name] The name of the progress object. For a collection, + * this is the unqualified collection name. For a database, this is the + * database name. For the overall migration, this is null. + */ + name?: string; + /** + * @member {string} [qualifiedName] The qualified name of the progress + * object. For a collection, this is the database-qualified name. For a + * database, this is the database name. For the overall migration, this is + * null. + */ + qualifiedName?: string; + /** + * @member {ResultType} resultType The type of progress object. Possible + * values include: 'Migration', 'Database', 'Collection' + */ + resultType: ResultType; + /** + * @member {MongoDbMigrationState} state Possible values include: + * 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', + * 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', + * 'Failed' + */ + state: MongoDbMigrationState; + /** + * @member {number} totalBytes The total number of document bytes on the + * source at the beginning of the Copying stage, or -1 if the total size was + * unknown + */ + totalBytes: number; + /** + * @member {number} totalDocuments The total number of documents on the + * source at the beginning of the Copying stage, or -1 if the total count was + * unknown + */ + totalDocuments: number; +} + +/** + * @interface + * An interface representing MongoDbCollectionProgress. + * Describes the progress of a collection + * + * @extends MongoDbProgress + */ +export interface MongoDbCollectionProgress extends MongoDbProgress { +} + +/** + * @interface + * An interface representing MongoDbDatabaseProgress. + * Describes the progress of a database + * + * @extends MongoDbProgress + */ +export interface MongoDbDatabaseProgress extends MongoDbProgress { + /** + * @member {{ [propertyName: string]: MongoDbCollectionProgress }} + * [collections] The progress of the collections in the database. The keys + * are the unqualified names of the collections + */ + collections?: { [propertyName: string]: MongoDbCollectionProgress }; +} + +/** + * @interface + * An interface representing MongoDbMigrationProgress. + * Describes the progress of the overall migration + * + * @extends MongoDbProgress + */ +export interface MongoDbMigrationProgress extends MongoDbProgress { + /** + * @member {{ [propertyName: string]: MongoDbDatabaseProgress }} [databases] + * The progress of the databases in the migration. The keys are the names of + * the databases + */ + databases?: { [propertyName: string]: MongoDbDatabaseProgress }; +} + +/** + * @interface + * An interface representing MongoDbThrottlingSettings. + * Specifies resource limits for the migration + * + */ +export interface MongoDbThrottlingSettings { + /** + * @member {number} [minFreeCpu] The percentage of CPU time that the migrator + * will try to avoid using, from 0 to 100 + */ + minFreeCpu?: number; + /** + * @member {number} [minFreeMemoryMb] The number of megabytes of RAM that the + * migrator will try to avoid using + */ + minFreeMemoryMb?: number; + /** + * @member {number} [maxParallelism] The maximum number of work items (e.g. + * collection copies) that will be processed in parallel + */ + maxParallelism?: number; +} + +/** + * @interface + * An interface representing MongoDbShardKeyField. + * Describes a field reference within a MongoDB shard key + * + */ +export interface MongoDbShardKeyField { + /** + * @member {string} name The name of the field + */ + name: string; + /** + * @member {MongoDbShardKeyOrder} order The field ordering. Possible values + * include: 'Forward', 'Reverse', 'Hashed' + */ + order: MongoDbShardKeyOrder; +} + +/** + * @interface + * An interface representing MongoDbShardKeySetting. + * Describes a MongoDB shard key + * + */ +export interface MongoDbShardKeySetting { + /** + * @member {MongoDbShardKeyField[]} fields The fields within the shard key + */ + fields: MongoDbShardKeyField[]; + /** + * @member {boolean} isUnique Whether the shard key is unique + */ + isUnique: boolean; +} + +/** + * @interface + * An interface representing MongoDbCollectionSettings. + * Describes how an individual MongoDB collection should be migrated + * + */ +export interface MongoDbCollectionSettings { + /** + * @member {boolean} [canDelete] Whether the migrator is allowed to drop the + * target collection in the course of performing a migration. The default is + * true. + */ + canDelete?: boolean; + /** + * @member {MongoDbShardKeySetting} [shardKey] + */ + shardKey?: MongoDbShardKeySetting; + /** + * @member {number} [targetRUs] The RUs that should be configured on a + * CosmosDB target, or null to use the default. This has no effect on + * non-CosmosDB targets. + */ + targetRUs?: number; +} + +/** + * @interface + * An interface representing MongoDbDatabaseSettings. + * Describes how an individual MongoDB database should be migrated + * + */ +export interface MongoDbDatabaseSettings { + /** + * @member {{ [propertyName: string]: MongoDbCollectionSettings }} + * collections The collections on the source database to migrate to the + * target. The keys are the unqualified names of the collections. + */ + collections: { [propertyName: string]: MongoDbCollectionSettings }; + /** + * @member {number} [targetRUs] The RUs that should be configured on a + * CosmosDB target, or null to use the default, or 0 if throughput should not + * be provisioned for the database. This has no effect on non-CosmosDB + * targets. + */ + targetRUs?: number; +} + +/** + * @interface + * An interface representing MongoDbMigrationSettings. + * Describes how a MongoDB data migration should be performed + * + */ +export interface MongoDbMigrationSettings { + /** + * @member {number} [boostRUs] The RU limit on a CosmosDB target that + * collections will be temporarily increased to (if lower) during the initial + * copy of a migration, from 10,000 to 1,000,000, or 0 to use the default + * boost (which is generally the maximum), or null to not boost the RUs. This + * setting has no effect on non-CosmosDB targets. + */ + boostRUs?: number; + /** + * @member {{ [propertyName: string]: MongoDbDatabaseSettings }} databases + * The databases on the source cluster to migrate to the target. The keys are + * the names of the databases. + */ + databases: { [propertyName: string]: MongoDbDatabaseSettings }; + /** + * @member {MongoDbReplication} [replication] Describes how changes will be + * replicated from the source to the target. The default is OneTime. Possible + * values include: 'Disabled', 'OneTime', 'Continuous' + */ + replication?: MongoDbReplication; + /** + * @member {MongoDbConnectionInfo} source Settings used to connect to the + * source cluster + */ + source: MongoDbConnectionInfo; + /** + * @member {MongoDbConnectionInfo} target Settings used to connect to the + * target cluster + */ + target: MongoDbConnectionInfo; + /** + * @member {MongoDbThrottlingSettings} [throttling] Settings used to limit + * the resource usage of the migration + */ + throttling?: MongoDbThrottlingSettings; +} + +/** + * @interface + * An interface representing ValidateMongoDbTaskProperties. + * Properties for the task that validates a migration between MongoDB data + * sources + * + */ +export interface ValidateMongoDbTaskProperties { + /** + * @member {string} taskType Polymorphic Discriminator + */ + taskType: "Validate.MongoDb"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {TaskState} [state] The state of the task. This is ignored if + * submitted. Possible values include: 'Unknown', 'Queued', 'Running', + * 'Canceled', 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: TaskState; + /** + * @member {CommandPropertiesUnion[]} [commands] Array of command properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly commands?: CommandPropertiesUnion[]; + /** + * @member {MongoDbMigrationSettings} [input] + */ + input?: MongoDbMigrationSettings; + /** + * @member {MongoDbMigrationProgress[]} [output] An array containing a single + * MongoDbMigrationProgress object + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly output?: MongoDbMigrationProgress[]; +} + /** * @interface * An interface representing DatabaseBackupInfo. @@ -3675,6 +4110,49 @@ export interface MigrateSqlServerSqlMITaskProperties { readonly output?: MigrateSqlServerSqlMITaskOutputUnion[]; } +/** + * @interface + * An interface representing MigrateMongoDbTaskProperties. + * Properties for the task that migrates data between MongoDB data sources + * + */ +export interface MigrateMongoDbTaskProperties { + /** + * @member {string} taskType Polymorphic Discriminator + */ + taskType: "Migrate.MongoDb"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {TaskState} [state] The state of the task. This is ignored if + * submitted. Possible values include: 'Unknown', 'Queued', 'Running', + * 'Canceled', 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: TaskState; + /** + * @member {CommandPropertiesUnion[]} [commands] Array of command properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly commands?: CommandPropertiesUnion[]; + /** + * @member {MongoDbMigrationSettings} [input] + */ + input?: MongoDbMigrationSettings; + /** + * @member {MongoDbProgress[]} [output] **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly output?: MongoDbProgress[]; +} + /** * @interface * An interface representing ConnectToTargetAzureDbForMySqlTaskOutput. @@ -4733,6 +5211,198 @@ export interface ConnectToSourceSqlServerTaskProperties { readonly output?: ConnectToSourceSqlServerTaskOutputUnion[]; } +/** + * @interface + * An interface representing MongoDbShardKeyInfo. + * Describes a MongoDB shard key + * + */ +export interface MongoDbShardKeyInfo { + /** + * @member {MongoDbShardKeyField[]} fields The fields within the shard key + */ + fields: MongoDbShardKeyField[]; + /** + * @member {boolean} isUnique Whether the shard key is unique + */ + isUnique: boolean; +} + +/** + * @interface + * An interface representing MongoDbObjectInfo. + * Describes a database or collection within a MongoDB data source + * + */ +export interface MongoDbObjectInfo { + /** + * @member {number} averageDocumentSize The average document size, or -1 if + * the average size is unknown + */ + averageDocumentSize: number; + /** + * @member {number} dataSize The estimated total data size, in bytes, or -1 + * if the size is unknown. + */ + dataSize: number; + /** + * @member {number} documentCount The estimated total number of documents, or + * -1 if the document count is unknown + */ + documentCount: number; + /** + * @member {string} name The unqualified name of the database or collection + */ + name: string; + /** + * @member {string} qualifiedName The qualified name of the database or + * collection. For a collection, this is the database-qualified name. + */ + qualifiedName: string; +} + +/** + * @interface + * An interface representing MongoDbCollectionInfo. + * Describes a supported collection within a MongoDB database + * + * @extends MongoDbObjectInfo + */ +export interface MongoDbCollectionInfo extends MongoDbObjectInfo { + /** + * @member {string} databaseName The name of the database containing the + * collection + */ + databaseName: string; + /** + * @member {boolean} isCapped Whether the collection is a capped collection + * (i.e. whether it has a fixed size and acts like a circular buffer) + */ + isCapped: boolean; + /** + * @member {boolean} isSystemCollection Whether the collection is system + * collection + */ + isSystemCollection: boolean; + /** + * @member {boolean} isView Whether the collection is a view of another + * collection + */ + isView: boolean; + /** + * @member {MongoDbShardKeyInfo} [shardKey] The shard key on the collection, + * or null if the collection is not sharded + */ + shardKey?: MongoDbShardKeyInfo; + /** + * @member {boolean} supportsSharding Whether the database has sharding + * enabled. Note that the migration task will enable sharding on the target + * if necessary. + */ + supportsSharding: boolean; + /** + * @member {string} [viewOf] The name of the collection that this is a view + * of, if IsView is true + */ + viewOf?: string; +} + +/** + * @interface + * An interface representing MongoDbDatabaseInfo. + * Describes a database within a MongoDB data source + * + * @extends MongoDbObjectInfo + */ +export interface MongoDbDatabaseInfo extends MongoDbObjectInfo { + /** + * @member {MongoDbCollectionInfo[]} collections A list of supported + * collections in a MongoDB database + */ + collections: MongoDbCollectionInfo[]; + /** + * @member {boolean} supportsSharding Whether the database has sharding + * enabled. Note that the migration task will enable sharding on the target + * if necessary. + */ + supportsSharding: boolean; +} + +/** + * @interface + * An interface representing MongoDbClusterInfo. + * Describes a MongoDB data source + * + */ +export interface MongoDbClusterInfo { + /** + * @member {MongoDbDatabaseInfo[]} databases A list of non-system databases + * in the cluster + */ + databases: MongoDbDatabaseInfo[]; + /** + * @member {boolean} supportsSharding Whether the cluster supports sharded + * collections + */ + supportsSharding: boolean; + /** + * @member {MongoDbClusterType} type The type of data source. Possible values + * include: 'BlobContainer', 'CosmosDb', 'MongoDb' + */ + type: MongoDbClusterType; + /** + * @member {string} version The version of the data source in the form x.y.z + * (e.g. 3.6.7). Not used if Type is BlobContainer. + */ + version: string; +} + +/** + * @interface + * An interface representing ConnectToMongoDbTaskProperties. + * Properties for the task that validates the connection to and provides + * information about a MongoDB server + * + */ +export interface ConnectToMongoDbTaskProperties { + /** + * @member {string} taskType Polymorphic Discriminator + */ + taskType: "Connect.MongoDb"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {TaskState} [state] The state of the task. This is ignored if + * submitted. Possible values include: 'Unknown', 'Queued', 'Running', + * 'Canceled', 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: TaskState; + /** + * @member {CommandPropertiesUnion[]} [commands] Array of command properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly commands?: CommandPropertiesUnion[]; + /** + * @member {MongoDbConnectionInfo} [input] + */ + input?: MongoDbConnectionInfo; + /** + * @member {MongoDbClusterInfo[]} [output] An array containing a single + * MongoDbClusterInfo object + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly output?: MongoDbClusterInfo[]; +} + /** * @interface * An interface representing ProjectTask. @@ -4775,45 +5445,16 @@ export interface ServiceSku { */ family?: string; /** - * @member {string} [size] The size of the SKU, used when the name alone does - * not denote a service size or when a SKU has multiple performance classes - * within a family, e.g. 'A1' for virtual machines - */ - size?: string; - /** - * @member {number} [capacity] The capacity of the SKU, if it supports - * scaling - */ - capacity?: number; -} - -/** - * @interface - * An interface representing DataMigrationServiceProperties. - * Properties of the Database Migration Service instance - * - */ -export interface DataMigrationServiceProperties { - /** - * @member {ServiceProvisioningState} [provisioningState] The resource's - * provisioning state. Possible values include: 'Accepted', 'Deleting', - * 'Deploying', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', - * 'FailedToStop', 'Succeeded', 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: ServiceProvisioningState; - /** - * @member {string} [publicKey] The public key of the service, used to - * encrypt secrets sent to the service + * @member {string} [size] The size of the SKU, used when the name alone does + * not denote a service size or when a SKU has multiple performance classes + * within a family, e.g. 'A1' for virtual machines */ - publicKey?: string; + size?: string; /** - * @member {string} virtualSubnetId The ID of the - * Microsoft.Network/virtualNetworks/subnets resource to which the service - * should be joined + * @member {number} [capacity] The capacity of the SKU, if it supports + * scaling */ - virtualSubnetId: string; + capacity?: number; } /** @@ -4890,53 +5531,6 @@ export interface DatabaseInfo { sourceDatabaseName: string; } -/** - * @interface - * An interface representing ProjectProperties. - * Project-specific properties - * - */ -export interface ProjectProperties { - /** - * @member {ProjectSourcePlatform} sourcePlatform Source platform for the - * project. Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'Unknown' - */ - sourcePlatform: ProjectSourcePlatform; - /** - * @member {ProjectTargetPlatform} targetPlatform Target platform for the - * project. Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', - * 'AzureDbForPostgreSql', 'Unknown' - */ - targetPlatform: ProjectTargetPlatform; - /** - * @member {Date} [creationTime] UTC Date and time when project was created - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly creationTime?: Date; - /** - * @member {ConnectionInfoUnion} [sourceConnectionInfo] Information for - * connecting to source - */ - sourceConnectionInfo?: ConnectionInfoUnion; - /** - * @member {ConnectionInfoUnion} [targetConnectionInfo] Information for - * connecting to target - */ - targetConnectionInfo?: ConnectionInfoUnion; - /** - * @member {DatabaseInfo[]} [databasesInfo] List of DatabaseInfo - */ - databasesInfo?: DatabaseInfo[]; - /** - * @member {ProjectProvisioningState} [provisioningState] The project's - * provisioning state. Possible values include: 'Deleting', 'Succeeded' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: ProjectProvisioningState; -} - /** * @interface * An interface representing Project. @@ -4947,13 +5541,14 @@ export interface ProjectProperties { export interface Project extends TrackedResource { /** * @member {ProjectSourcePlatform} sourcePlatform Source platform for the - * project. Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'Unknown' + * project. Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', + * 'Unknown' */ sourcePlatform: ProjectSourcePlatform; /** * @member {ProjectTargetPlatform} targetPlatform Target platform for the * project. Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', - * 'AzureDbForPostgreSql', 'Unknown' + * 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' */ targetPlatform: ProjectTargetPlatform; /** @@ -4998,6 +5593,23 @@ export interface ApiError { error?: ODataError; } +/** + * @interface + * An interface representing FileStorageInfo. + * File storage information. + * + */ +export interface FileStorageInfo { + /** + * @member {string} [uri] A URI that can be used to access the file content. + */ + uri?: string; + /** + * @member {{ [propertyName: string]: string }} [headers] + */ + headers?: { [propertyName: string]: string }; +} + /** * @interface * An interface representing ServiceOperationDisplay. @@ -5606,6 +6218,10 @@ export interface SchemaMigrationSetting { * */ export interface MigrateSchemaSqlServerSqlDbDatabaseInput { + /** + * @member {string} [name] Name of source database + */ + name?: string; /** * @member {string} [targetDatabaseName] Name of target database */ @@ -6562,6 +7178,20 @@ export interface ServiceOperationList extends Array { nextLink?: string; } +/** + * @interface + * An interface representing the FileList. + * OData page of files + * + * @extends Array + */ +export interface FileList extends Array { + /** + * @member {string} [nextLink] URL to load the next page of files + */ + nextLink?: string; +} + /** * Defines values for CommandState. * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', @@ -6617,6 +7247,84 @@ export enum AuthenticationType { ActiveDirectoryPassword = 'ActiveDirectoryPassword', } +/** + * Defines values for MongoDbErrorType. + * Possible values include: 'Error', 'ValidationError', 'Warning' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbErrorType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum MongoDbErrorType { + Error = 'Error', + ValidationError = 'ValidationError', + Warning = 'Warning', +} + +/** + * Defines values for MongoDbMigrationState. + * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', + * 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', + * 'Complete', 'Canceled', 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbMigrationState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum MongoDbMigrationState { + NotStarted = 'NotStarted', + ValidatingInput = 'ValidatingInput', + Initializing = 'Initializing', + Restarting = 'Restarting', + Copying = 'Copying', + InitialReplay = 'InitialReplay', + Replaying = 'Replaying', + Finalizing = 'Finalizing', + Complete = 'Complete', + Canceled = 'Canceled', + Failed = 'Failed', +} + +/** + * Defines values for MongoDbShardKeyOrder. + * Possible values include: 'Forward', 'Reverse', 'Hashed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbShardKeyOrder = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum MongoDbShardKeyOrder { + Forward = 'Forward', + Reverse = 'Reverse', + Hashed = 'Hashed', +} + +/** + * Defines values for MongoDbReplication. + * Possible values include: 'Disabled', 'OneTime', 'Continuous' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbReplication = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum MongoDbReplication { + Disabled = 'Disabled', + OneTime = 'OneTime', + Continuous = 'Continuous', +} + /** * Defines values for BackupType. * Possible values include: 'Database', 'TransactionLog', 'File', @@ -6978,6 +7686,23 @@ export enum ServerLevelPermissionsGroup { MigrationFromMySQLToAzureDBForMySQL = 'MigrationFromMySQLToAzureDBForMySQL', } +/** + * Defines values for MongoDbClusterType. + * Possible values include: 'BlobContainer', 'CosmosDb', 'MongoDb' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbClusterType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum MongoDbClusterType { + BlobContainer = 'BlobContainer', + CosmosDb = 'CosmosDb', + MongoDb = 'MongoDb', +} + /** * Defines values for TaskState. * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', @@ -7029,7 +7754,7 @@ export enum ServiceProvisioningState { /** * Defines values for ProjectTargetPlatform. * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', - * 'AzureDbForPostgreSql', 'Unknown' + * 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: @@ -7043,12 +7768,13 @@ export enum ProjectTargetPlatform { SQLMI = 'SQLMI', AzureDbForMySql = 'AzureDbForMySql', AzureDbForPostgreSql = 'AzureDbForPostgreSql', + MongoDb = 'MongoDb', Unknown = 'Unknown', } /** * Defines values for ProjectSourcePlatform. - * Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'Unknown' + * Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: @@ -7061,6 +7787,7 @@ export enum ProjectSourcePlatform { SQL = 'SQL', MySQL = 'MySQL', PostgreSql = 'PostgreSql', + MongoDb = 'MongoDb', Unknown = 'Unknown', } @@ -7257,6 +7984,22 @@ export enum ErrorType { Error = 'Error', } +/** + * Defines values for ResultType. + * Possible values include: 'Migration', 'Database', 'Collection' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResultType = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ResultType { + Migration = 'Migration', + Database = 'Database', + Collection = 'Collection', +} + /** * Contains response data for the listSkus operation. */ @@ -7864,3 +8607,136 @@ export type OperationsListNextResponse = ServiceOperationList & { parsedBody: ServiceOperationList; }; }; + +/** + * Contains response data for the list operation. + */ +export type FilesListResponse = FileList & { + /** + * 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: FileList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type FilesGetResponse = ProjectFile & { + /** + * 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: ProjectFile; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type FilesCreateOrUpdateResponse = ProjectFile & { + /** + * 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: ProjectFile; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type FilesUpdateResponse = ProjectFile & { + /** + * 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: ProjectFile; + }; +}; + +/** + * Contains response data for the read operation. + */ +export type FilesReadResponse = FileStorageInfo & { + /** + * 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: FileStorageInfo; + }; +}; + +/** + * Contains response data for the readWrite operation. + */ +export type FilesReadWriteResponse = FileStorageInfo & { + /** + * 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: FileStorageInfo; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type FilesListNextResponse = FileList & { + /** + * 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: FileList; + }; +}; diff --git a/packages/@azure/arm-datamigration/lib/models/mappers.ts b/packages/@azure/arm-datamigration/lib/models/mappers.ts index d54d849f05a6..93a282240460 100644 --- a/packages/@azure/arm-datamigration/lib/models/mappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/mappers.ts @@ -14,6 +14,132 @@ import * as msRest from "ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; +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, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ProjectFileProperties: msRest.CompositeMapper = { + serializedName: "ProjectFileProperties", + type: { + name: "Composite", + className: "ProjectFileProperties", + modelProperties: { + extension: { + serializedName: "extension", + type: { + name: "String" + } + }, + filePath: { + serializedName: "filePath", + type: { + name: "String" + } + }, + lastModified: { + readOnly: true, + serializedName: "lastModified", + type: { + name: "DateTime" + } + }, + mediaType: { + serializedName: "mediaType", + type: { + name: "String" + } + }, + size: { + readOnly: true, + serializedName: "size", + type: { + name: "Number" + } + } + } + } +}; + +export const ProjectFile: msRest.CompositeMapper = { + serializedName: "ProjectFile", + type: { + name: "Composite", + className: "ProjectFile", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ProjectFileProperties" + } + } + } + } +}; + export const ODataError: msRest.CompositeMapper = { serializedName: "ODataError", type: { @@ -209,66 +335,6 @@ export const MigrateSyncCompleteCommandProperties: msRest.CompositeMapper = { } }; -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, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - export const GetTdeCertificatesSqlTaskOutput: msRest.CompositeMapper = { serializedName: "GetTdeCertificatesSqlTaskOutput", type: { @@ -456,6 +522,26 @@ export const MySqlConnectionInfo: msRest.CompositeMapper = { } }; +export const MongoDbConnectionInfo: msRest.CompositeMapper = { + serializedName: "MongoDbConnectionInfo", + type: { + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "MongoDbConnectionInfo", + modelProperties: { + ...ConnectionInfo.type.modelProperties, + connectionString: { + required: true, + serializedName: "connectionString", + type: { + name: "String" + } + } + } + } +}; + export const SqlConnectionInfo: msRest.CompositeMapper = { serializedName: "SqlConnectionInfo", type: { @@ -560,69 +646,505 @@ export const ProjectTaskProperties: msRest.CompositeMapper = { uberParent: "ProjectTaskProperties", className: "ProjectTaskProperties", modelProperties: { - errors: { - readOnly: true, - serializedName: "errors", + errors: { + readOnly: true, + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ODataError" + } + } + } + }, + state: { + readOnly: true, + serializedName: "state", + type: { + name: "String" + } + }, + commands: { + readOnly: true, + serializedName: "commands", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "commandType", + clientName: "commandType" + }, + uberParent: "CommandProperties", + className: "CommandProperties" + } + } + } + }, + taskType: { + required: true, + serializedName: "taskType", + type: { + name: "String" + } + } + } + } +}; + +export const GetTdeCertificatesSqlTaskProperties: msRest.CompositeMapper = { + serializedName: "GetTDECertificates.Sql", + type: { + name: "Composite", + polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, + uberParent: "ProjectTaskProperties", + className: "GetTdeCertificatesSqlTaskProperties", + modelProperties: { + ...ProjectTaskProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "GetTdeCertificatesSqlTaskInput" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GetTdeCertificatesSqlTaskOutput" + } + } + } + } + } + } +}; + +export const MongoDbError: msRest.CompositeMapper = { + serializedName: "MongoDbError", + type: { + name: "Composite", + className: "MongoDbError", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const MongoDbProgress: msRest.CompositeMapper = { + serializedName: "MongoDbProgress", + type: { + name: "Composite", + className: "MongoDbProgress", + modelProperties: { + bytesCopied: { + required: true, + serializedName: "bytesCopied", + type: { + name: "Number" + } + }, + documentsCopied: { + required: true, + serializedName: "documentsCopied", + type: { + name: "Number" + } + }, + elapsedTime: { + required: true, + serializedName: "elapsedTime", + type: { + name: "String" + } + }, + errors: { + required: true, + serializedName: "errors", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "MongoDbError" + } + } + } + }, + eventsPending: { + required: true, + serializedName: "eventsPending", + type: { + name: "Number" + } + }, + eventsReplayed: { + required: true, + serializedName: "eventsReplayed", + type: { + name: "Number" + } + }, + lastEventTime: { + serializedName: "lastEventTime", + type: { + name: "DateTime" + } + }, + lastReplayTime: { + serializedName: "lastReplayTime", + type: { + name: "DateTime" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + qualifiedName: { + serializedName: "qualifiedName", + type: { + name: "String" + } + }, + resultType: { + required: true, + serializedName: "resultType", + type: { + name: "String" + } + }, + state: { + required: true, + serializedName: "state", + type: { + name: "String" + } + }, + totalBytes: { + required: true, + serializedName: "totalBytes", + type: { + name: "Number" + } + }, + totalDocuments: { + required: true, + serializedName: "totalDocuments", + type: { + name: "Number" + } + } + } + } +}; + +export const MongoDbCollectionProgress: msRest.CompositeMapper = { + serializedName: "Collection", + type: { + name: "Composite", + className: "MongoDbCollectionProgress", + modelProperties: { + ...MongoDbProgress.type.modelProperties + } + } +}; + +export const MongoDbDatabaseProgress: msRest.CompositeMapper = { + serializedName: "Database", + type: { + name: "Composite", + className: "MongoDbDatabaseProgress", + modelProperties: { + ...MongoDbProgress.type.modelProperties, + collections: { + serializedName: "collections", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "MongoDbCollectionProgress" + } + } + } + } + } + } +}; + +export const MongoDbMigrationProgress: msRest.CompositeMapper = { + serializedName: "Migration", + type: { + name: "Composite", + className: "MongoDbMigrationProgress", + modelProperties: { + ...MongoDbProgress.type.modelProperties, + databases: { + serializedName: "databases", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "MongoDbDatabaseProgress" + } + } + } + } + } + } +}; + +export const MongoDbThrottlingSettings: msRest.CompositeMapper = { + serializedName: "MongoDbThrottlingSettings", + type: { + name: "Composite", + className: "MongoDbThrottlingSettings", + modelProperties: { + minFreeCpu: { + serializedName: "minFreeCpu", + type: { + name: "Number" + } + }, + minFreeMemoryMb: { + serializedName: "minFreeMemoryMb", + type: { + name: "Number" + } + }, + maxParallelism: { + serializedName: "maxParallelism", + type: { + name: "Number" + } + } + } + } +}; + +export const MongoDbShardKeyField: msRest.CompositeMapper = { + serializedName: "MongoDbShardKeyField", + type: { + name: "Composite", + className: "MongoDbShardKeyField", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + order: { + required: true, + serializedName: "order", + type: { + name: "String" + } + } + } + } +}; + +export const MongoDbShardKeySetting: msRest.CompositeMapper = { + serializedName: "MongoDbShardKeySetting", + type: { + name: "Composite", + className: "MongoDbShardKeySetting", + modelProperties: { + fields: { + required: true, + serializedName: "fields", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MongoDbShardKeyField" + } + } + } + }, + isUnique: { + required: true, + serializedName: "isUnique", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MongoDbCollectionSettings: msRest.CompositeMapper = { + serializedName: "MongoDbCollectionSettings", + type: { + name: "Composite", + className: "MongoDbCollectionSettings", + modelProperties: { + canDelete: { + serializedName: "canDelete", + type: { + name: "Boolean" + } + }, + shardKey: { + serializedName: "shardKey", + type: { + name: "Composite", + className: "MongoDbShardKeySetting" + } + }, + targetRUs: { + serializedName: "targetRUs", + type: { + name: "Number" + } + } + } + } +}; + +export const MongoDbDatabaseSettings: msRest.CompositeMapper = { + serializedName: "MongoDbDatabaseSettings", + type: { + name: "Composite", + className: "MongoDbDatabaseSettings", + modelProperties: { + collections: { + required: true, + serializedName: "collections", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "MongoDbCollectionSettings" + } + } + } + }, + targetRUs: { + serializedName: "targetRUs", + type: { + name: "Number" + } + } + } + } +}; + +export const MongoDbMigrationSettings: msRest.CompositeMapper = { + serializedName: "MongoDbMigrationSettings", + type: { + name: "Composite", + className: "MongoDbMigrationSettings", + modelProperties: { + boostRUs: { + serializedName: "boostRUs", type: { - name: "Sequence", - element: { + name: "Number" + } + }, + databases: { + required: true, + serializedName: "databases", + type: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "ODataError" + className: "MongoDbDatabaseSettings" } } } }, - state: { - readOnly: true, - serializedName: "state", + replication: { + serializedName: "replication", type: { name: "String" } }, - commands: { - readOnly: true, - serializedName: "commands", + source: { + required: true, + serializedName: "source", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "commandType", - clientName: "commandType" - }, - uberParent: "CommandProperties", - className: "CommandProperties" - } - } + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "MongoDbConnectionInfo" } }, - taskType: { + target: { required: true, - serializedName: "taskType", + serializedName: "target", type: { - name: "String" + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "MongoDbConnectionInfo" + } + }, + throttling: { + serializedName: "throttling", + type: { + name: "Composite", + className: "MongoDbThrottlingSettings" } } } } }; -export const GetTdeCertificatesSqlTaskProperties: msRest.CompositeMapper = { - serializedName: "GetTDECertificates.Sql", +export const ValidateMongoDbTaskProperties: msRest.CompositeMapper = { + serializedName: "Validate.MongoDb", type: { name: "Composite", polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, uberParent: "ProjectTaskProperties", - className: "GetTdeCertificatesSqlTaskProperties", + className: "ValidateMongoDbTaskProperties", modelProperties: { ...ProjectTaskProperties.type.modelProperties, input: { serializedName: "input", type: { name: "Composite", - className: "GetTdeCertificatesSqlTaskInput" + className: "MongoDbMigrationSettings" } }, output: { @@ -633,7 +1155,7 @@ export const GetTdeCertificatesSqlTaskProperties: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "GetTdeCertificatesSqlTaskOutput" + className: "MongoDbMigrationProgress" } } } @@ -4225,6 +4747,39 @@ export const MigrateSqlServerSqlMITaskProperties: msRest.CompositeMapper = { } }; +export const MigrateMongoDbTaskProperties: msRest.CompositeMapper = { + serializedName: "Migrate.MongoDb", + type: { + name: "Composite", + polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, + uberParent: "ProjectTaskProperties", + className: "MigrateMongoDbTaskProperties", + modelProperties: { + ...ProjectTaskProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MongoDbMigrationSettings" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MongoDbProgress" + } + } + } + } + } + } +}; + export const ConnectToTargetAzureDbForMySqlTaskOutput: msRest.CompositeMapper = { serializedName: "ConnectToTargetAzureDbForMySqlTaskOutput", type: { @@ -5294,105 +5849,354 @@ export const ConnectToSourceSqlServerTaskOutputTaskLevel: msRest.CompositeMapper } }; -export const ConnectToSourceSqlServerTaskInput: msRest.CompositeMapper = { - serializedName: "ConnectToSourceSqlServerTaskInput", +export const ConnectToSourceSqlServerTaskInput: msRest.CompositeMapper = { + serializedName: "ConnectToSourceSqlServerTaskInput", + type: { + name: "Composite", + className: "ConnectToSourceSqlServerTaskInput", + modelProperties: { + sourceConnectionInfo: { + required: true, + serializedName: "sourceConnectionInfo", + type: { + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "SqlConnectionInfo" + } + }, + checkPermissionsGroup: { + serializedName: "checkPermissionsGroup", + type: { + name: "String" + } + }, + collectLogins: { + serializedName: "collectLogins", + defaultValue: false, + type: { + name: "Boolean" + } + }, + collectAgentJobs: { + serializedName: "collectAgentJobs", + defaultValue: false, + type: { + name: "Boolean" + } + }, + collectTdeCertificateInfo: { + serializedName: "collectTdeCertificateInfo", + defaultValue: false, + type: { + name: "Boolean" + } + } + } + } +}; + +export const ConnectToSourceSqlServerSyncTaskProperties: msRest.CompositeMapper = { + serializedName: "ConnectToSource.SqlServer.Sync", + type: { + name: "Composite", + polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, + uberParent: "ProjectTaskProperties", + className: "ConnectToSourceSqlServerSyncTaskProperties", + modelProperties: { + ...ProjectTaskProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "ConnectToSourceSqlServerTaskInput" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "resultType", + clientName: "resultType" + }, + uberParent: "ConnectToSourceSqlServerTaskOutput", + className: "ConnectToSourceSqlServerTaskOutput" + } + } + } + } + } + } +}; + +export const ConnectToSourceSqlServerTaskProperties: msRest.CompositeMapper = { + serializedName: "ConnectToSource.SqlServer", + type: { + name: "Composite", + polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, + uberParent: "ProjectTaskProperties", + className: "ConnectToSourceSqlServerTaskProperties", + modelProperties: { + ...ProjectTaskProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "ConnectToSourceSqlServerTaskInput" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "resultType", + clientName: "resultType" + }, + uberParent: "ConnectToSourceSqlServerTaskOutput", + className: "ConnectToSourceSqlServerTaskOutput" + } + } + } + } + } + } +}; + +export const MongoDbShardKeyInfo: msRest.CompositeMapper = { + serializedName: "MongoDbShardKeyInfo", + type: { + name: "Composite", + className: "MongoDbShardKeyInfo", + modelProperties: { + fields: { + required: true, + serializedName: "fields", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MongoDbShardKeyField" + } + } + } + }, + isUnique: { + required: true, + serializedName: "isUnique", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MongoDbObjectInfo: msRest.CompositeMapper = { + serializedName: "MongoDbObjectInfo", + type: { + name: "Composite", + className: "MongoDbObjectInfo", + modelProperties: { + averageDocumentSize: { + required: true, + serializedName: "averageDocumentSize", + type: { + name: "Number" + } + }, + dataSize: { + required: true, + serializedName: "dataSize", + type: { + name: "Number" + } + }, + documentCount: { + required: true, + serializedName: "documentCount", + type: { + name: "Number" + } + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + qualifiedName: { + required: true, + serializedName: "qualifiedName", + type: { + name: "String" + } + } + } + } +}; + +export const MongoDbCollectionInfo: msRest.CompositeMapper = { + serializedName: "MongoDbCollectionInfo", type: { name: "Composite", - className: "ConnectToSourceSqlServerTaskInput", + className: "MongoDbCollectionInfo", modelProperties: { - sourceConnectionInfo: { + ...MongoDbObjectInfo.type.modelProperties, + databaseName: { required: true, - serializedName: "sourceConnectionInfo", + serializedName: "databaseName", type: { - name: "Composite", - polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, - uberParent: "ConnectionInfo", - className: "SqlConnectionInfo" + name: "String" } }, - checkPermissionsGroup: { - serializedName: "checkPermissionsGroup", + isCapped: { + required: true, + serializedName: "isCapped", type: { - name: "String" + name: "Boolean" } }, - collectLogins: { - serializedName: "collectLogins", - defaultValue: false, + isSystemCollection: { + required: true, + serializedName: "isSystemCollection", type: { name: "Boolean" } }, - collectAgentJobs: { - serializedName: "collectAgentJobs", - defaultValue: false, + isView: { + required: true, + serializedName: "isView", type: { name: "Boolean" } }, - collectTdeCertificateInfo: { - serializedName: "collectTdeCertificateInfo", - defaultValue: false, + shardKey: { + serializedName: "shardKey", + type: { + name: "Composite", + className: "MongoDbShardKeyInfo" + } + }, + supportsSharding: { + required: true, + serializedName: "supportsSharding", type: { name: "Boolean" } + }, + viewOf: { + serializedName: "viewOf", + type: { + name: "String" + } } } } }; -export const ConnectToSourceSqlServerSyncTaskProperties: msRest.CompositeMapper = { - serializedName: "ConnectToSource.SqlServer.Sync", +export const MongoDbDatabaseInfo: msRest.CompositeMapper = { + serializedName: "MongoDbDatabaseInfo", type: { name: "Composite", - polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, - uberParent: "ProjectTaskProperties", - className: "ConnectToSourceSqlServerSyncTaskProperties", + className: "MongoDbDatabaseInfo", modelProperties: { - ...ProjectTaskProperties.type.modelProperties, - input: { - serializedName: "input", + ...MongoDbObjectInfo.type.modelProperties, + collections: { + required: true, + serializedName: "collections", type: { - name: "Composite", - className: "ConnectToSourceSqlServerTaskInput" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MongoDbCollectionInfo" + } + } } }, - output: { - readOnly: true, - serializedName: "output", + supportsSharding: { + required: true, + serializedName: "supportsSharding", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MongoDbClusterInfo: msRest.CompositeMapper = { + serializedName: "MongoDbClusterInfo", + type: { + name: "Composite", + className: "MongoDbClusterInfo", + modelProperties: { + databases: { + required: true, + serializedName: "databases", type: { name: "Sequence", element: { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "resultType", - clientName: "resultType" - }, - uberParent: "ConnectToSourceSqlServerTaskOutput", - className: "ConnectToSourceSqlServerTaskOutput" + className: "MongoDbDatabaseInfo" } } } + }, + supportsSharding: { + required: true, + serializedName: "supportsSharding", + type: { + name: "Boolean" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + }, + version: { + required: true, + serializedName: "version", + type: { + name: "String" + } } } } }; -export const ConnectToSourceSqlServerTaskProperties: msRest.CompositeMapper = { - serializedName: "ConnectToSource.SqlServer", +export const ConnectToMongoDbTaskProperties: msRest.CompositeMapper = { + serializedName: "Connect.MongoDb", type: { name: "Composite", polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, uberParent: "ProjectTaskProperties", - className: "ConnectToSourceSqlServerTaskProperties", + className: "ConnectToMongoDbTaskProperties", modelProperties: { ...ProjectTaskProperties.type.modelProperties, input: { serializedName: "input", type: { name: "Composite", - className: "ConnectToSourceSqlServerTaskInput" + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "MongoDbConnectionInfo" } }, output: { @@ -5403,12 +6207,7 @@ export const ConnectToSourceSqlServerTaskProperties: msRest.CompositeMapper = { element: { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "resultType", - clientName: "resultType" - }, - uberParent: "ConnectToSourceSqlServerTaskOutput", - className: "ConnectToSourceSqlServerTaskOutput" + className: "MongoDbClusterInfo" } } } @@ -5486,36 +6285,6 @@ export const ServiceSku: msRest.CompositeMapper = { } }; -export const DataMigrationServiceProperties: msRest.CompositeMapper = { - serializedName: "DataMigrationServiceProperties", - type: { - name: "Composite", - className: "DataMigrationServiceProperties", - modelProperties: { - provisioningState: { - readOnly: true, - serializedName: "provisioningState", - type: { - name: "String" - } - }, - publicKey: { - serializedName: "publicKey", - type: { - name: "String" - } - }, - virtualSubnetId: { - required: true, - serializedName: "virtualSubnetId", - type: { - name: "String" - } - } - } - } -}; - export const DataMigrationService: msRest.CompositeMapper = { serializedName: "DataMigrationService", type: { @@ -5605,80 +6374,6 @@ export const DatabaseInfo: msRest.CompositeMapper = { } }; -export const ProjectProperties: msRest.CompositeMapper = { - serializedName: "ProjectProperties", - type: { - name: "Composite", - className: "ProjectProperties", - modelProperties: { - sourcePlatform: { - required: true, - serializedName: "sourcePlatform", - type: { - name: "String" - } - }, - targetPlatform: { - required: true, - serializedName: "targetPlatform", - type: { - name: "String" - } - }, - creationTime: { - readOnly: true, - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - sourceConnectionInfo: { - serializedName: "sourceConnectionInfo", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "ConnectionInfo", - className: "ConnectionInfo" - } - }, - targetConnectionInfo: { - serializedName: "targetConnectionInfo", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "ConnectionInfo", - className: "ConnectionInfo" - } - }, - databasesInfo: { - serializedName: "databasesInfo", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseInfo" - } - } - } - }, - provisioningState: { - readOnly: true, - serializedName: "provisioningState", - type: { - name: "String" - } - } - } - } -}; - export const Project: msRest.CompositeMapper = { serializedName: "Project", type: { @@ -5771,6 +6466,33 @@ export const ApiError: msRest.CompositeMapper = { } }; +export const FileStorageInfo: msRest.CompositeMapper = { + serializedName: "Unknown", + type: { + name: "Composite", + className: "FileStorageInfo", + modelProperties: { + uri: { + serializedName: "uri", + type: { + name: "String" + } + }, + headers: { + serializedName: "headers", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const ServiceOperationDisplay: msRest.CompositeMapper = { serializedName: "ServiceOperation_display", type: { @@ -6510,6 +7232,12 @@ export const MigrateSchemaSqlServerSqlDbDatabaseInput: msRest.CompositeMapper = name: "Composite", className: "MigrateSchemaSqlServerSqlDbDatabaseInput", modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, targetDatabaseName: { serializedName: "targetDatabaseName", type: { @@ -7587,14 +8315,44 @@ export const ServiceOperationList: msRest.CompositeMapper = { } }; +export const FileList: msRest.CompositeMapper = { + serializedName: "FileList", + type: { + name: "Composite", + className: "FileList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProjectFile" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const discriminators = { 'CommandProperties.Migrate.Sync.Complete.Database' : MigrateSyncCompleteCommandProperties, 'Unknown' : CommandProperties, 'ConnectionInfo.PostgreSqlConnectionInfo' : PostgreSqlConnectionInfo, 'ConnectionInfo.MySqlConnectionInfo' : MySqlConnectionInfo, + 'ConnectionInfo.MongoDbConnectionInfo' : MongoDbConnectionInfo, 'Unknown' : ConnectionInfo, 'ConnectionInfo.SqlConnectionInfo' : SqlConnectionInfo, 'ProjectTaskProperties.GetTDECertificates.Sql' : GetTdeCertificatesSqlTaskProperties, + 'ProjectTaskProperties.Validate.MongoDb' : ValidateMongoDbTaskProperties, 'ProjectTaskProperties.ValidateMigrationInput.SqlServer.AzureSqlDbMI' : ValidateMigrationInputSqlServerSqlMITaskProperties, 'ProjectTaskProperties.ValidateMigrationInput.SqlServer.SqlDb.Sync' : ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.DatabaseLevelErrorOutput' : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, @@ -7631,6 +8389,7 @@ export const discriminators = { 'MigrateSqlServerSqlMITaskOutput.MigrationLevelOutput' : MigrateSqlServerSqlMITaskOutputMigrationLevel, 'MigrateSqlServerSqlMITaskOutput' : MigrateSqlServerSqlMITaskOutput, 'ProjectTaskProperties.Migrate.SqlServer.AzureSqlDbMI' : MigrateSqlServerSqlMITaskProperties, + 'ProjectTaskProperties.Migrate.MongoDb' : MigrateMongoDbTaskProperties, 'ProjectTaskProperties.ConnectToTarget.AzureDbForMySql' : ConnectToTargetAzureDbForMySqlTaskProperties, 'ProjectTaskProperties.ConnectToTarget.AzureSqlDbMI' : ConnectToTargetSqlMITaskProperties, 'ProjectTaskProperties.GetUserTables.AzureSqlDb.Sync' : GetUserTablesSqlSyncTaskProperties, @@ -7644,6 +8403,7 @@ export const discriminators = { 'ConnectToSourceSqlServerTaskOutput' : ConnectToSourceSqlServerTaskOutput, 'ProjectTaskProperties.ConnectToSource.SqlServer.Sync' : ConnectToSourceSqlServerSyncTaskProperties, 'ProjectTaskProperties.ConnectToSource.SqlServer' : ConnectToSourceSqlServerTaskProperties, + 'ProjectTaskProperties.Connect.MongoDb' : ConnectToMongoDbTaskProperties, 'Unknown' : ProjectTaskProperties, 'ProjectTaskProperties.ConnectToSource.MySql' : ConnectToSourceMySqlTaskProperties, 'MigrateSchemaSqlServerSqlDbTaskOutput' : MigrateSchemaSqlServerSqlDbTaskOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/parameters.ts b/packages/@azure/arm-datamigration/lib/models/parameters.ts index ca0164330b45..edad9643d324 100644 --- a/packages/@azure/arm-datamigration/lib/models/parameters.ts +++ b/packages/@azure/arm-datamigration/lib/models/parameters.ts @@ -56,6 +56,16 @@ export const expand: msRest.OperationQueryParameter = { } } }; +export const fileName: msRest.OperationURLParameter = { + parameterPath: "fileName", + mapper: { + required: true, + serializedName: "fileName", + type: { + name: "String" + } + } +}; export const groupName: msRest.OperationURLParameter = { parameterPath: "groupName", mapper: { diff --git a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts index 72d53a8ebf2d..ceb2f581d846 100644 --- a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts @@ -19,8 +19,11 @@ export { DatabaseInfo, ApiError, ODataError, + ProjectFile, + ProjectFileProperties, PostgreSqlConnectionInfo, MySqlConnectionInfo, + MongoDbConnectionInfo, SqlConnectionInfo, ProjectTask, ProjectTaskProperties, @@ -50,6 +53,18 @@ export { FileShare, SelectedCertificateInput, GetTdeCertificatesSqlTaskOutput, + ValidateMongoDbTaskProperties, + MongoDbMigrationSettings, + MongoDbDatabaseSettings, + MongoDbCollectionSettings, + MongoDbShardKeySetting, + MongoDbShardKeyField, + MongoDbThrottlingSettings, + MongoDbMigrationProgress, + MongoDbProgress, + MongoDbError, + MongoDbDatabaseProgress, + MongoDbCollectionProgress, ValidateMigrationInputSqlServerSqlMITaskProperties, ValidateMigrationInputSqlServerSqlMITaskInput, MigrateSqlServerSqlMIDatabaseInput, @@ -79,6 +94,7 @@ export { MigrateSqlServerSqlMITaskInput, MigrateSqlServerSqlMITaskProperties, MigrateSqlServerSqlMITaskOutput, + MigrateMongoDbTaskProperties, ConnectToTargetAzureDbForMySqlTaskProperties, ConnectToTargetAzureDbForMySqlTaskInput, ConnectToTargetAzureDbForMySqlTaskOutput, @@ -101,6 +117,12 @@ export { ConnectToSourceSqlServerTaskInput, ConnectToSourceSqlServerTaskOutput, ConnectToSourceSqlServerTaskProperties, + ConnectToMongoDbTaskProperties, + MongoDbClusterInfo, + MongoDbDatabaseInfo, + MongoDbObjectInfo, + MongoDbCollectionInfo, + MongoDbShardKeyInfo, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, SyncMigrationDatabaseErrorEvent, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, diff --git a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts index 63adad2a88c3..79838c59b053 100644 --- a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts @@ -25,6 +25,8 @@ export { NameAvailabilityRequest, NameAvailabilityResponse, DataMigrationServiceList, + ProjectFile, + ProjectFileProperties, ProjectTask, ProjectTaskProperties, CommandProperties, @@ -52,11 +54,24 @@ export { MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, PostgreSqlConnectionInfo, + MongoDbConnectionInfo, GetTdeCertificatesSqlTaskProperties, GetTdeCertificatesSqlTaskInput, FileShare, SelectedCertificateInput, GetTdeCertificatesSqlTaskOutput, + ValidateMongoDbTaskProperties, + MongoDbMigrationSettings, + MongoDbDatabaseSettings, + MongoDbCollectionSettings, + MongoDbShardKeySetting, + MongoDbShardKeyField, + MongoDbThrottlingSettings, + MongoDbMigrationProgress, + MongoDbProgress, + MongoDbError, + MongoDbDatabaseProgress, + MongoDbCollectionProgress, ValidateMigrationInputSqlServerSqlMITaskProperties, ValidateMigrationInputSqlServerSqlMITaskInput, MigrateSqlServerSqlMIDatabaseInput, @@ -86,6 +101,7 @@ export { MigrateSqlServerSqlMITaskInput, MigrateSqlServerSqlMITaskProperties, MigrateSqlServerSqlMITaskOutput, + MigrateMongoDbTaskProperties, ConnectToTargetAzureDbForMySqlTaskProperties, ConnectToTargetAzureDbForMySqlTaskInput, ConnectToTargetAzureDbForMySqlTaskOutput, @@ -108,6 +124,12 @@ export { ConnectToSourceSqlServerTaskInput, ConnectToSourceSqlServerTaskOutput, ConnectToSourceSqlServerTaskProperties, + ConnectToMongoDbTaskProperties, + MongoDbClusterInfo, + MongoDbDatabaseInfo, + MongoDbObjectInfo, + MongoDbCollectionInfo, + MongoDbShardKeyInfo, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, SyncMigrationDatabaseErrorEvent, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, diff --git a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts index 937e223708cc..ae230665f672 100644 --- a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts @@ -18,11 +18,13 @@ export { ODataError, CommandProperties, ApiError, + TrackedResource, + ProjectFile, + ProjectFileProperties, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, ReportableException, - TrackedResource, GetTdeCertificatesSqlTaskProperties, GetTdeCertificatesSqlTaskInput, SqlConnectionInfo, @@ -30,6 +32,19 @@ export { FileShare, SelectedCertificateInput, GetTdeCertificatesSqlTaskOutput, + ValidateMongoDbTaskProperties, + MongoDbMigrationSettings, + MongoDbDatabaseSettings, + MongoDbCollectionSettings, + MongoDbShardKeySetting, + MongoDbShardKeyField, + MongoDbConnectionInfo, + MongoDbThrottlingSettings, + MongoDbMigrationProgress, + MongoDbProgress, + MongoDbError, + MongoDbDatabaseProgress, + MongoDbCollectionProgress, ValidateMigrationInputSqlServerSqlMITaskProperties, ValidateMigrationInputSqlServerSqlMITaskInput, MigrateSqlServerSqlMIDatabaseInput, @@ -62,6 +77,7 @@ export { MigrateSqlServerSqlMITaskInput, MigrateSqlServerSqlMITaskProperties, MigrateSqlServerSqlMITaskOutput, + MigrateMongoDbTaskProperties, ConnectToTargetAzureDbForMySqlTaskProperties, ConnectToTargetAzureDbForMySqlTaskInput, ConnectToTargetAzureDbForMySqlTaskOutput, @@ -84,6 +100,12 @@ export { ConnectToSourceSqlServerTaskInput, ConnectToSourceSqlServerTaskOutput, ConnectToSourceSqlServerTaskProperties, + ConnectToMongoDbTaskProperties, + MongoDbClusterInfo, + MongoDbDatabaseInfo, + MongoDbObjectInfo, + MongoDbCollectionInfo, + MongoDbShardKeyInfo, DataMigrationService, ServiceSku, Project, diff --git a/packages/@azure/arm-datamigration/lib/operations/files.ts b/packages/@azure/arm-datamigration/lib/operations/files.ts new file mode 100644 index 000000000000..dfd99f84b64a --- /dev/null +++ b/packages/@azure/arm-datamigration/lib/operations/files.ts @@ -0,0 +1,579 @@ +/* + * 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 "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/filesMappers"; +import * as Parameters from "../models/parameters"; +import { DataMigrationServiceClientContext } from "../dataMigrationServiceClientContext"; + +/** Class representing a Files. */ +export class Files { + private readonly client: DataMigrationServiceClientContext; + + /** + * Create a Files. + * @param {DataMigrationServiceClientContext} client Reference to the service client. + */ + constructor(client: DataMigrationServiceClientContext) { + this.client = client; + } + + /** + * The project resource is a nested resource representing a stored migration project. This method + * returns a list of files owned by a project resource. + * @summary Get files in a project + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param [options] The optional parameters + * @returns Promise + */ + list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param callback The callback + */ + list(groupName: string, serviceName: string, projectName: string, callback: msRest.ServiceCallback): void; + /** + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param options The optional parameters + * @param callback The callback + */ + list(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupName, + serviceName, + projectName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * The files resource is a nested, proxy-only resource representing a file stored under the project + * resource. This method retrieves information about a file. + * @summary Get file information + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param [options] The optional parameters + * @returns Promise + */ + get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param callback The callback + */ + get(groupName: string, serviceName: string, projectName: string, fileName: string, callback: msRest.ServiceCallback): void; + /** + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param options The optional parameters + * @param callback The callback + */ + get(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupName, + serviceName, + projectName, + fileName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * The PUT method creates a new file or updates an existing one. + * @summary Create a file resource + * @param parameters Information about the file + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param parameters Information about the file + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param callback The callback + */ + createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, callback: msRest.ServiceCallback): void; + /** + * @param parameters Information about the file + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + parameters, + groupName, + serviceName, + projectName, + fileName, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * This method deletes a file. + * @summary Delete file + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param callback The callback + */ + deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, callback: msRest.ServiceCallback): void; + /** + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupName, + serviceName, + projectName, + fileName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * This method updates an existing file. + * @summary Update a file + * @param parameters Information about the file + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param [options] The optional parameters + * @returns Promise + */ + update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param parameters Information about the file + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param callback The callback + */ + update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, callback: msRest.ServiceCallback): void; + /** + * @param parameters Information about the file + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param options The optional parameters + * @param callback The callback + */ + update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + parameters, + groupName, + serviceName, + projectName, + fileName, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * This method is used for requesting storage information using which contents of the file can be + * downloaded. + * @summary Request storage information for downloading the file content + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param [options] The optional parameters + * @returns Promise + */ + read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param callback The callback + */ + read(groupName: string, serviceName: string, projectName: string, fileName: string, callback: msRest.ServiceCallback): void; + /** + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param options The optional parameters + * @param callback The callback + */ + read(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupName, + serviceName, + projectName, + fileName, + options + }, + readOperationSpec, + callback) as Promise; + } + + /** + * This method is used for requesting information for reading and writing the file content. + * @summary Request information for reading and writing file content. + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param [options] The optional parameters + * @returns Promise + */ + readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param callback The callback + */ + readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, callback: msRest.ServiceCallback): void; + /** + * @param groupName Name of the resource group + * @param serviceName Name of the service + * @param projectName Name of the project + * @param fileName Name of the File + * @param options The optional parameters + * @param callback The callback + */ + readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + groupName, + serviceName, + projectName, + fileName, + options + }, + readWriteOperationSpec, + callback) as Promise; + } + + /** + * The project resource is a nested resource representing a stored migration project. This method + * returns a list of files owned by a project resource. + * @summary Get files in a project + * @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, 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}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files", + urlParameters: [ + Parameters.subscriptionId, + Parameters.groupName, + Parameters.serviceName, + Parameters.projectName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FileList + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.groupName, + Parameters.serviceName, + Parameters.projectName, + Parameters.fileName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProjectFile + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.groupName, + Parameters.serviceName, + Parameters.projectName, + Parameters.fileName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ProjectFile, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ProjectFile + }, + 201: { + bodyMapper: Mappers.ProjectFile + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.groupName, + Parameters.serviceName, + Parameters.projectName, + Parameters.fileName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.groupName, + Parameters.serviceName, + Parameters.projectName, + Parameters.fileName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ProjectFile, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ProjectFile + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const readOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/read", + urlParameters: [ + Parameters.subscriptionId, + Parameters.groupName, + Parameters.serviceName, + Parameters.projectName, + Parameters.fileName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FileStorageInfo + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const readWriteOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite", + urlParameters: [ + Parameters.subscriptionId, + Parameters.groupName, + Parameters.serviceName, + Parameters.projectName, + Parameters.fileName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FileStorageInfo + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FileList + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; diff --git a/packages/@azure/arm-datamigration/lib/operations/index.ts b/packages/@azure/arm-datamigration/lib/operations/index.ts index 24c14d019a16..1ca999002b16 100644 --- a/packages/@azure/arm-datamigration/lib/operations/index.ts +++ b/packages/@azure/arm-datamigration/lib/operations/index.ts @@ -14,3 +14,4 @@ export * from "./tasks"; export * from "./projects"; export * from "./usages"; export * from "./operations"; +export * from "./files"; diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index 6ca9b228c213..571cd43f6b1c 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -25,7 +25,7 @@ "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js", + "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-datamigration", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" From 440d6d40391b80f07e5baead66884c82b4030632 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 26 Oct 2018 18:46:18 +0000 Subject: [PATCH 02/21] Regenerated "@azure/arm-datamigration" SDK. --- packages/@azure/arm-datamigration/.npmignore | 70 ++++---- packages/@azure/arm-datamigration/LICENSE.txt | 42 ++--- packages/@azure/arm-datamigration/README.md | 154 +++++++++--------- .../lib/dataMigrationServiceClientContext.ts | 2 +- .../@azure/arm-datamigration/package.json | 17 +- 5 files changed, 149 insertions(+), 136 deletions(-) diff --git a/packages/@azure/arm-datamigration/.npmignore b/packages/@azure/arm-datamigration/.npmignore index a07a455ac10c..3b46bc6202d8 100644 --- a/packages/@azure/arm-datamigration/.npmignore +++ b/packages/@azure/arm-datamigration/.npmignore @@ -1,35 +1,35 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-datamigration/LICENSE.txt b/packages/@azure/arm-datamigration/LICENSE.txt index 5431ba98b936..a70e8cf66038 100644 --- a/packages/@azure/arm-datamigration/LICENSE.txt +++ b/packages/@azure/arm-datamigration/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-datamigration/README.md b/packages/@azure/arm-datamigration/README.md index 75ffe42bdac4..3f521e9a49a3 100644 --- a/packages/@azure/arm-datamigration/README.md +++ b/packages/@azure/arm-datamigration/README.md @@ -1,77 +1,77 @@ -# Azure DataMigrationServiceClient SDK for JavaScript -This package contains an isomorphic SDK for DataMigrationServiceClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-datamigration -``` - - -## How to use - -### nodejs - Authentication, client creation and listSkus resourceSkus as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { DataMigrationServiceClient, DataMigrationServiceModels, DataMigrationServiceMappers } from "@azure/arm-datamigration"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new DataMigrationServiceClient(creds, subscriptionId); - client.resourceSkus.listSkus().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and listSkus resourceSkus as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-datamigration sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure DataMigrationServiceClient SDK for JavaScript +This package contains an isomorphic SDK for DataMigrationServiceClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-datamigration +``` + + +## How to use + +### nodejs - Authentication, client creation and listSkus resourceSkus as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { DataMigrationServiceClient, DataMigrationServiceModels, DataMigrationServiceMappers } from "@azure/arm-datamigration"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DataMigrationServiceClient(creds, subscriptionId); + client.resourceSkus.listSkus().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and listSkus resourceSkus as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-datamigration sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 19ba18d0bd65..c48ca7793bbf 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "ms-rest-js"; import * as msRestAzure from "ms-rest-azure-js"; const packageName = "@azure/arm-datamigration"; -const packageVersion = "1.0.0-preview"; +const packageVersion = "1.1.0-preview"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index 602fe334ab11..8f3b777c3bd4 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-datamigration", "author": "Microsoft Corporation", "description": "DataMigrationServiceClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "1.1.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-datamigration.js.map'\" -o ./dist/arm-datamigration.min.js ./dist/arm-datamigration.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } From 2e4c83235868e923e938f4771e375e4a84aad6be Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 26 Oct 2018 18:47:22 +0000 Subject: [PATCH 03/21] Reset version to 1.0.0 --- packages/@azure/arm-datamigration/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index 8f3b777c3bd4..dc6c02910ad3 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-datamigration", "author": "Microsoft Corporation", "description": "DataMigrationServiceClient Library with typescript type definitions for node.js and browser.", - "version": "1.1.0-preview", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", From bb1141ed3f3c30098a463589a62bcd855d848d9f Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 26 Oct 2018 18:49:27 +0000 Subject: [PATCH 04/21] Regenerated "@azure/arm-datamigration" SDK. --- .../arm-datamigration/lib/dataMigrationServiceClientContext.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index c48ca7793bbf..19ba18d0bd65 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "ms-rest-js"; import * as msRestAzure from "ms-rest-azure-js"; const packageName = "@azure/arm-datamigration"; -const packageVersion = "1.1.0-preview"; +const packageVersion = "1.0.0-preview"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { From 9dd06b51643683564f2437436b9c15dd377e8b40 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 29 Oct 2018 10:47:51 -0700 Subject: [PATCH 05/21] Generated from 66f3328f6752c8b8f2ec6f2d35eed1f93625a655 (#342) Update MongoDbTasks.json --- packages/@azure/arm-datamigration/.npmignore | 70 ++++---- packages/@azure/arm-datamigration/LICENSE.txt | 42 ++--- packages/@azure/arm-datamigration/README.md | 154 +++++++++--------- .../@azure/arm-datamigration/package.json | 19 +-- 4 files changed, 136 insertions(+), 149 deletions(-) diff --git a/packages/@azure/arm-datamigration/.npmignore b/packages/@azure/arm-datamigration/.npmignore index 3b46bc6202d8..a07a455ac10c 100644 --- a/packages/@azure/arm-datamigration/.npmignore +++ b/packages/@azure/arm-datamigration/.npmignore @@ -1,35 +1,35 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-datamigration/LICENSE.txt b/packages/@azure/arm-datamigration/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-datamigration/LICENSE.txt +++ b/packages/@azure/arm-datamigration/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-datamigration/README.md b/packages/@azure/arm-datamigration/README.md index 3f521e9a49a3..75ffe42bdac4 100644 --- a/packages/@azure/arm-datamigration/README.md +++ b/packages/@azure/arm-datamigration/README.md @@ -1,77 +1,77 @@ -# Azure DataMigrationServiceClient SDK for JavaScript -This package contains an isomorphic SDK for DataMigrationServiceClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-datamigration -``` - - -## How to use - -### nodejs - Authentication, client creation and listSkus resourceSkus as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { DataMigrationServiceClient, DataMigrationServiceModels, DataMigrationServiceMappers } from "@azure/arm-datamigration"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new DataMigrationServiceClient(creds, subscriptionId); - client.resourceSkus.listSkus().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and listSkus resourceSkus as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-datamigration sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure DataMigrationServiceClient SDK for JavaScript +This package contains an isomorphic SDK for DataMigrationServiceClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-datamigration +``` + + +## How to use + +### nodejs - Authentication, client creation and listSkus resourceSkus as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { DataMigrationServiceClient, DataMigrationServiceModels, DataMigrationServiceMappers } from "@azure/arm-datamigration"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DataMigrationServiceClient(creds, subscriptionId); + client.resourceSkus.listSkus().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and listSkus resourceSkus as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-datamigration sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index dc6c02910ad3..571cd43f6b1c 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -4,8 +4,8 @@ "description": "DataMigrationServiceClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.166", + "ms-rest-js": "^1.0.439", "tslib": "^1.9.3" }, "keywords": [ @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-datamigration.js.map'\" -o ./dist/arm-datamigration.min.js ./dist/arm-datamigration.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } From d20dd9b48bda32e3c7385a5a4b540c3f3181b2d6 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Tue, 30 Oct 2018 16:54:51 +0000 Subject: [PATCH 06/21] Regenerated "@azure/arm-datamigration" SDK. --- packages/@azure/arm-datamigration/README.md | 2 +- .../lib/dataMigrationServiceClientContext.ts | 6 ------ .../@azure/arm-datamigration/package.json | 19 ++++++++++++++++--- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/packages/@azure/arm-datamigration/README.md b/packages/@azure/arm-datamigration/README.md index 75ffe42bdac4..188e1b9f360e 100644 --- a/packages/@azure/arm-datamigration/README.md +++ b/packages/@azure/arm-datamigration/README.md @@ -62,7 +62,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log('An error occurred:'); + console.log("An error occurred:"); console.error(err); }); }); diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 19ba18d0bd65..efe391fbe54f 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -16,15 +16,9 @@ const packageName = "@azure/arm-datamigration"; const packageVersion = "1.0.0-preview"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; - /** * Initializes a new instance of the DataMigrationServiceClient class. * @param credentials Credentials needed for the client to connect to Azure. diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index 571cd43f6b1c..dc6c02910ad3 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -4,8 +4,8 @@ "description": "DataMigrationServiceClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.166", - "ms-rest-js": "^1.0.439", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-datamigration.js.map'\" -o ./dist/arm-datamigration.min.js ./dist/arm-datamigration.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } From 88123507330318067936662fd4d932447e6b0b06 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 2 Nov 2018 11:25:39 -0700 Subject: [PATCH 07/21] Generated from c2b76af4ead5dd8be9ffdc07366e9701b1317f0b (#358) Update readme.md --- .../lib/models/filesMappers.ts | 5 + .../arm-datamigration/lib/models/index.ts | 128 +++++++++++++++++- .../arm-datamigration/lib/models/mappers.ts | 99 +++++++++++++- .../lib/models/projectsMappers.ts | 5 + .../lib/models/servicesMappers.ts | 5 + .../lib/models/tasksMappers.ts | 5 + 6 files changed, 245 insertions(+), 2 deletions(-) diff --git a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts index 5a4756b2d0a3..46ceb3913e71 100644 --- a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts @@ -44,6 +44,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index df4cb4215707..308b8d96c728 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -206,7 +206,7 @@ export interface MigrateSyncCompleteCommandInput { /** * Contains the possible cases for CommandProperties. */ -export type CommandPropertiesUnion = CommandProperties | MigrateSyncCompleteCommandProperties; +export type CommandPropertiesUnion = CommandProperties | MigrateSyncCompleteCommandProperties | MongoDbCancelCommand | MongoDbFinishCommand | MongoDbRestartCommand; /** * @interface @@ -6521,6 +6521,132 @@ export interface MigrateSchemaSqlTaskOutputError { readonly error?: ReportableException; } +/** + * @interface + * An interface representing MongoDbCommandInput. + * Describes the input to the 'cancel' and 'restart' MongoDB migration commands + * + */ +export interface MongoDbCommandInput { + /** + * @member {string} [objectName] The qualified name of a database or + * collection to act upon, or null to act upon the entire migration + */ + objectName?: string; +} + +/** + * @interface + * An interface representing MongoDbCancelCommand. + * Properties for the command that cancels a migration in whole or in part + * + */ +export interface MongoDbCancelCommand { + /** + * @member {string} commandType Polymorphic Discriminator + */ + commandType: "cancel"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {CommandState} [state] The state of the command. This is ignored + * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: CommandState; + /** + * @member {MongoDbCommandInput} [input] Command input + */ + input?: MongoDbCommandInput; +} + +/** + * @interface + * An interface representing MongoDbFinishCommandInput. + * Describes the input to the 'finish' MongoDB migration command + * + * @extends MongoDbCommandInput + */ +export interface MongoDbFinishCommandInput extends MongoDbCommandInput { + /** + * @member {boolean} immediate If true, replication for the affected objects + * will be stopped immediately. If false, the migrator will finish replaying + * queued events before finishing the replication. + */ + immediate: boolean; +} + +/** + * @interface + * An interface representing MongoDbFinishCommand. + * Properties for the command that finishes a migration in whole or in part + * + */ +export interface MongoDbFinishCommand { + /** + * @member {string} commandType Polymorphic Discriminator + */ + commandType: "finish"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {CommandState} [state] The state of the command. This is ignored + * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: CommandState; + /** + * @member {MongoDbFinishCommandInput} [input] Command input + */ + input?: MongoDbFinishCommandInput; +} + +/** + * @interface + * An interface representing MongoDbRestartCommand. + * Properties for the command that restarts a migration in whole or in part + * + */ +export interface MongoDbRestartCommand { + /** + * @member {string} commandType Polymorphic Discriminator + */ + commandType: "restart"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {CommandState} [state] The state of the command. This is ignored + * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: CommandState; + /** + * @member {MongoDbCommandInput} [input] Command input + */ + input?: MongoDbCommandInput; +} + /** * @interface * An interface representing Database. diff --git a/packages/@azure/arm-datamigration/lib/models/mappers.ts b/packages/@azure/arm-datamigration/lib/models/mappers.ts index 93a282240460..4e0f01e7cc4d 100644 --- a/packages/@azure/arm-datamigration/lib/models/mappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/mappers.ts @@ -7539,6 +7539,100 @@ export const MigrateSchemaSqlTaskOutputError: msRest.CompositeMapper = { } }; +export const MongoDbCommandInput: msRest.CompositeMapper = { + serializedName: "MongoDbCommandInput", + type: { + name: "Composite", + className: "MongoDbCommandInput", + modelProperties: { + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + } + } + } +}; + +export const MongoDbCancelCommand: msRest.CompositeMapper = { + serializedName: "cancel", + type: { + name: "Composite", + polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, + uberParent: "CommandProperties", + className: "MongoDbCancelCommand", + modelProperties: { + ...CommandProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MongoDbCommandInput" + } + } + } + } +}; + +export const MongoDbFinishCommandInput: msRest.CompositeMapper = { + serializedName: "MongoDbFinishCommandInput", + type: { + name: "Composite", + className: "MongoDbFinishCommandInput", + modelProperties: { + ...MongoDbCommandInput.type.modelProperties, + immediate: { + required: true, + serializedName: "immediate", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MongoDbFinishCommand: msRest.CompositeMapper = { + serializedName: "finish", + type: { + name: "Composite", + polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, + uberParent: "CommandProperties", + className: "MongoDbFinishCommand", + modelProperties: { + ...CommandProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MongoDbFinishCommandInput" + } + } + } + } +}; + +export const MongoDbRestartCommand: msRest.CompositeMapper = { + serializedName: "restart", + type: { + name: "Composite", + polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, + uberParent: "CommandProperties", + className: "MongoDbRestartCommand", + modelProperties: { + ...CommandProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MongoDbCommandInput" + } + } + } + } +}; + export const Database: msRest.CompositeMapper = { serializedName: "Database", type: { @@ -8411,5 +8505,8 @@ export const discriminators = { 'MigrateSchemaSqlServerSqlDbTaskOutput.MigrationLevelOutput' : MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, 'MigrateSchemaSqlServerSqlDbTaskOutput.DatabaseLevelOutput' : MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, 'MigrateSchemaSqlServerSqlDbTaskOutput.SchemaErrorOutput' : MigrateSchemaSqlServerSqlDbTaskOutputError, - 'MigrateSchemaSqlServerSqlDbTaskOutput.ErrorOutput' : MigrateSchemaSqlTaskOutputError + 'MigrateSchemaSqlServerSqlDbTaskOutput.ErrorOutput' : MigrateSchemaSqlTaskOutputError, + 'CommandProperties.cancel' : MongoDbCancelCommand, + 'CommandProperties.finish' : MongoDbFinishCommand, + 'CommandProperties.restart' : MongoDbRestartCommand }; diff --git a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts index ceb2f581d846..631f9113b591 100644 --- a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts @@ -45,6 +45,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts index 79838c59b053..321ade207068 100644 --- a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts @@ -50,6 +50,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts index ae230665f672..c4d10a034385 100644 --- a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts @@ -123,6 +123,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, SyncMigrationDatabaseErrorEvent, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, From d1b7739cefaf263c4aa35d9e3b6e1895e7864dcf Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 2 Nov 2018 18:40:51 +0000 Subject: [PATCH 08/21] Regenerated "@azure/arm-datamigration/lib/models" SDK. --- .scripts/commandLine.ts | 26 +- .scripts/common.ts | 12 +- .scripts/git.ts | 32 +- .scripts/github.ts | 25 +- .scripts/gulp.ts | 48 +- .scripts/logger.ts | 26 +- .scripts/packages.ts | 94 +- .scripts/readme.ts | 51 +- gulpfile.ts | 140 +- package.json | 2 - packages/@azure/arm-appservice/.npmignore | 35 + packages/@azure/arm-cosmosdb/.npmignore | 35 + packages/@azure/arm-cosmosdb/LICENSE.txt | 42 +- packages/@azure/arm-cosmosdb/README.md | 162 +- .../lib/cosmosDBManagementClientContext.ts | 9 +- .../@azure/arm-cosmosdb/lib/models/index.ts | 5 - .../@azure/arm-cosmosdb/lib/models/mappers.ts | 6 - packages/@azure/arm-cosmosdb/package.json | 15 +- packages/@azure/arm-devtestlabs/LICENSE.txt | 42 +- packages/@azure/arm-devtestlabs/README.md | 154 +- .../arm-devtestlabs/lib/devTestLabsClient.ts | 4 - .../lib/devTestLabsClientContext.ts | 11 +- .../lib/models/armTemplatesMappers.ts | 49 +- .../lib/models/artifactSourcesMappers.ts | 57 +- .../lib/models/artifactsMappers.ts | 49 +- .../lib/models/costsMappers.ts | 47 +- .../lib/models/customImagesMappers.ts | 57 +- .../lib/models/disksMappers.ts | 57 +- .../lib/models/environmentsMappers.ts | 57 +- .../lib/models/formulasMappers.ts | 63 +- .../lib/models/galleryImagesMappers.ts | 49 +- .../lib/models/globalSchedulesMappers.ts | 57 +- .../arm-devtestlabs/lib/models/index.ts | 6320 ++++++----------- .../arm-devtestlabs/lib/models/labsMappers.ts | 64 +- .../arm-devtestlabs/lib/models/mappers.ts | 2690 ++----- .../lib/models/notificationChannelsMappers.ts | 57 +- .../arm-devtestlabs/lib/models/parameters.ts | 12 +- .../lib/models/policiesMappers.ts | 57 +- .../lib/models/schedulesMappers.ts | 57 +- .../lib/models/secretsMappers.ts | 57 +- .../lib/models/serviceRunnersMappers.ts | 49 +- .../lib/models/usersMappers.ts | 57 +- .../models/virtualMachineSchedulesMappers.ts | 57 +- .../lib/models/virtualMachinesMappers.ts | 45 +- .../lib/models/virtualNetworksMappers.ts | 57 +- .../lib/operations/armTemplates.ts | 16 +- .../lib/operations/artifactSources.ts | 16 +- .../lib/operations/artifacts.ts | 16 +- .../lib/operations/customImages.ts | 90 +- .../arm-devtestlabs/lib/operations/disks.ts | 95 +- .../lib/operations/environments.ts | 95 +- .../lib/operations/formulas.ts | 89 +- .../lib/operations/galleryImages.ts | 16 +- .../lib/operations/globalSchedules.ts | 32 +- .../arm-devtestlabs/lib/operations/index.ts | 2 - .../arm-devtestlabs/lib/operations/labs.ts | 115 +- .../lib/operations/notificationChannels.ts | 16 +- .../lib/operations/policies.ts | 16 +- .../lib/operations/schedules.ts | 32 +- .../arm-devtestlabs/lib/operations/secrets.ts | 146 +- .../lib/operations/serviceRunners.ts | 16 +- .../arm-devtestlabs/lib/operations/users.ts | 91 +- .../lib/operations/virtualMachineSchedules.ts | 16 +- .../lib/operations/virtualMachines.ts | 383 +- .../lib/operations/virtualNetworks.ts | 17 +- packages/@azure/arm-devtestlabs/package.json | 15 +- packages/@azure/arm-hdinsight/LICENSE.txt | 42 +- packages/@azure/arm-hdinsight/README.md | 162 +- .../lib/hDInsightManagementClientContext.ts | 9 +- packages/@azure/arm-hdinsight/package.json | 15 +- packages/@azure/arm-network/.npmignore | 35 + .../lib/models/applicationGatewaysMappers.ts | 6 - .../applicationSecurityGroupsMappers.ts | 6 - .../availableEndpointServicesMappers.ts | 6 - .../models/azureFirewallFqdnTagsMappers.ts | 6 - .../lib/models/azureFirewallsMappers.ts | 6 - .../models/bgpServiceCommunitiesMappers.ts | 6 - .../lib/models/connectionMonitorsMappers.ts | 6 - .../lib/models/ddosProtectionPlansMappers.ts | 6 - .../lib/models/defaultSecurityRulesMappers.ts | 6 - ...xpressRouteCircuitAuthorizationsMappers.ts | 6 - .../expressRouteCircuitConnectionsMappers.ts | 6 - .../expressRouteCircuitPeeringsMappers.ts | 6 - .../lib/models/expressRouteCircuitsMappers.ts | 6 - .../models/expressRouteConnectionsMappers.ts | 6 - ...ressRouteCrossConnectionPeeringsMappers.ts | 6 - .../expressRouteCrossConnectionsMappers.ts | 6 - .../lib/models/expressRouteGatewaysMappers.ts | 6 - .../expressRouteServiceProvidersMappers.ts | 6 - .../hubVirtualNetworkConnectionsMappers.ts | 6 - .../lib/models/inboundNatRulesMappers.ts | 6 - .../@azure/arm-network/lib/models/index.ts | 842 +-- .../lib/models/interfaceEndpointsMappers.ts | 6 - .../loadBalancerBackendAddressPoolsMappers.ts | 6 - ...BalancerFrontendIPConfigurationsMappers.ts | 6 - .../loadBalancerLoadBalancingRulesMappers.ts | 6 - .../loadBalancerNetworkInterfacesMappers.ts | 6 - .../lib/models/loadBalancerProbesMappers.ts | 6 - .../lib/models/loadBalancersMappers.ts | 6 - .../lib/models/localNetworkGatewaysMappers.ts | 6 - .../@azure/arm-network/lib/models/mappers.ts | 514 +- ...networkInterfaceIPConfigurationsMappers.ts | 6 - .../networkInterfaceLoadBalancersMappers.ts | 6 - ...etworkInterfaceTapConfigurationsMappers.ts | 6 - .../lib/models/networkInterfacesMappers.ts | 6 - .../lib/models/networkProfilesMappers.ts | 6 - .../models/networkSecurityGroupsMappers.ts | 6 - .../lib/models/networkWatchersMappers.ts | 8 +- .../lib/models/p2sVpnGatewaysMappers.ts | 6 - .../p2sVpnServerConfigurationsMappers.ts | 6 - .../arm-network/lib/models/parameters.ts | 82 +- .../lib/models/publicIPAddressesMappers.ts | 6 - .../lib/models/publicIPPrefixesMappers.ts | 6 - .../lib/models/routeFilterRulesMappers.ts | 6 - .../lib/models/routeFiltersMappers.ts | 6 - .../lib/models/routeTablesMappers.ts | 6 - .../arm-network/lib/models/routesMappers.ts | 6 - .../lib/models/securityRulesMappers.ts | 6 - .../models/serviceEndpointPoliciesMappers.ts | 6 - ...serviceEndpointPolicyDefinitionsMappers.ts | 6 - .../arm-network/lib/models/subnetsMappers.ts | 6 - .../lib/models/virtualHubsMappers.ts | 6 - ...virtualNetworkGatewayConnectionsMappers.ts | 6 - .../models/virtualNetworkGatewaysMappers.ts | 6 - .../models/virtualNetworkPeeringsMappers.ts | 6 - .../lib/models/virtualNetworkTapsMappers.ts | 6 - .../lib/models/virtualNetworksMappers.ts | 6 - .../lib/models/virtualWansMappers.ts | 6 - .../lib/models/vpnConnectionsMappers.ts | 6 - .../lib/models/vpnGatewaysMappers.ts | 6 - .../arm-network/lib/models/vpnSitesMappers.ts | 6 - .../lib/networkManagementClient.ts | 8 - .../lib/networkManagementClientContext.ts | 6 + .../arm-network/lib/operations/index.ts | 4 - .../lib/operations/virtualNetworks.ts | 12 +- packages/@azure/arm-network/package.json | 15 +- packages/@azure/arm-sql/README.md | 166 +- ...databaseVulnerabilityAssessmentsMappers.ts | 1 - packages/@azure/arm-sql/lib/models/index.ts | 220 +- ...DatabaseVulnerabilityAssessmentsMappers.ts | 1 - packages/@azure/arm-sql/lib/models/mappers.ts | 55 +- .../databaseVulnerabilityAssessments.ts | 117 - ...managedDatabaseVulnerabilityAssessments.ts | 114 - .../arm-sql/lib/sqlManagementClientContext.ts | 6 + packages/@azure/arm-storage/.npmignore | 35 + packages/@azure/arm-storage/README.md | 2 +- .../lib/models/blobContainersMappers.ts | 4 - .../@azure/arm-storage/lib/models/index.ts | 138 - .../lib/models/managementPoliciesMappers.ts | 4 - .../@azure/arm-storage/lib/models/mappers.ts | 144 - .../arm-storage/lib/models/parameters.ts | 12 - .../lib/models/storageAccountsMappers.ts | 4 - .../arm-storage/lib/operations/index.ts | 1 - .../lib/storageManagementClient.ts | 2 - .../lib/storageManagementClientContext.ts | 6 + packages/@azure/arm-storage/package.json | 15 +- packages/@azure/graph/.npmignore | 35 + packages/@azure/graph/README.md | 2 +- .../lib/graphRbacManagementClientContext.ts | 9 +- .../lib/models/deletedApplicationsMappers.ts | 2 - .../@azure/graph/lib/models/groupsMappers.ts | 2 - packages/@azure/graph/lib/models/index.ts | 8 - packages/@azure/graph/lib/models/mappers.ts | 17 - .../@azure/graph/lib/models/objectsMappers.ts | 2 - .../lib/models/servicePrincipalsMappers.ts | 2 - .../graph/lib/models/signedInUserMappers.ts | 2 - .../@azure/graph/lib/models/usersMappers.ts | 2 - packages/@azure/graph/package.json | 15 +- packages/@azure/loganalytics/.npmignore | 70 +- packages/@azure/loganalytics/LICENSE.txt | 42 +- tsconfig.json | 62 +- 171 files changed, 4535 insertions(+), 11301 deletions(-) create mode 100644 packages/@azure/arm-appservice/.npmignore create mode 100644 packages/@azure/arm-cosmosdb/.npmignore create mode 100644 packages/@azure/arm-network/.npmignore create mode 100644 packages/@azure/arm-storage/.npmignore create mode 100644 packages/@azure/graph/.npmignore diff --git a/.scripts/commandLine.ts b/.scripts/commandLine.ts index 867e5639adbe..bc7f84aa2379 100644 --- a/.scripts/commandLine.ts +++ b/.scripts/commandLine.ts @@ -4,11 +4,11 @@ * license information. */ -import minimist from "minimist"; +import * as minimist from "minimist"; import * as path from "path"; -import * as yargs from "yargs"; -import { Options } from "yargs"; import { arrayContains, findAzureRestApiSpecsRepositoryPathSync } from "./common"; +import { Options } from "yargs"; +import * as yargs from "yargs"; export type YargsMapping = { [key: string]: Options }; @@ -74,7 +74,7 @@ export module Argv { loggingLevel: yargs.options(Argv.Options.Common).argv["logging-level"], } - export function combine(...configs: YargsMapping[]): YargsMapping { + const combine = (...configs: YargsMapping[]): YargsMapping => { let result = Options.Common; for (const config of configs) { result = { ...result, ...config }; @@ -82,9 +82,9 @@ export module Argv { return result; } - export function construct(...configs: YargsMapping[]): yargs.Argv { - const mergedOption: YargsMapping = combine(...configs); - const args: yargs.Argv = yargs.options(mergedOption) + export const construct = (...configs: YargsMapping[]) => { + const mergedOption = combine(...configs); + const args = yargs.options(mergedOption) .strict() .help("?") .showHelpOnFail(true, "Invalid usage. Run with -? to see help.") @@ -97,7 +97,7 @@ export module Argv { return args; } - export function print(): String { + export const print = () => { return process.argv.slice(2).join(", "); } } @@ -117,7 +117,7 @@ export interface CommandLineOptions extends minimist.ParsedArgs { getSdkType(): SdkType; } -export const commandLineConfiguration: minimist.Opts = { +export const commandLineConfiguration = { string: ["azure-sdk-for-js-repo-root", "azure-rest-api-specs-root", "logging-level", "package", "type"], boolean: ["debugger", "use", "skip-sdk", "skip-spec", "verbose", "whatif"], alias: { @@ -143,8 +143,8 @@ export function getCommandLineOptions(): CommandLineOptions { } function createCommandLineParameters(): CommandLineOptions { - const args: CommandLineOptions = minimist(process.argv.slice(2), commandLineConfiguration) as CommandLineOptions; - args.getSdkType = () => parseSdkType(args.type); + const args = minimist(process.argv.slice(2), commandLineConfiguration) as CommandLineOptions; + args.getSdkType = getSdkType; return args; } @@ -164,3 +164,7 @@ export function parseSdkType(str: string): SdkType { return SdkType.Unknown; } } + +function getSdkType(): SdkType { + return parseSdkType(this.type); +} diff --git a/.scripts/common.ts b/.scripts/common.ts index 6503abc6a537..4c84b99d368c 100644 --- a/.scripts/common.ts +++ b/.scripts/common.ts @@ -4,10 +4,10 @@ * license information. */ -import { execSync } from "child_process"; import * as fssync from "fs"; -import { promises as fs } from "fs"; import * as path from "path"; +import { promises as fs } from "fs"; +import { execSync } from "child_process"; export function arrayContains(array: T[], el: T): boolean { return array.indexOf(el) != -1 @@ -23,7 +23,7 @@ export async function isDirectory(directoryPath: string): Promise { } export async function pathExists(path: string): Promise { - return new Promise((resolve) => { + return new Promise((resolve, reject) => { fssync.exists(path, exists => { resolve(exists); }); @@ -31,11 +31,11 @@ export async function pathExists(path: string): Promise { } export function startsWith(value: string, prefix: string): boolean { - return !!(value && prefix && value.indexOf(prefix) === 0); + return value && prefix && value.indexOf(prefix) === 0; } export function endsWith(value: string, suffix: string): boolean { - return !!(value && suffix && value.length >= suffix.length && value.lastIndexOf(suffix) === value.length - suffix.length); + return value && suffix && value.length >= suffix.length && value.lastIndexOf(suffix) === value.length - suffix.length; } export function contains(values: string[], searchString: string): boolean { @@ -69,7 +69,7 @@ export async function getChildDirectories(parent: string): Promise { return childDirectories; } -export function findAzureRestApiSpecsRepositoryPathSync(): string | undefined { +export function findAzureRestApiSpecsRepositoryPathSync(): string { const repositoryName = "azure-rest-api-specs"; let currentDirectory = __dirname; const pathData = path.parse(currentDirectory); diff --git a/.scripts/git.ts b/.scripts/git.ts index d06be1615c31..977878c376b5 100644 --- a/.scripts/git.ts +++ b/.scripts/git.ts @@ -4,7 +4,7 @@ * license information. */ -import { Cred, Index, Merge, Oid, Reference, Repository, Reset, Signature, StatusFile } from "nodegit"; +import { Repository, Signature, Merge, Oid, Reference, Cred, StatusFile, Reset, Index } from "nodegit"; import { Logger } from "./logger"; export type ValidateFunction = (statuses: StatusFile[]) => boolean; @@ -66,10 +66,11 @@ export class Branch { } const _logger = Logger.get(); -const _lockMap: { [key: string]: boolean } = {} +const _lockMap = {} -function isLocked(repositoryPath: string): boolean { - return !!_lockMap[repositoryPath]; +function isLocked(repositoryPath: string) { + const isLocked = _lockMap[repositoryPath]; + return isLocked || false; } function lock(repositoryPath: string) { @@ -77,13 +78,13 @@ function lock(repositoryPath: string) { } function unlock(repositoryPath: string) { - _lockMap[repositoryPath] = false; + _lockMap[repositoryPath] = true; } async function waitUntilUnlocked(repositoryPath: string): Promise { _logger.logTrace("Waiting for the repository to be unlocked"); - return new Promise((resolve) => { + return new Promise((resolve, reject) => { const wait = () => { setTimeout(() => { _logger.logTrace(`Repository is ${isLocked(repositoryPath) ? "locked" : "unlocked"}`); @@ -154,7 +155,7 @@ export async function mergeMasterIntoBranch(repository: Repository, toBranch: Br return mergeBranch(repository, toBranch, Branch.RemoteMaster); } -export async function pullBranch(repository: Repository, localBranch: Branch): Promise { +export async function pullBranch(repository: Repository, localBranch: Branch): Promise { _logger.logTrace(`Pulling "${localBranch.fullName()}" branch in ${repository.path()} repository`); await repository.fetchAll(); @@ -169,9 +170,10 @@ export async function pullBranch(repository: Repository, localBranch: Branch): P } _logger.logTrace(`Merged "${remoteBranch.fullName()}" to "${localBranch.fullName()}" successfully without any conflicts`); + return undefined; } -export async function pullMaster(repository: Repository): Promise { +export async function pullMaster(repository: Repository): Promise { return pullBranch(repository, Branch.LocalMaster); } @@ -211,13 +213,13 @@ export async function checkoutRemoteBranch(repository: Repository, remoteBranch: return branchRef; } -export async function rebaseBranch(repository: Repository, localBranch: Branch): Promise { +export async function rebaseBranch(repository: Repository, localBranch: Branch) { return repository.rebaseBranches( localBranch.name, Branch.RemoteMaster.shorthand(), - "", + undefined, repository.defaultSignature(), - (_: any) => {}); + _ => {}); } function getCurrentDateSuffix(): string { @@ -257,7 +259,7 @@ export async function commitChanges(repository: Repository, commitMessage: strin const index = await repository.refreshIndex(); if (typeof validateEach === "string") { const folderName = validateEach; - validateEach = (path) => { + validateEach = (path, pattern) => { return path.startsWith(folderName) ? 0 : 1; } } @@ -281,7 +283,7 @@ export async function pushBranch(repository: Repository, localBranch: Branch, fo return new Promise((resolve, reject) => { remote.push([refSpec], { callbacks: { - credentials: () => { + credentials: function (url, userName) { return Cred.userpassPlaintextNew(getToken(), "x-oauth-basic"); } } @@ -294,13 +296,13 @@ export async function pushBranch(repository: Repository, localBranch: Branch, fo }); } -export async function commitAndPush(repository: Repository, localBranch: Branch, commitMessage: string, validate?: ValidateFunction, validateEach?: string | ValidateEachFunction, forcePush?: boolean): Promise { +export async function commitAndPush(repository: Repository, localBranch: Branch, commitMessage: string, validate?: ValidateFunction, validateEach?: string | ValidateEachFunction, forcePush?: boolean) { await commitChanges(repository, commitMessage, validate, validateEach); await pushBranch(repository, localBranch, forcePush); } export function getToken(): string { - const token: string = process.env.SDK_GEN_GITHUB_TOKEN || ""; + const token = process.env.SDK_GEN_GITHUB_TOKEN; _validatePersonalAccessToken(token); return token; diff --git a/.scripts/github.ts b/.scripts/github.ts index 5ecbfd017835..6db4f2e2af51 100644 --- a/.scripts/github.ts +++ b/.scripts/github.ts @@ -4,10 +4,11 @@ * license information. */ -import Octokit, { PullRequestsCreateParams, PullRequestsCreateReviewRequestParams, PullRequestsCreateReviewRequestResponse, PullRequestsGetAllParams, PullRequestsGetAllResponse, PullRequestsGetAllResponseItem, PullRequestsGetParams, PullRequestsUpdateParams, Response } from '@octokit/rest'; -import { Reference, Repository } from 'nodegit'; -import { Branch, commitChanges, createNewUniqueBranch, getToken, pushBranch, ValidateEachFunction, ValidateFunction } from './git'; +import * as Octokit from '@octokit/rest' +import { PullRequestsCreateParams, Response, PullRequestsCreateReviewRequestParams, PullRequestsCreateReviewRequestResponse, PullRequestsGetParams, PullRequestsGetAllParams, PullRequestsGetAllResponse, PullRequestsGetAllResponseItem, PullRequestsUpdateParams } from '@octokit/rest'; +import { getToken, createNewUniqueBranch, commitChanges, pushBranch,ValidateFunction, ValidateEachFunction, Branch } from './git'; import { Logger } from './logger'; +import { Repository, Reference } from 'nodegit'; const _repositoryOwner = "Azure"; const _logger = Logger.get(); @@ -59,7 +60,7 @@ export async function listPullRequests(repositoryName: string, state?: "open" | }); } -export async function findPullRequest(repositoryName: string, branchName: string, state?: "open" | "closed" | "all"): Promise { +export async function findPullRequest(repositoryName: string, branchName: string, state?: "open" | "closed" | "all"): Promise { const allPullRequests = await listPullRequests(repositoryName, state); return allPullRequests.data.find(el => el.head.ref === branchName); } @@ -112,14 +113,14 @@ export async function commitAndCreatePullRequest( return reviewResponse.data.html_url; } -export async function getDataFromPullRequest(pullRequestUrl: string): Promise<{ packageName: string | undefined, branchName: string, prId: number }> { - const octokit: Octokit = getAuthenticatedClient(); - const params: Octokit.PullRequestsGetParams = parsePullRequestUrl(pullRequestUrl); - const pullRequest: Octokit.Response = await octokit.pullRequests.get(params); - const branchName: string = pullRequest.data.head.ref; - const files: Octokit.Response = await octokit.pullRequests.getFiles(params); - const path: string = getRootFolder(files.data.map(i => i.filename)); - const packageName: string | undefined = getPackageNameFromPath(path); +export async function getDataFromPullRequest(pullRequestUrl: string): Promise<{ packageName: string, branchName: string, prId: number }> { + const octokit = getAuthenticatedClient(); + const params = parsePullRequestUrl(pullRequestUrl); + const pullRequest = await octokit.pullRequests.get(params); + const branchName = pullRequest.data.head.ref; + const files = await octokit.pullRequests.getFiles(params); + const path = getRootFolder(files.data.map(i => i.filename)); + const packageName = getPackageNameFromPath(path); _logger.logTrace(`Found "${packageName}" package name and ${branchName} branch name`) return { packageName: packageName, branchName: branchName, prId: params.number }; diff --git a/.scripts/gulp.ts b/.scripts/gulp.ts index 7f11e035e7f7..0515bda733c9 100644 --- a/.scripts/gulp.ts +++ b/.scripts/gulp.ts @@ -4,28 +4,27 @@ * license information. */ -import { PullRequestsGetAllResponseItem } from "@octokit/rest"; -import { execSync } from "child_process"; -import fs from "fs"; -import * as path from "path"; import { SdkType } from "./commandLine"; +import { findSdkDirectory, saveContentToFile, findMissingSdks } from "./packages"; +import { copyExistingNodeJsReadme, updateTypeScriptReadmeFile, findReadmeTypeScriptMdFilePaths, getPackageNamesFromReadmeTypeScriptMdFileContents, getAbsolutePackageFolderPathFromReadmeFileContents, updateMainReadmeFile, getSinglePackageName } from "./readme"; +import * as fs from "fs"; +import * as path from "path"; +import { Version } from "./version"; import { contains, npmInstall } from "./common"; -import { Branch, BranchLocation, checkoutRemoteBranch, commitAndPush, getValidatedRepository, mergeMasterIntoBranch, refreshRepository, unlockGitRepository, ValidateFunction, waitAndLockGitRepository } from "./git"; -import { commitAndCreatePullRequest, findPullRequest, forcePrDiffRefresh, requestPullRequestReview } from "./github"; +import { execSync } from "child_process"; import { Logger } from "./logger"; -import { findMissingSdks, findSdkDirectory, saveContentToFile } from "./packages"; -import { copyExistingNodeJsReadme, findReadmeTypeScriptMdFilePaths, getAbsolutePackageFolderPathFromReadmeFileContents, getPackageNamesFromReadmeTypeScriptMdFileContents, getSinglePackageName, updateMainReadmeFile, updateTypeScriptReadmeFile } from "./readme"; -import { Version } from "./version"; +import { refreshRepository, getValidatedRepository, waitAndLockGitRepository, unlockGitRepository, ValidateFunction, ValidateEachFunction, checkoutBranch, pullBranch, mergeBranch, mergeMasterIntoBranch, commitAndPush, checkoutRemoteBranch, Branch, BranchLocation, rebaseBranch } from "./git"; +import { commitAndCreatePullRequest, findPullRequest, requestPullRequestReview, forcePrDiffRefresh } from "./github"; const _logger = Logger.get(); function containsPackageName(packageNames: string[], packageName: string): boolean { const result = contains(packageNames, packageName) || - contains(packageNames, `@azure/${packageName}`) || - contains(packageNames, `"${packageName}"`) || - contains(packageNames, `"@azure/${packageName}"`) || - contains(packageNames, `'${packageName}'`) || - contains(packageNames, `'@azure/${packageName}'`); + contains(packageNames, `@azure/${packageName}`) || + contains(packageNames, `"${packageName}"`) || + contains(packageNames, `"@azure/${packageName}"`) || + contains(packageNames, `'${packageName}'`) || + contains(packageNames, `'@azure/${packageName}'`); _logger.logTrace(`Comparing package name "${packageName}" to ${JSON.stringify(packageNames)} - Result: ${result}`); return result; } @@ -70,13 +69,8 @@ export async function generateSdk(azureRestAPISpecsRoot: string, azureSDKForJSRe _logger.log(commandOutput); _logger.log('Installing dependencies...'); - const packageFolderPath: string | undefined = getAbsolutePackageFolderPathFromReadmeFileContents(azureSDKForJSRepoRoot, typeScriptReadmeFileContents); - if (!packageFolderPath) { - _logger.log('Error:'); - _logger.log(`Could not determine the generated package folder's path from ${typeScriptReadmeFilePath}.`); - } else { - npmInstall(packageFolderPath); - } + const packageFolderPath: string = getAbsolutePackageFolderPathFromReadmeFileContents(azureSDKForJSRepoRoot, typeScriptReadmeFileContents); + npmInstall(packageFolderPath); } catch (err) { _logger.log('Error:'); _logger.log(`An error occurred while generating client for packages: "${packageNamesString}":\nErr: ${err}\nStderr: "${err.stderr}"`); @@ -91,7 +85,7 @@ export async function generateSdk(azureRestAPISpecsRoot: string, azureSDKForJSRe export async function generateTsReadme(packageName: string, sdkType: SdkType, azureRestApiSpecsRepositoryPath: string, specDirectory?: string, skipSpecificationGeneration?: boolean): Promise<{ pullRequestUrl?: string, typescriptReadmePath?: string }> { if (skipSpecificationGeneration) { _logger.log(`Skipping spec generation`); - return {}; + return { }; } const azureRestApiSpecRepository = await getValidatedRepository(azureRestApiSpecsRepositoryPath); @@ -153,7 +147,7 @@ export async function generateMissingSdk(azureSdkForJsRepoPath: string, packageN const pullRequestTitle = `Generate ${packageName} package`; const pullRequestDescription = - `Auto generated. Matching specification pull request - ${readmeGenerationResult.pullRequestUrl}\n\n\n + `Auto generated. Matching specification pull request - ${readmeGenerationResult.pullRequestUrl}\n\n\n \`\`\` ${_logger.getCapturedText()} \`\`\`` @@ -180,7 +174,7 @@ export async function generateAllMissingSdks(azureSdkForJsRepoPath: string, azur } } -export async function regenerate(branchName: string, packageName: string, azureSdkForJsRepoPath: string, azureRestAPISpecsPath: string, pullRequestId: number, skipVersionBump?: boolean, requestReview?: boolean) { +export async function regenerate(branchName: string, packageName: string, azureSdkForJsRepoPath: string, azureRestAPISpecsPath: string, pullRequestId?: number, skipVersionBump?: boolean, requestReview?: boolean) { const azureSdkForJsRepository = await getValidatedRepository(azureSdkForJsRepoPath); await refreshRepository(azureSdkForJsRepository); _logger.log(`Refreshed ${azureSdkForJsRepository.path()} repository successfully`); @@ -215,10 +209,8 @@ export async function regenerate(branchName: string, packageName: string, azureS if (requestReview) { if (!pullRequestId) { - const pullRequest: PullRequestsGetAllResponseItem | undefined = await findPullRequest("azure-sdk-for-js", branchName, "open"); - if (pullRequest) { - pullRequestId = pullRequest.id; - } + const pullRequest = await findPullRequest("azure-sdk-for-js", branchName, "open"); + pullRequestId = pullRequest.id; } await requestPullRequestReview("azure-sdk-for-js", pullRequestId); _logger.log(`Requested review on PR ${pullRequestId} successfully`); diff --git a/.scripts/logger.ts b/.scripts/logger.ts index 4652bb386477..605c83d81662 100644 --- a/.scripts/logger.ts +++ b/.scripts/logger.ts @@ -39,13 +39,13 @@ export class Logger { constructor(loggingLevel: string) { const lowerCaseLevel = loggingLevel.toLowerCase(); const capitalizedLevel = lowerCaseLevel.charAt(0).toUpperCase() + lowerCaseLevel.slice(1); - this._loggingLevel = LoggingLevel[capitalizedLevel as any] as any; + this._loggingLevel = LoggingLevel[capitalizedLevel]; this._cache = []; } log(text?: string): void { - console.log(text); - this._capture(text || ""); + console.log(text || ""); + this._capture(text); } clearCapturedText(): void { @@ -56,45 +56,45 @@ export class Logger { return this._cache.join("\n"); } - private _capture(text: string): void { + private _capture(text?: string): void { this._cache.push(text); } - logInfo(text: string): void { + logInfo(text?: string) { this.log(text.info); } - logRed(text: string): void { + logRed(text?: string): void { this.log(text.red); } - logGreen(text: string): void { + logGreen(text?: string): void { this.log(text.green); } - logError(text: string): void { + logError(text?: string): void { this.log(text.bgRed); } - logWarn(text: string): void { + logWarn(text?: string): void { if (this._loggingLevel <= LoggingLevel.Warn) { this.log(text.bgYellow.black); } } - logDebug(text: string): void { + logDebug(text?: string): void { if (this._loggingLevel <= LoggingLevel.Debug) { this.log(text); } } - logWithDebugDetails(text: string, details?: string): void { + logWithDebugDetails(text?: string, details?: string): void { const greyDetails = `(${details})`.grey; const textToLog = (this._loggingLevel <= LoggingLevel.Debug) ? `${text} ${greyDetails}` : (text); this.log(textToLog); } - logTrace(text: string): void { + logTrace(text?: string) { if (this._loggingLevel <= LoggingLevel.Trace) { this.log(text.gray); } @@ -104,7 +104,7 @@ export class Logger { console.log(`[${path}]> ${message}`); } - static get(): Logger { + static get() { return new Logger(Argv.Global.loggingLevel); } } diff --git a/.scripts/packages.ts b/.scripts/packages.ts index 070899dc8166..c0c7fc8601a7 100644 --- a/.scripts/packages.ts +++ b/.scripts/packages.ts @@ -4,14 +4,14 @@ * license information. */ -import { exec, ExecException } from "child_process"; import * as fssync from "fs"; import { promises as fs } from "fs"; import * as path from "path"; -import { parseSdkType, SdkType } from "./commandLine"; -import { arrayContains, getChildDirectories, isDirectory, pathExists } from "./common"; +import { SdkType, parseSdkType } from "./commandLine"; +import { pathExists, isDirectory, arrayContains, getChildDirectories } from "./common"; import { Logger } from "./logger"; import { doesReadmeMdFileSpecifiesTypescriptSdk, findReadmeTypeScriptMdFilePaths, getAbsolutePackageFolderPathFromReadmeFileContents, getPackageNamesFromReadmeTypeScriptMdFileContents } from "./readme"; +import { exec, ExecException } from "child_process"; export type SdkInfo = { sdkName: string; sdkType: SdkType }; export type PackageInfo = { @@ -88,7 +88,7 @@ async function findChildDirectoriesRecursively(directoryPath: string): Promise /^readme/.test(file)); - const fullSpecName = `${serviceDirectory} [${sdkTypeDirectory}]` - const sdk = { sdkName: serviceDirectory, sdkType: parseSdkType(sdkTypeDirectory) }; - - if (readmeFiles.length <= 0) { - // No readme.md - } else if (arrayContains(readmeFiles, "readme.nodejs.md")) { - if (!arrayContains(readmeFiles, "readme.typescript.md")) { - _logger.logWithDebugDetails(`${fullSpecName}`.negative, "readme.nodejs.md exists but no matching readme.typescript.md"); - return sdk; - } else { - _logger.logDebug(fullSpecName.positive); - } - } else if (arrayContains(readmeFiles, "readme.md")) { - const readmeMdPath = path.resolve(fullSdkPath, "readme.md"); - if (await doesReadmeMdFileSpecifiesTypescriptSdk(readmeMdPath)) { - _logger.logWithDebugDetails(`${fullSpecName}`.negative, "typescript mentioned in readme.md but no readme.typescript.md exists"); - return sdk; - } else { - _logger.logDebug(fullSpecName.positive); - } - } + return undefined; } - return undefined; + const readmeFiles = (await fs.readdir(fullSdkPath)).filter(file => /^readme/.test(file)); + const fullSpecName = `${serviceDirectory} [${sdkTypeDirectory}]` + const sdk = { sdkName: serviceDirectory, sdkType: parseSdkType(sdkTypeDirectory) }; + + if (readmeFiles.length <= 0) { + // No readme.md + return undefined; + } else if (arrayContains(readmeFiles, "readme.nodejs.md")) { + if (!arrayContains(readmeFiles, "readme.typescript.md")) { + _logger.logWithDebugDetails(`${fullSpecName}`.negative, "readme.nodejs.md exists but no matching readme.typescript.md"); + return sdk; + } else { + _logger.logDebug(fullSpecName.positive); + } + } else if (arrayContains(readmeFiles, "readme.md")) { + const readmeMdPath = path.resolve(fullSdkPath, "readme.md"); + if (await doesReadmeMdFileSpecifiesTypescriptSdk(readmeMdPath)) { + _logger.logWithDebugDetails(`${fullSpecName}`.negative, "typescript mentioned in readme.md but no readme.typescript.md exists"); + return sdk; + } else { + _logger.logDebug(fullSpecName.positive); + } + } } export async function saveContentToFile(filePath: string, content: string): Promise { @@ -151,7 +151,7 @@ async function findPackagesWithIncorrectOutput(packageInfos: PackageInfo[]): Pro const incorrectPackages: PackageFault[] = []; for (const packageInfo of packageInfos) { - if (packageInfo.outputPath && !fssync.existsSync(packageInfo.outputPath)) { + if (!fssync.existsSync(packageInfo.outputPath)) { incorrectPackages.push({ package: packageInfo, message: "Output path in azure-sdk-for-js repository doesn't exists. Hint: try regenerating the package." @@ -234,33 +234,35 @@ async function getPackageInformationFromReadmeFiles(azureRestApiSpecsRoot: strin } async function getPackageMetadataFromReadmeFile(azureSdkForJsRoot: string, azureRestApiSpecsRoot: string, tsReadmePath: string): Promise { - const readmeBuffer: Buffer = await fs.readFile(tsReadmePath); - const readmeContent: string = readmeBuffer.toString() - const absoluteOutputPath: string | undefined = getAbsolutePackageFolderPathFromReadmeFileContents(azureSdkForJsRoot, readmeContent); - const packageNames: string[] = getPackageNamesFromReadmeTypeScriptMdFileContents(readmeContent); - return packageNames.map((name: string) => { + const readmeBuffer = await fs.readFile(tsReadmePath); + const readmeContent = readmeBuffer.toString() + const absoluteOutputPath = getAbsolutePackageFolderPathFromReadmeFileContents(azureSdkForJsRoot, readmeContent); + const packageNames = getPackageNamesFromReadmeTypeScriptMdFileContents(readmeContent); + const packageName = packageNames.length == 1 ? packageNames[0] : JSON.stringify(packageNames); + + const packageInfos = packageNames.map(name => { return { name: name, outputPath: absoluteOutputPath, readmePath: tsReadmePath.replace(azureRestApiSpecsRoot, "") } }); + + return packageInfos; } async function getPackagesWithBuildErrors(azureSdkForJsRoot: string, jsonPackageInfos: PackageInfo[]): Promise { const faultyPackages: PackageFault[] = []; for (const packageInfo of jsonPackageInfos) { - if (packageInfo.outputPath) { - const packagePath: string = path.resolve(azureSdkForJsRoot, packageInfo.outputPath); - _logger.logTrace(`Building ${packagePath} directory.`); - const error: string | undefined = await buildAndGetErrorOutput(packagePath); - if (error) { - faultyPackages.push({ - package: packageInfo, - message: "Package doesn't build correctly. Look into details property to see build failures", - details: error - }); - } + const packagePath = path.resolve(azureSdkForJsRoot, packageInfo.outputPath); + _logger.logTrace(`Building ${packagePath} directory.`); + const error = await buildAndGetErrorOutput(packagePath); + if (error) { + faultyPackages.push({ + package: packageInfo, + message: "Package doesn't build correctly. Look into details property to see build failures", + details: error + }); } } @@ -270,7 +272,7 @@ async function getPackagesWithBuildErrors(azureSdkForJsRoot: string, jsonPackage async function buildAndGetErrorOutput(packagePath: string): Promise { return new Promise((resolve) => { - exec("npm install && npm run build", { cwd: packagePath }, (error: ExecException | null, stdout: string) => { + exec("npm install && npm run build", { cwd: packagePath }, (error: ExecException, stdout: string) => { if (error) { resolve(`Status code: ${error.code}\n\tOutput: ${stdout}\n\tMessage: ${error.message}`); } else { diff --git a/.scripts/readme.ts b/.scripts/readme.ts index 45568c4d4123..7d86e60d64d4 100644 --- a/.scripts/readme.ts +++ b/.scripts/readme.ts @@ -4,12 +4,12 @@ * license information. */ +import { pathExists, startsWith, contains } from "./common"; import { promises as fs } from "fs"; import * as glob from "glob"; -import * as yaml from "js-yaml"; import * as path from "path"; +import * as yaml from "js-yaml"; import { SdkType } from "./commandLine"; -import { contains, pathExists, startsWith } from "./common"; import { Logger } from "./logger"; const _logger = Logger.get(); @@ -107,28 +107,24 @@ export async function getSinglePackageName(typescriptReadmePath: string): Promis } async function updatePackageName(settings: ReadmeSettings, sdkType: SdkType): Promise { - if (settings.nodejs) { - let packageName: string = settings.nodejs["package-name"] - if (packageName.startsWith("azure-")) { - packageName = packageName.replace("azure-", ""); - } - - if (sdkType == SdkType.ResourceManager && !packageName.startsWith("arm-")) { - packageName = `arm-${packageName}` - } + let packageName = settings.nodejs["package-name"] + if (packageName.startsWith("azure-")) { + packageName = packageName.replace("azure-", ""); + } - settings.nodejs["package-name"] = `"@azure/${packageName}"` + if (sdkType == SdkType.ResourceManager && !packageName.startsWith("arm-")) { + packageName = `arm-${packageName}` } + + settings.nodejs["package-name"] = `"@azure/${packageName}"` return settings; } async function updateMetadataFields(settings: ReadmeSettings): Promise { - if (settings.nodejs) { - settings.nodejs["generate-metadata"] = true; - delete settings.nodejs["generate-license-txt"] - delete settings.nodejs["generate-package-json"] - delete settings.nodejs["generate-readme-md"]; - } + settings.nodejs["generate-metadata"] = true; + delete settings.nodejs["generate-license-txt"] + delete settings.nodejs["generate-package-json"] + delete settings.nodejs["generate-readme-md"]; return settings; } @@ -138,15 +134,13 @@ function stripExtraQuotes(text: string): string { } async function updateOutputFolder(settings: ReadmeSettings): Promise { - if (settings.nodejs) { - const outputName: string = settings.nodejs["package-name"].replace(/"/g, ""); - settings.nodejs["output-folder"] = `"$(typescript-sdks-folder)/packages/${outputName}"`; - } + const outputName = settings.nodejs["package-name"].replace(/"/g, ""); + settings.nodejs["output-folder"] = `"$(typescript-sdks-folder)/packages/${outputName}"`; return settings; } async function updateYamlSection(sectionText: string, sdkType: SdkType): Promise { - const section: any = yaml.safeLoad(sectionText); + const section = yaml.safeLoad(sectionText); await updatePackageName(section, sdkType); await updateMetadataFields(section); await updateOutputFolder(section); @@ -236,15 +230,14 @@ export function findReadmeTypeScriptMdFilePaths(azureRestAPISpecsRoot: string): return readmeTypeScriptMdFilePaths; } -export function getOutputFolderFromReadmeTypeScriptMdFileContents(readmeTypeScriptMdFileContents: string): string | undefined { - const regExpMatch: RegExpMatchArray | null = readmeTypeScriptMdFileContents.match(/output-folder: (\S*)/); - return regExpMatch && regExpMatch.length >= 1 ? regExpMatch[1].replace(/\"/g, "") : undefined; +export function getOutputFolderFromReadmeTypeScriptMdFileContents(readmeTypeScriptMdFileContents: string): string { + return readmeTypeScriptMdFileContents.match(/output-folder: (\S*)/)[1].replace(/\"/g, ""); } export function getAbsolutePackageFolderPathFromReadmeFileContents( azureSDKForJSRepoRoot: string, typeScriptReadmeFileContents: string, -): string | undefined { - const outputFolderPath: string | undefined = getOutputFolderFromReadmeTypeScriptMdFileContents(typeScriptReadmeFileContents); - return !outputFolderPath ? outputFolderPath : outputFolderPath.replace("$(typescript-sdks-folder)", azureSDKForJSRepoRoot); +): string { + const outputFolderPath: string = getOutputFolderFromReadmeTypeScriptMdFileContents(typeScriptReadmeFileContents); + return outputFolderPath.replace("$(typescript-sdks-folder)", azureSDKForJSRepoRoot); } diff --git a/gulpfile.ts b/gulpfile.ts index 310fc86e0b65..77ed042af336 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -4,22 +4,26 @@ * license information. */ -import { execSync } from "child_process"; +import { getCommandLineOptions, Argv } from "./.scripts/commandLine"; +import { endsWith, npmInstall, npmRunBuild } from "./.scripts/common"; +import { findMissingSdks, findWrongPackages } from "./.scripts/packages"; +import { generateTsReadme, generateMissingSdk, generateAllMissingSdks, regenerate, generateSdk } from "./.scripts/gulp"; +import { + findReadmeTypeScriptMdFilePaths, + getAbsolutePackageFolderPathFromReadmeFileContents, + getPackageFolderPathFromPackageArgument, +} from "./.scripts/readme"; +import { Logger } from "./.scripts/logger"; import * as fs from "fs"; -import gulp from "gulp"; +import * as gulp from "gulp"; import * as path from "path"; -import { Argv, CommandLineOptions, getCommandLineOptions } from "./.scripts/commandLine"; -import { endsWith, npmInstall, npmRunBuild } from "./.scripts/common"; +import { execSync } from "child_process"; import { getDataFromPullRequest } from "./.scripts/github"; -import { generateAllMissingSdks, generateMissingSdk, generateSdk, generateTsReadme, regenerate } from "./.scripts/gulp"; -import { Logger } from "./.scripts/logger"; -import { findMissingSdks, findWrongPackages } from "./.scripts/packages"; -import { findReadmeTypeScriptMdFilePaths, getAbsolutePackageFolderPathFromReadmeFileContents, getPackageFolderPathFromPackageArgument } from "./.scripts/readme"; -const args: CommandLineOptions = getCommandLineOptions(); -const _logger: Logger = Logger.get(); -const azureSDKForJSRepoRoot: string = args["azure-sdk-for-js-repo-root"] || __dirname; -const azureRestAPISpecsRoot: string = args["azure-rest-api-specs-root"] || path.resolve(azureSDKForJSRepoRoot, '..', 'azure-rest-api-specs'); +const args = getCommandLineOptions(); +const _logger = Logger.get(); +const azureSDKForJSRepoRoot: string = process.argv["azure-sdk-for-js-repo-root"] || __dirname; +const azureRestAPISpecsRoot: string = process.argv["azure-rest-api-specs-root"] || path.resolve(azureSDKForJSRepoRoot, '..', 'azure-rest-api-specs'); gulp.task('default', () => { _logger.log('gulp build --package '); @@ -118,69 +122,64 @@ const createPackages = (type: CreatePackageType = "pack") => { _logger.logTrace(`INFO: Processing ${typeScriptReadmeFilePath}`); const typeScriptReadmeFileContents: string = fs.readFileSync(typeScriptReadmeFilePath, 'utf8'); - const packageFolderPath: string | undefined = getAbsolutePackageFolderPathFromReadmeFileContents( + const packageFolderPath: string = getAbsolutePackageFolderPathFromReadmeFileContents( azureSDKForJSRepoRoot, typeScriptReadmeFileContents ); - if (!packageFolderPath) { - _logger.log(`ERROR: No output-path property specified in ${typeScriptReadmeFileContents}.`); + if (!fs.existsSync(packageFolderPath)) { + _logger.log(`ERROR: Package folder ${packageFolderPath} has not been generated.`); errorPackages++; - } else { - if (!fs.existsSync(packageFolderPath)) { - _logger.log(`ERROR: Package folder ${packageFolderPath} has not been generated.`); + } + else { + const packageJsonFilePath: string = `${packageFolderPath}/package.json`; + if (!fs.existsSync(packageJsonFilePath)) { + _logger.log(`ERROR: Package folder ${packageFolderPath} is missing its package.json file.`); errorPackages++; } else { - const packageJsonFilePath: string = `${packageFolderPath}/package.json`; - if (!fs.existsSync(packageJsonFilePath)) { - _logger.log(`ERROR: Package folder ${packageFolderPath} is missing its package.json file.`); - errorPackages++; - } - else { - const packageJson: { [propertyName: string]: any } = require(packageJsonFilePath); - const packageName: string = packageJson.name; - - if (!args.package || args.package === packageName || endsWith(packageName, `-${args.package}`)) { - const localPackageVersion: string = packageJson.version; - if (!localPackageVersion) { - _logger.log(`ERROR: "${packageJsonFilePath}" doesn't have a version specified.`); - errorPackages++; + const packageJson: { [propertyName: string]: any } = require(packageJsonFilePath); + const packageName: string = packageJson.name; + + if (!args.package || args.package === packageName || endsWith(packageName, `-${args.package}`)) { + const localPackageVersion: string = packageJson.version; + if (!localPackageVersion) { + _logger.log(`ERROR: "${packageJsonFilePath}" doesn't have a version specified.`); + errorPackages++; + } + else { + let npmPackageVersion: string; + try { + const npmViewResult: { [propertyName: string]: any } = JSON.parse( + execSync(`npm view ${packageName} --json`, { stdio: ['pipe', 'pipe', 'ignore'] }).toString() + ); + npmPackageVersion = npmViewResult['dist-tags']['latest']; + } + catch (error) { + // This happens if the package doesn't exist in NPM. } - else { - let npmPackageVersion: string | undefined; - try { - const npmViewResult: { [propertyName: string]: any } = JSON.parse( - execSync(`npm view ${packageName} --json`, { stdio: ['pipe', 'pipe', 'ignore'] }).toString() - ); - npmPackageVersion = npmViewResult['dist-tags']['latest']; - } - catch (error) { - // This happens if the package doesn't exist in NPM. - } - if (localPackageVersion === npmPackageVersion) { - upToDatePackages++; - } - else { - _logger.log(`Packing package "${packageName}" with version "${localPackageVersion}"...${args.whatif ? " (SKIPPED)" : ""}`); - if (!args.whatif) { - try { - npmInstall(packageFolderPath); - // TODO: `npm install` should be removed after we regenerate all packages. - execSync("npm install", { cwd: packageFolderPath }); - execSync(`npm ${type}`, { cwd: packageFolderPath }); - const packFileName = `${packageName.replace("/", "-").replace("@", "")}-${localPackageVersion}.tgz` - const packFilePath = path.join(packageFolderPath, packFileName); - fs.renameSync(packFilePath, path.join(packPath, packFileName)); - console.log(`Filename: ${packFileName}`); - publishedPackages++; - } - catch (error) { - errorPackages++; - } - } else { - publishedPackagesSkipped++; + if (localPackageVersion === npmPackageVersion) { + upToDatePackages++; + } + else { + _logger.log(`Packing package "${packageName}" with version "${localPackageVersion}"...${args.whatif ? " (SKIPPED)" : ""}`); + if (!args.whatif) { + try { + npmInstall(packageFolderPath); + // TODO: `npm install` should be removed after we regenerate all packages. + execSync("npm install", { cwd: packageFolderPath }); + execSync(`npm ${type}`, { cwd: packageFolderPath }); + const packFileName = `${packageName.replace("/", "-").replace("@", "")}-${localPackageVersion}.tgz` + const packFilePath = path.join(packageFolderPath, packFileName); + fs.renameSync(packFilePath, path.join(packPath, packFileName)); + console.log(`Filename: ${packFileName}`); + publishedPackages++; + } + catch (error) { + errorPackages++; } + } else { + publishedPackagesSkipped++; } } } @@ -293,15 +292,10 @@ gulp.task("regenerate", async () => { }).usage("Example: gulp regenerate --branch 'restapi_auto_daschult/sql'").argv; try { - const pullRequestUrl: string | undefined = argv["pull-request"]; - - let pullRequestData: { packageName: string | undefined; branchName: string; prId: number; } | undefined; + const pullRequestUrl = argv["pull-request"]; + let pullRequestData; if (pullRequestUrl) { - pullRequestData = await getDataFromPullRequest(pullRequestUrl); - } - - if (!pullRequestData) { - throw new Error(`Could not get pull request data for pull request "${pullRequestUrl}".`); + pullRequestData = await getDataFromPullRequest(argv["pull-request"]); } const branchName = argv.branch || pullRequestData.branchName; diff --git a/package.json b/package.json index 40a37e6e742e..879b24a20e53 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,6 @@ }, "devDependencies": { "@octokit/rest": "^15.13.0", - "@types/glob": "^7.1.1", - "@types/gulp": "^4.0.5", "@types/js-yaml": "^3.11.2", "@types/minimist": "^1.2.0", "@types/node": "^10.11.4", diff --git a/packages/@azure/arm-appservice/.npmignore b/packages/@azure/arm-appservice/.npmignore new file mode 100644 index 000000000000..3b46bc6202d8 --- /dev/null +++ b/packages/@azure/arm-appservice/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-cosmosdb/.npmignore b/packages/@azure/arm-cosmosdb/.npmignore new file mode 100644 index 000000000000..3b46bc6202d8 --- /dev/null +++ b/packages/@azure/arm-cosmosdb/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-cosmosdb/LICENSE.txt b/packages/@azure/arm-cosmosdb/LICENSE.txt index 5431ba98b936..a70e8cf66038 100644 --- a/packages/@azure/arm-cosmosdb/LICENSE.txt +++ b/packages/@azure/arm-cosmosdb/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-cosmosdb/README.md b/packages/@azure/arm-cosmosdb/README.md index f62862c2c657..4eb339a4e3f7 100644 --- a/packages/@azure/arm-cosmosdb/README.md +++ b/packages/@azure/arm-cosmosdb/README.md @@ -1,81 +1,81 @@ -# Azure CosmosDBManagementClient SDK for JavaScript -This package contains an isomorphic SDK for CosmosDBManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-cosmosdb -``` - - -## How to use - -### nodejs - Authentication, client creation and get databaseAccounts as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { CosmosDBManagementClient, CosmosDBManagementModels, CosmosDBManagementMappers } from "@azure/arm-cosmosdb"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new CosmosDBManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const accountName = "testaccountName"; - client.databaseAccounts.get(resourceGroupName, accountName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and get databaseAccounts as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-cosmosdb sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure CosmosDBManagementClient SDK for JavaScript +This package contains an isomorphic SDK for CosmosDBManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-cosmosdb +``` + + +## How to use + +### nodejs - Authentication, client creation and get databaseAccounts as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { CosmosDBManagementClient, CosmosDBManagementModels, CosmosDBManagementMappers } from "@azure/arm-cosmosdb"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new CosmosDBManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const accountName = "testaccountName"; + client.databaseAccounts.get(resourceGroupName, accountName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and get databaseAccounts as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-cosmosdb sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-cosmosdb/lib/cosmosDBManagementClientContext.ts b/packages/@azure/arm-cosmosdb/lib/cosmosDBManagementClientContext.ts index 8d2bd6bf53b6..a35db2ec8921 100644 --- a/packages/@azure/arm-cosmosdb/lib/cosmosDBManagementClientContext.ts +++ b/packages/@azure/arm-cosmosdb/lib/cosmosDBManagementClientContext.ts @@ -16,9 +16,16 @@ const packageName = "@azure/arm-cosmosdb"; const packageVersion = "1.0.0"; export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; - apiVersion?: string; + + apiVersion: string; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; /** * Initializes a new instance of the CosmosDBManagementClient class. diff --git a/packages/@azure/arm-cosmosdb/lib/models/index.ts b/packages/@azure/arm-cosmosdb/lib/models/index.ts index 94bcc01dded9..de40e60f6654 100644 --- a/packages/@azure/arm-cosmosdb/lib/models/index.ts +++ b/packages/@azure/arm-cosmosdb/lib/models/index.ts @@ -142,11 +142,6 @@ export interface VirtualNetworkRule { * /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. */ id?: string; - /** - * @member {boolean} [ignoreMissingVNetServiceEndpoint] Create firewall rule - * before the virtual network has vnet service endpoint enabled. - */ - ignoreMissingVNetServiceEndpoint?: boolean; } /** diff --git a/packages/@azure/arm-cosmosdb/lib/models/mappers.ts b/packages/@azure/arm-cosmosdb/lib/models/mappers.ts index b1fa92fd418b..d5a81393dbf6 100644 --- a/packages/@azure/arm-cosmosdb/lib/models/mappers.ts +++ b/packages/@azure/arm-cosmosdb/lib/models/mappers.ts @@ -162,12 +162,6 @@ export const VirtualNetworkRule: msRest.CompositeMapper = { type: { name: "String" } - }, - ignoreMissingVNetServiceEndpoint: { - serializedName: "ignoreMissingVNetServiceEndpoint", - type: { - name: "Boolean" - } } } } diff --git a/packages/@azure/arm-cosmosdb/package.json b/packages/@azure/arm-cosmosdb/package.json index f0f88273d508..80b03610273f 100644 --- a/packages/@azure/arm-cosmosdb/package.json +++ b/packages/@azure/arm-cosmosdb/package.json @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-cosmosdb.js.map'\" -o ./dist/arm-cosmosdb.min.js ./dist/arm-cosmosdb.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-devtestlabs/LICENSE.txt b/packages/@azure/arm-devtestlabs/LICENSE.txt index 5431ba98b936..a70e8cf66038 100644 --- a/packages/@azure/arm-devtestlabs/LICENSE.txt +++ b/packages/@azure/arm-devtestlabs/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-devtestlabs/README.md b/packages/@azure/arm-devtestlabs/README.md index 403d1d8e0f2a..d35500d9c12d 100644 --- a/packages/@azure/arm-devtestlabs/README.md +++ b/packages/@azure/arm-devtestlabs/README.md @@ -1,77 +1,77 @@ -# Azure DevTestLabsClient SDK for JavaScript -This package contains an isomorphic SDK for DevTestLabsClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-devtestlabs -``` - - -## How to use - -### nodejs - Authentication, client creation and list providerOperations as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { DevTestLabsClient, DevTestLabsModels, DevTestLabsMappers } from "@azure/arm-devtestlabs"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new DevTestLabsClient(creds, subscriptionId); - client.providerOperations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list providerOperations as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-devtestlabs sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure DevTestLabsClient SDK for JavaScript +This package contains an isomorphic SDK for DevTestLabsClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-devtestlabs +``` + + +## How to use + +### nodejs - Authentication, client creation and list providerOperations as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { DevTestLabsClient, DevTestLabsModels, DevTestLabsMappers } from "@azure/arm-devtestlabs"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DevTestLabsClient(creds, subscriptionId); + client.providerOperations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list providerOperations as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-devtestlabs sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-devtestlabs/lib/devTestLabsClient.ts b/packages/@azure/arm-devtestlabs/lib/devTestLabsClient.ts index faa5adc60bce..54a08374ac25 100644 --- a/packages/@azure/arm-devtestlabs/lib/devTestLabsClient.ts +++ b/packages/@azure/arm-devtestlabs/lib/devTestLabsClient.ts @@ -37,8 +37,6 @@ class DevTestLabsClient extends DevTestLabsClientContext { disks: operations.Disks; environments: operations.Environments; secrets: operations.Secrets; - serviceFabrics: operations.ServiceFabrics; - serviceFabricSchedules: operations.ServiceFabricSchedules; virtualMachines: operations.VirtualMachines; virtualMachineSchedules: operations.VirtualMachineSchedules; virtualNetworks: operations.VirtualNetworks; @@ -71,8 +69,6 @@ class DevTestLabsClient extends DevTestLabsClientContext { this.disks = new operations.Disks(this); this.environments = new operations.Environments(this); this.secrets = new operations.Secrets(this); - this.serviceFabrics = new operations.ServiceFabrics(this); - this.serviceFabricSchedules = new operations.ServiceFabricSchedules(this); this.virtualMachines = new operations.VirtualMachines(this); this.virtualMachineSchedules = new operations.VirtualMachineSchedules(this); this.virtualNetworks = new operations.VirtualNetworks(this); diff --git a/packages/@azure/arm-devtestlabs/lib/devTestLabsClientContext.ts b/packages/@azure/arm-devtestlabs/lib/devTestLabsClientContext.ts index b0c21d0d4507..b5903594421f 100644 --- a/packages/@azure/arm-devtestlabs/lib/devTestLabsClientContext.ts +++ b/packages/@azure/arm-devtestlabs/lib/devTestLabsClientContext.ts @@ -16,10 +16,17 @@ const packageName = "@azure/arm-devtestlabs"; const packageVersion = "1.0.0"; export class DevTestLabsClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; - apiVersion?: string; + + apiVersion: string; + subscriptionId: string; + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + /** * Initializes a new instance of the DevTestLabsClient class. * @param credentials Credentials needed for the client to connect to Azure. @@ -39,7 +46,7 @@ export class DevTestLabsClientContext extends msRestAzure.AzureServiceClient { } super(credentials, options); - this.apiVersion = '2018-09-15'; + this.apiVersion = '2016-05-15'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/armTemplatesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/armTemplatesMappers.ts index 91425d55d31b..0acdac0d7345 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/armTemplatesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/armTemplatesMappers.ts @@ -9,7 +9,7 @@ */ export { - ArmTemplateList, + ResponseWithContinuationArmTemplate, ArmTemplate, Resource, BaseResource, @@ -21,15 +21,20 @@ export { HourDetails, NotificationSettings, ApplicableSchedule, + ScheduleFragment, + WeekDetailsFragment, + DayDetailsFragment, + HourDetailsFragment, + NotificationSettingsFragment, + ApplicableScheduleFragment, Artifact, ArtifactSource, + ArtifactSourceFragment, CustomImage, CustomImagePropertiesFromVm, WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, Disk, DtlEnvironment, EnvironmentDeploymentProperties, @@ -41,17 +46,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -59,25 +62,45 @@ export { LabCostSummaryProperties, LabCostDetailsProperties, LabResourceCostProperties, + LabFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, + LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, + NotificationChannelFragment, + EventFragment, Policy, + PolicyFragment, Secret, - ServiceFabric, ServiceRunner, IdentityProperties, User, UserIdentity, UserSecretStore, + UserFragment, + UserIdentityFragment, + UserSecretStoreFragment, VirtualNetwork, Subnet, ExternalSubnet, SubnetOverride, SubnetSharedPublicIpAddressConfiguration, - Port + Port, + VirtualNetworkFragment, + SubnetFragment, + ExternalSubnetFragment, + SubnetOverrideFragment, + SubnetSharedPublicIpAddressConfigurationFragment, + PortFragment } from "../models/mappers"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/artifactSourcesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/artifactSourcesMappers.ts index e884eb08617b..b65dfb333d89 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/artifactSourcesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/artifactSourcesMappers.ts @@ -9,13 +9,12 @@ */ export { - ArtifactSourceList, + ResponseWithContinuationArtifactSource, ArtifactSource, Resource, BaseResource, CloudError, ArtifactSourceFragment, - UpdateResource, Schedule, WeekDetails, DayDetails, @@ -36,23 +35,10 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -60,31 +46,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -93,13 +63,18 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -107,9 +82,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -126,6 +98,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/artifactsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/artifactsMappers.ts index cff99460cf7f..380355d9e641 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/artifactsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/artifactsMappers.ts @@ -9,7 +9,7 @@ */ export { - ArtifactList, + ResponseWithContinuationArtifact, Artifact, Resource, BaseResource, @@ -23,16 +23,21 @@ export { HourDetails, NotificationSettings, ApplicableSchedule, + ScheduleFragment, + WeekDetailsFragment, + DayDetailsFragment, + HourDetailsFragment, + NotificationSettingsFragment, + ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, ArtifactSource, + ArtifactSourceFragment, CustomImage, CustomImagePropertiesFromVm, WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, Disk, DtlEnvironment, EnvironmentDeploymentProperties, @@ -44,17 +49,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -62,25 +65,45 @@ export { LabCostSummaryProperties, LabCostDetailsProperties, LabResourceCostProperties, + LabFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, + LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, + NotificationChannelFragment, + EventFragment, Policy, + PolicyFragment, Secret, - ServiceFabric, ServiceRunner, IdentityProperties, User, UserIdentity, UserSecretStore, + UserFragment, + UserIdentityFragment, + UserSecretStoreFragment, VirtualNetwork, Subnet, ExternalSubnet, SubnetOverride, SubnetSharedPublicIpAddressConfiguration, - Port + Port, + VirtualNetworkFragment, + SubnetFragment, + ExternalSubnetFragment, + SubnetOverrideFragment, + SubnetSharedPublicIpAddressConfigurationFragment, + PortFragment } from "../models/mappers"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/costsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/costsMappers.ts index d4cf682570fb..65cb41e69c2e 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/costsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/costsMappers.ts @@ -25,17 +25,22 @@ export { HourDetails, NotificationSettings, ApplicableSchedule, + ScheduleFragment, + WeekDetailsFragment, + DayDetailsFragment, + HourDetailsFragment, + NotificationSettingsFragment, + ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, Artifact, ArtifactSource, + ArtifactSourceFragment, CustomImage, CustomImagePropertiesFromVm, WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, Disk, DtlEnvironment, EnvironmentDeploymentProperties, @@ -47,36 +52,54 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, + LabFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, + LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, + NotificationChannelFragment, + EventFragment, Policy, + PolicyFragment, Secret, - ServiceFabric, ServiceRunner, IdentityProperties, User, UserIdentity, UserSecretStore, + UserFragment, + UserIdentityFragment, + UserSecretStoreFragment, VirtualNetwork, Subnet, ExternalSubnet, SubnetOverride, SubnetSharedPublicIpAddressConfiguration, - Port + Port, + VirtualNetworkFragment, + SubnetFragment, + ExternalSubnetFragment, + SubnetOverrideFragment, + SubnetSharedPublicIpAddressConfigurationFragment, + PortFragment } from "../models/mappers"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/customImagesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/customImagesMappers.ts index c7f6b26524d8..7961f628a92b 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/customImagesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/customImagesMappers.ts @@ -9,7 +9,7 @@ */ export { - CustomImageList, + ResponseWithContinuationCustomImage, CustomImage, Resource, BaseResource, @@ -17,17 +17,7 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, CloudError, - CustomImageFragment, - UpdateResource, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Schedule, WeekDetails, DayDetails, @@ -46,13 +36,9 @@ export { ArtifactSource, ArtifactSourceFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -60,31 +46,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -93,13 +63,18 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -107,9 +82,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -126,6 +98,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/disksMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/disksMappers.ts index 402cfdcf0ca9..72dfc8164430 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/disksMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/disksMappers.ts @@ -9,13 +9,11 @@ */ export { - DiskList, + ResponseWithContinuationDisk, Disk, Resource, BaseResource, CloudError, - DiskFragment, - UpdateResource, AttachDiskProperties, DetachDiskProperties, Schedule, @@ -40,21 +38,9 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -62,31 +48,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -95,13 +65,18 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -109,9 +84,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -128,6 +100,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/environmentsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/environmentsMappers.ts index 40b565441255..2cb7a2af81d2 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/environmentsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/environmentsMappers.ts @@ -9,17 +9,13 @@ */ export { - DtlEnvironmentList, + ResponseWithContinuationDtlEnvironment, DtlEnvironment, Resource, BaseResource, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, CloudError, - DtlEnvironmentFragment, - UpdateResource, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Schedule, WeekDetails, DayDetails, @@ -42,17 +38,7 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -60,31 +46,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -93,13 +63,18 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -107,9 +82,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -126,6 +98,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/formulasMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/formulasMappers.ts index b52a9e3e01a0..3dce22911286 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/formulasMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/formulasMappers.ts @@ -9,7 +9,7 @@ */ export { - FormulaList, + ResponseWithContinuationFormula, Formula, Resource, BaseResource, @@ -19,40 +19,25 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, + ApplicableSchedule, + Schedule, WeekDetails, DayDetails, HourDetails, NotificationSettings, FormulaPropertiesFromVm, CloudError, - FormulaFragment, - UpdateResource, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, + ScheduleFragment, WeekDetailsFragment, DayDetailsFragment, HourDetailsFragment, NotificationSettingsFragment, - FormulaPropertiesFromVmFragment, - Schedule, - ApplicableSchedule, - ScheduleFragment, ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, @@ -64,27 +49,12 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -93,13 +63,18 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -107,9 +82,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -126,6 +98,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/galleryImagesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/galleryImagesMappers.ts index def381265b6f..9d41c1bec00b 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/galleryImagesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/galleryImagesMappers.ts @@ -9,7 +9,7 @@ */ export { - GalleryImageList, + ResponseWithContinuationGalleryImage, GalleryImage, Resource, BaseResource, @@ -21,17 +21,22 @@ export { HourDetails, NotificationSettings, ApplicableSchedule, + ScheduleFragment, + WeekDetailsFragment, + DayDetailsFragment, + HourDetailsFragment, + NotificationSettingsFragment, + ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, Artifact, ArtifactSource, + ArtifactSourceFragment, CustomImage, CustomImagePropertiesFromVm, WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, Disk, DtlEnvironment, EnvironmentDeploymentProperties, @@ -42,16 +47,14 @@ export { ArtifactInstallProperties, ArtifactParameterProperties, ArtifactDeploymentStatusProperties, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -59,25 +62,45 @@ export { LabCostSummaryProperties, LabCostDetailsProperties, LabResourceCostProperties, + LabFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, + LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, + NotificationChannelFragment, + EventFragment, Policy, + PolicyFragment, Secret, - ServiceFabric, ServiceRunner, IdentityProperties, User, UserIdentity, UserSecretStore, + UserFragment, + UserIdentityFragment, + UserSecretStoreFragment, VirtualNetwork, Subnet, ExternalSubnet, SubnetOverride, SubnetSharedPublicIpAddressConfiguration, - Port + Port, + VirtualNetworkFragment, + SubnetFragment, + ExternalSubnetFragment, + SubnetOverrideFragment, + SubnetSharedPublicIpAddressConfigurationFragment, + PortFragment } from "../models/mappers"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/globalSchedulesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/globalSchedulesMappers.ts index 339a8e8f3e63..31ac6e75b4ab 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/globalSchedulesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/globalSchedulesMappers.ts @@ -9,7 +9,7 @@ */ export { - ScheduleList, + ResponseWithContinuationSchedule, Schedule, Resource, BaseResource, @@ -19,7 +19,6 @@ export { NotificationSettings, CloudError, ScheduleFragment, - UpdateResource, WeekDetailsFragment, DayDetailsFragment, HourDetailsFragment, @@ -37,23 +36,10 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -61,31 +47,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -94,13 +64,18 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -108,9 +83,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -127,6 +99,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/index.ts b/packages/@azure/arm-devtestlabs/lib/models/index.ts index dc06546081d4..64289ad66f57 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/index.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/index.ts @@ -66,11 +66,11 @@ export interface HourDetails { */ export interface NotificationSettings { /** - * @member {EnableStatus} [status] If notifications are enabled for this - * schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', - * 'Disabled' + * @member {NotificationStatus} [status] If notifications are enabled for + * this schedule (i.e. Enabled, Disabled). Possible values include: + * 'Disabled', 'Enabled' */ - status?: EnableStatus; + status?: NotificationStatus; /** * @member {number} [timeInMinutes] Time in minutes before event at which * notification will be sent. @@ -81,16 +81,6 @@ export interface NotificationSettings { * will be sent. */ webhookUrl?: string; - /** - * @member {string} [emailRecipient] The email recipient to send - * notifications to (can be a list of semi-colon seperated email addresses). - */ - emailRecipient?: string; - /** - * @member {string} [notificationLocale] The locale to use when sending a - * notification (fallback for unsupported languages is EN). - */ - notificationLocale?: string; } /** @@ -187,17 +177,13 @@ export interface Schedule extends Resource { /** * @member {string} [provisioningState] The provisioning status of the * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly provisioningState?: string; + provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly uniqueIdentifier?: string; + uniqueIdentifier?: string; } /** @@ -273,11 +259,11 @@ export interface HourDetailsFragment { */ export interface NotificationSettingsFragment { /** - * @member {EnableStatus} [status] If notifications are enabled for this - * schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', - * 'Disabled' + * @member {NotificationStatus} [status] If notifications are enabled for + * this schedule (i.e. Enabled, Disabled). Possible values include: + * 'Disabled', 'Enabled' */ - status?: EnableStatus; + status?: NotificationStatus; /** * @member {number} [timeInMinutes] Time in minutes before event at which * notification will be sent. @@ -288,30 +274,6 @@ export interface NotificationSettingsFragment { * will be sent. */ webhookUrl?: string; - /** - * @member {string} [emailRecipient] The email recipient to send - * notifications to (can be a list of semi-colon seperated email addresses). - */ - emailRecipient?: string; - /** - * @member {string} [notificationLocale] The locale to use when sending a - * notification (fallback for unsupported languages is EN). - */ - notificationLocale?: string; -} - -/** - * @interface - * An interface representing UpdateResource. - * Represents an update resource - * - */ -export interface UpdateResource { - /** - * @member {{ [propertyName: string]: string }} [tags] The tags of the - * resource. - */ - tags?: { [propertyName: string]: string }; } /** @@ -319,9 +281,9 @@ export interface UpdateResource { * An interface representing ScheduleFragment. * A schedule. * - * @extends UpdateResource + * @extends Resource */ -export interface ScheduleFragment extends UpdateResource { +export interface ScheduleFragment extends Resource { /** * @member {EnableStatus} [status] The status of the schedule (i.e. Enabled, * Disabled). Possible values include: 'Enabled', 'Disabled' @@ -362,6 +324,16 @@ export interface ScheduleFragment extends UpdateResource { * belongs */ targetResourceId?: string; + /** + * @member {string} [provisioningState] The provisioning status of the + * resource. + */ + provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + */ + uniqueIdentifier?: string; } /** @@ -370,9 +342,9 @@ export interface ScheduleFragment extends UpdateResource { * Schedules applicable to a virtual machine. The schedules may have been * defined on a VM or on lab level. * - * @extends UpdateResource + * @extends Resource */ -export interface ApplicableScheduleFragment extends UpdateResource { +export interface ApplicableScheduleFragment extends Resource { /** * @member {ScheduleFragment} [labVmsShutdown] The auto-shutdown schedule, if * one has been set at the lab or lab resource level. @@ -413,10 +385,6 @@ export interface ArtifactInstallProperties { * @member {string} [artifactId] The artifact's identifier. */ artifactId?: string; - /** - * @member {string} [artifactTitle] The artifact's title. - */ - artifactTitle?: string; /** * @member {ArtifactParameterProperties[]} [parameters] The parameters of the * artifact. @@ -526,13 +494,6 @@ export interface ArmTemplate extends Resource { * the server.** */ readonly parametersValueFilesInfo?: ParametersValueFileInfo[]; - /** - * @member {boolean} [enabled] Whether or not ARM template is enabled for use - * by lab user. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly enabled?: boolean; } /** @@ -569,23 +530,6 @@ export interface ArmTemplateParameterProperties { value?: string; } -/** - * @interface - * An interface representing ArmTemplateParameterPropertiesFragment. - * Properties of an Azure Resource Manager template parameter. - * - */ -export interface ArmTemplateParameterPropertiesFragment { - /** - * @member {string} [name] The name of the template parameter. - */ - name?: string; - /** - * @member {string} [value] The value of the template parameter. - */ - value?: string; -} - /** * @interface * An interface representing Artifact. @@ -718,10 +662,6 @@ export interface ArtifactInstallPropertiesFragment { * @member {string} [artifactId] The artifact's identifier. */ artifactId?: string; - /** - * @member {string} [artifactTitle] The artifact's title. - */ - artifactTitle?: string; /** * @member {ArtifactParameterPropertiesFragment[]} [parameters] The * parameters of the artifact. @@ -802,17 +742,13 @@ export interface ArtifactSource extends Resource { /** * @member {string} [provisioningState] The provisioning status of the * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly provisioningState?: string; + provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly uniqueIdentifier?: string; + uniqueIdentifier?: string; } /** @@ -820,9 +756,9 @@ export interface ArtifactSource extends Resource { * An interface representing ArtifactSourceFragment. * Properties of an artifact source. * - * @extends UpdateResource + * @extends Resource */ -export interface ArtifactSourceFragment extends UpdateResource { +export interface ArtifactSourceFragment extends Resource { /** * @member {string} [displayName] The artifact source's display name. */ @@ -860,6 +796,16 @@ export interface ArtifactSourceFragment extends UpdateResource { * 'Disabled' */ status?: EnableStatus; + /** + * @member {string} [provisioningState] The provisioning status of the + * resource. + */ + provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + */ + uniqueIdentifier?: string; } /** @@ -899,29 +845,6 @@ export interface AttachNewDataDiskOptions { diskType?: StorageType; } -/** - * @interface - * An interface representing AttachNewDataDiskOptionsFragment. - * Properties to attach new disk to the Virtual Machine. - * - */ -export interface AttachNewDataDiskOptionsFragment { - /** - * @member {number} [diskSizeGiB] Size of the disk to be attached in - * GibiBytes. - */ - diskSizeGiB?: number; - /** - * @member {string} [diskName] The name of the disk to be attached. - */ - diskName?: string; - /** - * @member {StorageType} [diskType] The storage type for the disk (i.e. - * Standard, Premium). Possible values include: 'Standard', 'Premium' - */ - diskType?: StorageType; -} - /** * @interface * An interface representing BulkCreationParameters. @@ -936,20 +859,6 @@ export interface BulkCreationParameters { instanceCount?: number; } -/** - * @interface - * An interface representing BulkCreationParametersFragment. - * Parameters for creating multiple virtual machines as a single action. - * - */ -export interface BulkCreationParametersFragment { - /** - * @member {number} [instanceCount] The number of virtual machine instances - * to create. - */ - instanceCount?: number; -} - /** * @interface * An interface representing ComputeDataDisk. @@ -1254,47 +1163,6 @@ export interface CustomImagePropertiesCustom { osType: CustomImageOsType; } -/** - * @interface - * An interface representing DataDiskStorageTypeInfo. - * Storage information about the data disks present in the custom image - * - */ -export interface DataDiskStorageTypeInfo { - /** - * @member {string} [lun] Disk Lun - */ - lun?: string; - /** - * @member {StorageType} [storageType] Disk Storage Type. Possible values - * include: 'Standard', 'Premium' - */ - storageType?: StorageType; -} - -/** - * @interface - * An interface representing CustomImagePropertiesFromPlan. - * Properties for plan on a custom image. - * - */ -export interface CustomImagePropertiesFromPlan { - /** - * @member {string} [id] The id of the plan, equivalent to name of the plan - */ - id?: string; - /** - * @member {string} [publisher] The publisher for the plan from the - * marketplace image the custom image is derived from - */ - publisher?: string; - /** - * @member {string} [offer] The offer for the plan from the marketplace image - * the custom image is derived from - */ - offer?: string; -} - /** * @interface * An interface representing CustomImage. @@ -1332,409 +1200,141 @@ export interface CustomImage extends Resource { * image. */ managedImageId?: string; - /** - * @member {string} [managedSnapshotId] The Managed Snapshot Id backing the - * custom image. - */ - managedSnapshotId?: string; - /** - * @member {DataDiskStorageTypeInfo[]} [dataDiskStorageInfo] Storage - * information about the data disks present in the custom image - */ - dataDiskStorageInfo?: DataDiskStorageTypeInfo[]; - /** - * @member {CustomImagePropertiesFromPlan} [customImagePlan] Storage - * information about the plan related to this custom image - */ - customImagePlan?: CustomImagePropertiesFromPlan; - /** - * @member {boolean} [isPlanAuthorized] Whether or not the custom images - * underlying offer/plan has been enabled for programmatic deployment - */ - isPlanAuthorized?: boolean; /** * @member {string} [provisioningState] The provisioning status of the * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly provisioningState?: string; + provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly uniqueIdentifier?: string; + uniqueIdentifier?: string; } /** * @interface - * An interface representing WindowsOsInfoFragment. - * Information about a Windows OS. + * An interface representing DataDiskProperties. + * Request body for adding a new or existing data disk to a virtual machine. * */ -export interface WindowsOsInfoFragment { +export interface DataDiskProperties { /** - * @member {WindowsOsState} [windowsOsState] The state of the Windows OS - * (i.e. NonSysprepped, SysprepRequested, SysprepApplied). Possible values - * include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' + * @member {AttachNewDataDiskOptions} [attachNewDataDiskOptions] Specifies + * options to attach a new disk to the virtual machine. */ - windowsOsState?: WindowsOsState; + attachNewDataDiskOptions?: AttachNewDataDiskOptions; + /** + * @member {string} [existingLabDiskId] Specifies the existing lab disk id to + * attach to virtual machine. + */ + existingLabDiskId?: string; + /** + * @member {HostCachingOptions} [hostCaching] Caching option for a data disk + * (i.e. None, ReadOnly, ReadWrite). Possible values include: 'None', + * 'ReadOnly', 'ReadWrite' + */ + hostCaching?: HostCachingOptions; } /** * @interface - * An interface representing LinuxOsInfoFragment. - * Information about a Linux OS. + * An interface representing DetachDataDiskProperties. + * Request body for detaching data disk from a virtual machine. * */ -export interface LinuxOsInfoFragment { +export interface DetachDataDiskProperties { /** - * @member {LinuxOsState} [linuxOsState] The state of the Linux OS (i.e. - * NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). Possible - * values include: 'NonDeprovisioned', 'DeprovisionRequested', - * 'DeprovisionApplied' + * @member {string} [existingLabDiskId] Specifies the disk resource ID to + * detach from virtual machine. */ - linuxOsState?: LinuxOsState; + existingLabDiskId?: string; } /** * @interface - * An interface representing CustomImagePropertiesFromVmFragment. - * Properties for creating a custom image from a virtual machine. + * An interface representing DetachDiskProperties. + * Properties of the disk to detach. * */ -export interface CustomImagePropertiesFromVmFragment { - /** - * @member {string} [sourceVmId] The source vm identifier. - */ - sourceVmId?: string; - /** - * @member {WindowsOsInfoFragment} [windowsOsInfo] The Windows OS information - * of the VM. - */ - windowsOsInfo?: WindowsOsInfoFragment; +export interface DetachDiskProperties { /** - * @member {LinuxOsInfoFragment} [linuxOsInfo] The Linux OS information of - * the VM. + * @member {string} [leasedByLabVmId] The resource ID of the Lab VM to which + * the disk is attached. */ - linuxOsInfo?: LinuxOsInfoFragment; + leasedByLabVmId?: string; } /** * @interface - * An interface representing CustomImagePropertiesCustomFragment. - * Properties for creating a custom image from a VHD. + * An interface representing Disk. + * A Disk. * + * @extends Resource */ -export interface CustomImagePropertiesCustomFragment { +export interface Disk extends Resource { /** - * @member {string} [imageName] The image name. + * @member {StorageType} [diskType] The storage type for the disk (i.e. + * Standard, Premium). Possible values include: 'Standard', 'Premium' */ - imageName?: string; + diskType?: StorageType; /** - * @member {boolean} [sysPrep] Indicates whether sysprep has been run on the - * VHD. + * @member {number} [diskSizeGiB] The size of the disk in GibiBytes. */ - sysPrep?: boolean; + diskSizeGiB?: number; /** - * @member {CustomImageOsType} [osType] The OS type of the custom image (i.e. - * Windows, Linux). Possible values include: 'Windows', 'Linux', 'None' + * @member {string} [leasedByLabVmId] The resource ID of the VM to which this + * disk is leased. */ - osType?: CustomImageOsType; -} - -/** - * @interface - * An interface representing DataDiskStorageTypeInfoFragment. - * Storage information about the data disks present in the custom image - * - */ -export interface DataDiskStorageTypeInfoFragment { + leasedByLabVmId?: string; /** - * @member {string} [lun] Disk Lun + * @member {string} [diskBlobName] When backed by a blob, the name of the VHD + * blob without extension. */ - lun?: string; + diskBlobName?: string; /** - * @member {StorageType} [storageType] Disk Storage Type. Possible values - * include: 'Standard', 'Premium' + * @member {string} [diskUri] When backed by a blob, the URI of underlying + * blob. */ - storageType?: StorageType; -} - -/** - * @interface - * An interface representing CustomImagePropertiesFromPlanFragment. - * Properties for plan on a custom image. - * - */ -export interface CustomImagePropertiesFromPlanFragment { + diskUri?: string; /** - * @member {string} [id] The id of the plan, equivalent to name of the plan + * @member {Date} [createdDate] The creation date of the disk. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - id?: string; + readonly createdDate?: Date; /** - * @member {string} [publisher] The publisher for the plan from the - * marketplace image the custom image is derived from + * @member {string} [hostCaching] The host caching policy of the disk (i.e. + * None, ReadOnly, ReadWrite). */ - publisher?: string; + hostCaching?: string; + /** + * @member {string} [managedDiskId] When backed by managed disk, this is the + * ID of the compute disk resource. + */ + managedDiskId?: string; /** - * @member {string} [offer] The offer for the plan from the marketplace image - * the custom image is derived from + * @member {string} [provisioningState] The provisioning status of the + * resource. */ - offer?: string; + provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + */ + uniqueIdentifier?: string; } /** * @interface - * An interface representing CustomImageFragment. - * A custom image. + * An interface representing EnvironmentDeploymentProperties. + * Properties of an environment deployment. * - * @extends UpdateResource */ -export interface CustomImageFragment extends UpdateResource { +export interface EnvironmentDeploymentProperties { /** - * @member {CustomImagePropertiesFromVmFragment} [vm] The virtual machine - * from which the image is to be created. - */ - vm?: CustomImagePropertiesFromVmFragment; - /** - * @member {CustomImagePropertiesCustomFragment} [vhd] The VHD from which the - * image is to be created. - */ - vhd?: CustomImagePropertiesCustomFragment; - /** - * @member {string} [description] The description of the custom image. - */ - description?: string; - /** - * @member {string} [author] The author of the custom image. - */ - author?: string; - /** - * @member {string} [managedImageId] The Managed Image Id backing the custom - * image. - */ - managedImageId?: string; - /** - * @member {string} [managedSnapshotId] The Managed Snapshot Id backing the - * custom image. - */ - managedSnapshotId?: string; - /** - * @member {DataDiskStorageTypeInfoFragment[]} [dataDiskStorageInfo] Storage - * information about the data disks present in the custom image - */ - dataDiskStorageInfo?: DataDiskStorageTypeInfoFragment[]; - /** - * @member {CustomImagePropertiesFromPlanFragment} [customImagePlan] Storage - * information about the plan related to this custom image - */ - customImagePlan?: CustomImagePropertiesFromPlanFragment; - /** - * @member {boolean} [isPlanAuthorized] Whether or not the custom images - * underlying offer/plan has been enabled for programmatic deployment - */ - isPlanAuthorized?: boolean; -} - -/** - * @interface - * An interface representing DataDiskProperties. - * Request body for adding a new or existing data disk to a virtual machine. - * - */ -export interface DataDiskProperties { - /** - * @member {AttachNewDataDiskOptions} [attachNewDataDiskOptions] Specifies - * options to attach a new disk to the virtual machine. - */ - attachNewDataDiskOptions?: AttachNewDataDiskOptions; - /** - * @member {string} [existingLabDiskId] Specifies the existing lab disk id to - * attach to virtual machine. - */ - existingLabDiskId?: string; - /** - * @member {HostCachingOptions} [hostCaching] Caching option for a data disk - * (i.e. None, ReadOnly, ReadWrite). Possible values include: 'None', - * 'ReadOnly', 'ReadWrite' - */ - hostCaching?: HostCachingOptions; -} - -/** - * @interface - * An interface representing DataDiskPropertiesFragment. - * Request body for adding a new or existing data disk to a virtual machine. - * - */ -export interface DataDiskPropertiesFragment { - /** - * @member {AttachNewDataDiskOptionsFragment} [attachNewDataDiskOptions] - * Specifies options to attach a new disk to the virtual machine. - */ - attachNewDataDiskOptions?: AttachNewDataDiskOptionsFragment; - /** - * @member {string} [existingLabDiskId] Specifies the existing lab disk id to - * attach to virtual machine. - */ - existingLabDiskId?: string; - /** - * @member {HostCachingOptions} [hostCaching] Caching option for a data disk - * (i.e. None, ReadOnly, ReadWrite). Possible values include: 'None', - * 'ReadOnly', 'ReadWrite' - */ - hostCaching?: HostCachingOptions; -} - -/** - * @interface - * An interface representing DetachDataDiskProperties. - * Request body for detaching data disk from a virtual machine. - * - */ -export interface DetachDataDiskProperties { - /** - * @member {string} [existingLabDiskId] Specifies the disk resource ID to - * detach from virtual machine. - */ - existingLabDiskId?: string; -} - -/** - * @interface - * An interface representing DetachDiskProperties. - * Properties of the disk to detach. - * - */ -export interface DetachDiskProperties { - /** - * @member {string} [leasedByLabVmId] The resource ID of the Lab VM to which - * the disk is attached. - */ - leasedByLabVmId?: string; -} - -/** - * @interface - * An interface representing Disk. - * A Disk. - * - * @extends Resource - */ -export interface Disk extends Resource { - /** - * @member {StorageType} [diskType] The storage type for the disk (i.e. - * Standard, Premium). Possible values include: 'Standard', 'Premium' - */ - diskType?: StorageType; - /** - * @member {number} [diskSizeGiB] The size of the disk in GibiBytes. - */ - diskSizeGiB?: number; - /** - * @member {string} [leasedByLabVmId] The resource ID of the VM to which this - * disk is leased. - */ - leasedByLabVmId?: string; - /** - * @member {string} [diskBlobName] When backed by a blob, the name of the VHD - * blob without extension. - */ - diskBlobName?: string; - /** - * @member {string} [diskUri] When backed by a blob, the URI of underlying - * blob. - */ - diskUri?: string; - /** - * @member {Date} [createdDate] The creation date of the disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly createdDate?: Date; - /** - * @member {string} [hostCaching] The host caching policy of the disk (i.e. - * None, ReadOnly, ReadWrite). - */ - hostCaching?: string; - /** - * @member {string} [managedDiskId] When backed by managed disk, this is the - * ID of the compute disk resource. - */ - managedDiskId?: string; - /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; - /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly uniqueIdentifier?: string; -} - -/** - * @interface - * An interface representing DiskFragment. - * A Disk. - * - * @extends UpdateResource - */ -export interface DiskFragment extends UpdateResource { - /** - * @member {StorageType} [diskType] The storage type for the disk (i.e. - * Standard, Premium). Possible values include: 'Standard', 'Premium' - */ - diskType?: StorageType; - /** - * @member {number} [diskSizeGiB] The size of the disk in GibiBytes. - */ - diskSizeGiB?: number; - /** - * @member {string} [leasedByLabVmId] The resource ID of the VM to which this - * disk is leased. - */ - leasedByLabVmId?: string; - /** - * @member {string} [diskBlobName] When backed by a blob, the name of the VHD - * blob without extension. - */ - diskBlobName?: string; - /** - * @member {string} [diskUri] When backed by a blob, the URI of underlying - * blob. - */ - diskUri?: string; - /** - * @member {string} [hostCaching] The host caching policy of the disk (i.e. - * None, ReadOnly, ReadWrite). - */ - hostCaching?: string; - /** - * @member {string} [managedDiskId] When backed by managed disk, this is the - * ID of the compute disk resource. - */ - managedDiskId?: string; -} - -/** - * @interface - * An interface representing EnvironmentDeploymentProperties. - * Properties of an environment deployment. - * - */ -export interface EnvironmentDeploymentProperties { - /** - * @member {string} [armTemplateId] The Azure Resource Manager template's - * identifier. + * @member {string} [armTemplateId] The Azure Resource Manager template's + * identifier. */ armTemplateId?: string; /** @@ -1778,56 +1378,13 @@ export interface DtlEnvironment extends Resource { /** * @member {string} [provisioningState] The provisioning status of the * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly provisioningState?: string; + provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly uniqueIdentifier?: string; -} - -/** - * @interface - * An interface representing EnvironmentDeploymentPropertiesFragment. - * Properties of an environment deployment. - * - */ -export interface EnvironmentDeploymentPropertiesFragment { - /** - * @member {string} [armTemplateId] The Azure Resource Manager template's - * identifier. - */ - armTemplateId?: string; - /** - * @member {ArmTemplateParameterPropertiesFragment[]} [parameters] The - * parameters of the Azure Resource Manager template. - */ - parameters?: ArmTemplateParameterPropertiesFragment[]; -} - -/** - * @interface - * An interface representing DtlEnvironmentFragment. - * An environment, which is essentially an ARM template deployment. - * - * @extends UpdateResource - */ -export interface DtlEnvironmentFragment extends UpdateResource { - /** - * @member {EnvironmentDeploymentPropertiesFragment} [deploymentProperties] - * The deployment properties of the environment. - */ - deploymentProperties?: EnvironmentDeploymentPropertiesFragment; - /** - * @member {string} [armTemplateDisplayName] The display name of the Azure - * Resource Manager template that produced the environment. */ - armTemplateDisplayName?: string; + uniqueIdentifier?: string; } /** @@ -1849,11 +1406,6 @@ export interface EvaluatePoliciesProperties { * @member {string} [valueOffset] The value offset. */ valueOffset?: string; - /** - * @member {string} [userObjectId] The user for which policies will be - * evaluated - */ - userObjectId?: string; } /** @@ -2125,79 +1677,16 @@ export interface NetworkInterfaceProperties { /** * @interface - * An interface representing ScheduleCreationParameter. - * Properties for creating a schedule. + * An interface representing LabVirtualMachineCreationParameter. + * Properties for creating a virtual machine. * */ -export interface ScheduleCreationParameter { +export interface LabVirtualMachineCreationParameter { /** - * @member {EnableStatus} [status] The status of the schedule (i.e. Enabled, - * Disabled). Possible values include: 'Enabled', 'Disabled' + * @member {BulkCreationParameters} [bulkCreationParameters] The number of + * virtual machine instances to create. */ - status?: EnableStatus; - /** - * @member {string} [taskType] The task type of the schedule (e.g. - * LabVmsShutdownTask, LabVmAutoStart). - */ - taskType?: string; - /** - * @member {WeekDetails} [weeklyRecurrence] If the schedule will occur only - * some days of the week, specify the weekly recurrence. - */ - weeklyRecurrence?: WeekDetails; - /** - * @member {DayDetails} [dailyRecurrence] If the schedule will occur once - * each day of the week, specify the daily recurrence. - */ - dailyRecurrence?: DayDetails; - /** - * @member {HourDetails} [hourlyRecurrence] If the schedule will occur - * multiple times a day, specify the hourly recurrence. - */ - hourlyRecurrence?: HourDetails; - /** - * @member {string} [timeZoneId] The time zone ID (e.g. Pacific Standard - * time). - */ - timeZoneId?: string; - /** - * @member {NotificationSettings} [notificationSettings] Notification - * settings. - */ - notificationSettings?: NotificationSettings; - /** - * @member {string} [targetResourceId] The resource ID to which the schedule - * belongs - */ - targetResourceId?: string; - /** - * @member {string} [name] The name of the virtual machine or environment - */ - name?: string; - /** - * @member {string} [location] The location of the new virtual machine or - * environment - */ - location?: string; - /** - * @member {{ [propertyName: string]: string }} [tags] The tags of the - * resource. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * @interface - * An interface representing LabVirtualMachineCreationParameter. - * Properties for creating a virtual machine. - * - */ -export interface LabVirtualMachineCreationParameter { - /** - * @member {BulkCreationParameters} [bulkCreationParameters] The number of - * virtual machine instances to create. - */ - bulkCreationParameters?: BulkCreationParameters; + bulkCreationParameters?: BulkCreationParameters; /** * @member {string} [notes] The notes of the virtual machine. */ @@ -2226,11 +1715,6 @@ export interface LabVirtualMachineCreationParameter { * @member {Date} [createdDate] The creation date of the virtual machine. */ createdDate?: Date; - /** - * @member {string} [computeId] The resource identifier (Microsoft.Compute) - * of the virtual machine. - */ - computeId?: string; /** * @member {string} [customImageId] The custom image identifier of the * virtual machine. @@ -2299,15 +1783,20 @@ export interface LabVirtualMachineCreationParameter { */ galleryImageReference?: GalleryImageReference; /** - * @member {string} [planId] The id of the plan associated with the virtual - * machine image + * @member {ComputeVmProperties} [computeVm] The compute virtual machine + * properties. */ - planId?: string; + computeVm?: ComputeVmProperties; /** * @member {NetworkInterfaceProperties} [networkInterface] The network * interface properties. */ networkInterface?: NetworkInterfaceProperties; + /** + * @member {ApplicableSchedule} [applicableSchedule] The applicable schedule + * for the virtual machine. + */ + applicableSchedule?: ApplicableSchedule; /** * @member {Date} [expirationDate] The expiration date for VM. */ @@ -2334,20 +1823,15 @@ export interface LabVirtualMachineCreationParameter { */ environmentId?: string; /** - * @member {DataDiskProperties[]} [dataDiskParameters] New or existing data - * disks to attach to the virtual machine after creation - */ - dataDiskParameters?: DataDiskProperties[]; - /** - * @member {ScheduleCreationParameter[]} [scheduleParameters] Virtual Machine - * schedules to be created + * @member {string} [provisioningState] The provisioning status of the + * resource. */ - scheduleParameters?: ScheduleCreationParameter[]; + provisioningState?: string; /** - * @member {string} [lastKnownPowerState] Last known compute power state - * captured in DTL + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). */ - lastKnownPowerState?: string; + uniqueIdentifier?: string; /** * @member {string} [name] The name of the virtual machine or environment */ @@ -2417,17 +1901,51 @@ export interface Formula extends Resource { /** * @member {string} [provisioningState] The provisioning status of the * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly provisioningState?: string; + provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). + */ + uniqueIdentifier?: string; +} + +/** + * @interface + * An interface representing GalleryImage. + * A gallery image. + * + * @extends Resource + */ +export interface GalleryImage extends Resource { + /** + * @member {string} [author] The author of the gallery image. + */ + author?: string; + /** + * @member {Date} [createdDate] The creation date of the gallery image. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly uniqueIdentifier?: string; + readonly createdDate?: Date; + /** + * @member {string} [description] The description of the gallery image. + */ + description?: string; + /** + * @member {GalleryImageReference} [imageReference] The image reference of + * the gallery image. + */ + imageReference?: GalleryImageReference; + /** + * @member {string} [icon] The icon of the gallery image. + */ + icon?: string; + /** + * @member {boolean} [enabled] Indicates whether this gallery image is + * enabled. + */ + enabled?: boolean; } /** @@ -2461,1442 +1979,1491 @@ export interface GalleryImageReferenceFragment { /** * @interface - * An interface representing InboundNatRuleFragment. - * A rule for NAT - exposing a VM's port (backendPort) on the public IP address - * using a load balancer. + * An interface representing ParameterInfo. + * Information about an artifact's parameter. * */ -export interface InboundNatRuleFragment { - /** - * @member {TransportProtocol} [transportProtocol] The transport protocol for - * the endpoint. Possible values include: 'Tcp', 'Udp' - */ - transportProtocol?: TransportProtocol; +export interface ParameterInfo { /** - * @member {number} [frontendPort] The external endpoint port of the inbound - * connection. Possible values range between 1 and 65535, inclusive. If - * unspecified, a value will be allocated automatically. + * @member {string} [name] The name of the artifact parameter. */ - frontendPort?: number; + name?: string; /** - * @member {number} [backendPort] The port to which the external traffic will - * be redirected. + * @member {string} [value] The value of the artifact parameter. */ - backendPort?: number; + value?: string; } /** * @interface - * An interface representing SharedPublicIpAddressConfigurationFragment. - * Properties of a virtual machine that determine how it is connected to a load - * balancer. + * An interface representing GenerateArmTemplateRequest. + * Parameters for generating an ARM template for deploying artifacts. * */ -export interface SharedPublicIpAddressConfigurationFragment { +export interface GenerateArmTemplateRequest { /** - * @member {InboundNatRuleFragment[]} [inboundNatRules] The incoming NAT - * rules + * @member {string} [virtualMachineName] The resource name of the virtual + * machine. */ - inboundNatRules?: InboundNatRuleFragment[]; + virtualMachineName?: string; + /** + * @member {ParameterInfo[]} [parameters] The parameters of the ARM template. + */ + parameters?: ParameterInfo[]; + /** + * @member {string} [location] The location of the virtual machine. + */ + location?: string; + /** + * @member {FileUploadOptions} [fileUploadOptions] Options for uploading the + * files for the artifact. UploadFilesAndGenerateSasTokens is the default + * value. Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' + */ + fileUploadOptions?: FileUploadOptions; } /** * @interface - * An interface representing NetworkInterfacePropertiesFragment. - * Properties of a network interface. + * An interface representing GenerateUploadUriParameter. + * Properties for generating an upload URI. * */ -export interface NetworkInterfacePropertiesFragment { +export interface GenerateUploadUriParameter { /** - * @member {string} [virtualNetworkId] The resource ID of the virtual - * network. + * @member {string} [blobName] The blob name of the upload URI. */ - virtualNetworkId?: string; + blobName?: string; +} + +/** + * @interface + * An interface representing GenerateUploadUriResponse. + * Reponse body for generating an upload URI. + * + */ +export interface GenerateUploadUriResponse { /** - * @member {string} [subnetId] The resource ID of the sub net. + * @member {string} [uploadUri] The upload URI for the VHD. */ - subnetId?: string; + uploadUri?: string; +} + +/** + * @interface + * An interface representing IdentityProperties. + * Properties of a managed identity + * + */ +export interface IdentityProperties { /** - * @member {string} [publicIpAddressId] The resource ID of the public IP - * address. + * @member {string} [type] Managed identity. */ - publicIpAddressId?: string; + type?: string; /** - * @member {string} [publicIpAddress] The public IP address. + * @member {string} [principalId] The principal id of resource identity. */ - publicIpAddress?: string; + principalId?: string; /** - * @member {string} [privateIpAddress] The private IP address. + * @member {string} [tenantId] The tenant identifier of resource. */ - privateIpAddress?: string; + tenantId?: string; /** - * @member {string} [dnsName] The DNS name. + * @member {string} [clientSecretUrl] The client secret URL of the identity. */ - dnsName?: string; + clientSecretUrl?: string; +} + +/** + * @interface + * An interface representing InboundNatRuleFragment. + * A rule for NAT - exposing a VM's port (backendPort) on the public IP address + * using a load balancer. + * + */ +export interface InboundNatRuleFragment { /** - * @member {string} [rdpAuthority] The RdpAuthority property is a server DNS - * host name or IP address followed by the service port number for RDP - * (Remote Desktop Protocol). + * @member {TransportProtocol} [transportProtocol] The transport protocol for + * the endpoint. Possible values include: 'Tcp', 'Udp' */ - rdpAuthority?: string; + transportProtocol?: TransportProtocol; /** - * @member {string} [sshAuthority] The SshAuthority property is a server DNS - * host name or IP address followed by the service port number for SSH. + * @member {number} [frontendPort] The external endpoint port of the inbound + * connection. Possible values range between 1 and 65535, inclusive. If + * unspecified, a value will be allocated automatically. */ - sshAuthority?: string; + frontendPort?: number; /** - * @member {SharedPublicIpAddressConfigurationFragment} - * [sharedPublicIpAddressConfiguration] The configuration for sharing a - * public IP address across multiple virtual machines. + * @member {number} [backendPort] The port to which the external traffic will + * be redirected. */ - sharedPublicIpAddressConfiguration?: SharedPublicIpAddressConfigurationFragment; + backendPort?: number; } /** * @interface - * An interface representing ScheduleCreationParameterFragment. - * Properties for creating a schedule. + * An interface representing Lab. + * A lab. * + * @extends Resource */ -export interface ScheduleCreationParameterFragment { - /** - * @member {EnableStatus} [status] The status of the schedule (i.e. Enabled, - * Disabled). Possible values include: 'Enabled', 'Disabled' - */ - status?: EnableStatus; +export interface Lab extends Resource { /** - * @member {string} [taskType] The task type of the schedule (e.g. - * LabVmsShutdownTask, LabVmAutoStart). + * @member {string} [defaultStorageAccount] The lab's default storage + * account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - taskType?: string; + readonly defaultStorageAccount?: string; /** - * @member {WeekDetailsFragment} [weeklyRecurrence] If the schedule will - * occur only some days of the week, specify the weekly recurrence. + * @member {string} [defaultPremiumStorageAccount] The lab's default premium + * storage account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - weeklyRecurrence?: WeekDetailsFragment; + readonly defaultPremiumStorageAccount?: string; /** - * @member {DayDetailsFragment} [dailyRecurrence] If the schedule will occur - * once each day of the week, specify the daily recurrence. + * @member {string} [artifactsStorageAccount] The lab's artifact storage + * account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - dailyRecurrence?: DayDetailsFragment; + readonly artifactsStorageAccount?: string; /** - * @member {HourDetailsFragment} [hourlyRecurrence] If the schedule will - * occur multiple times a day, specify the hourly recurrence. + * @member {string} [premiumDataDiskStorageAccount] The lab's premium data + * disk storage account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - hourlyRecurrence?: HourDetailsFragment; + readonly premiumDataDiskStorageAccount?: string; /** - * @member {string} [timeZoneId] The time zone ID (e.g. Pacific Standard - * time). + * @member {string} [vaultName] The lab's Key vault. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - timeZoneId?: string; + readonly vaultName?: string; /** - * @member {NotificationSettingsFragment} [notificationSettings] Notification - * settings. + * @member {StorageType} [labStorageType] Type of storage used by the lab. It + * can be either Premium or Standard. Default is Premium. Possible values + * include: 'Standard', 'Premium' */ - notificationSettings?: NotificationSettingsFragment; + labStorageType?: StorageType; /** - * @member {string} [targetResourceId] The resource ID to which the schedule - * belongs + * @member {Date} [createdDate] The creation date of the lab. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - targetResourceId?: string; + readonly createdDate?: Date; /** - * @member {string} [name] The name of the virtual machine or environment + * @member {PremiumDataDisk} [premiumDataDisks] The setting to enable usage + * of premium data disks. + * When its value is 'Enabled', creation of standard or premium data disks is + * allowed. + * When its value is 'Disabled', only creation of standard data disks is + * allowed. Possible values include: 'Disabled', 'Enabled' */ - name?: string; + premiumDataDisks?: PremiumDataDisk; /** - * @member {string} [location] The location of the new virtual machine or - * environment + * @member {string} [provisioningState] The provisioning status of the + * resource. */ - location?: string; + provisioningState?: string; /** - * @member {{ [propertyName: string]: string }} [tags] The tags of the - * resource. + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). */ - tags?: { [propertyName: string]: string }; + uniqueIdentifier?: string; } /** * @interface - * An interface representing LabVirtualMachineCreationParameterFragment. - * Properties for creating a virtual machine. + * An interface representing TargetCostProperties. + * Properties of a cost target. * */ -export interface LabVirtualMachineCreationParameterFragment { +export interface TargetCostProperties { /** - * @member {BulkCreationParametersFragment} [bulkCreationParameters] The - * number of virtual machine instances to create. + * @member {TargetCostStatus} [status] Target cost status. Possible values + * include: 'Enabled', 'Disabled' */ - bulkCreationParameters?: BulkCreationParametersFragment; + status?: TargetCostStatus; /** - * @member {string} [notes] The notes of the virtual machine. + * @member {number} [target] Lab target cost */ - notes?: string; + target?: number; /** - * @member {string} [ownerObjectId] The object identifier of the owner of the - * virtual machine. + * @member {CostThresholdProperties[]} [costThresholds] Cost thresholds. */ - ownerObjectId?: string; + costThresholds?: CostThresholdProperties[]; /** - * @member {string} [ownerUserPrincipalName] The user principal name of the - * virtual machine owner. + * @member {Date} [cycleStartDateTime] Reporting cycle start date. */ - ownerUserPrincipalName?: string; + cycleStartDateTime?: Date; /** - * @member {string} [createdByUserId] The object identifier of the creator of - * the virtual machine. + * @member {Date} [cycleEndDateTime] Reporting cycle end date. */ - createdByUserId?: string; + cycleEndDateTime?: Date; /** - * @member {string} [createdByUser] The email address of creator of the - * virtual machine. + * @member {ReportingCycleType} [cycleType] Reporting cycle type. Possible + * values include: 'CalendarMonth', 'Custom' */ - createdByUser?: string; + cycleType?: ReportingCycleType; +} + +/** + * @interface + * An interface representing LabCostSummaryProperties. + * The properties of the cost summary. + * + */ +export interface LabCostSummaryProperties { /** - * @member {Date} [createdDate] The creation date of the virtual machine. + * @member {number} [estimatedLabCost] The cost component of the cost item. */ - createdDate?: Date; + estimatedLabCost?: number; +} + +/** + * @interface + * An interface representing LabCostDetailsProperties. + * The properties of a lab cost item. + * + */ +export interface LabCostDetailsProperties { /** - * @member {string} [computeId] The resource identifier (Microsoft.Compute) - * of the virtual machine. + * @member {Date} [date] The date of the cost item. */ - computeId?: string; + date?: Date; /** - * @member {string} [customImageId] The custom image identifier of the - * virtual machine. + * @member {number} [cost] The cost component of the cost item. */ - customImageId?: string; + cost?: number; /** - * @member {string} [osType] The OS type of the virtual machine. + * @member {CostType} [costType] The type of the cost. Possible values + * include: 'Unavailable', 'Reported', 'Projected' */ - osType?: string; + costType?: CostType; +} + +/** + * @interface + * An interface representing LabResourceCostProperties. + * The properties of a resource cost item. + * + */ +export interface LabResourceCostProperties { /** - * @member {string} [size] The size of the virtual machine. + * @member {string} [resourcename] The name of the resource. */ - size?: string; + resourcename?: string; /** - * @member {string} [userName] The user name of the virtual machine. + * @member {string} [resourceUId] The unique identifier of the resource. */ - userName?: string; + resourceUId?: string; /** - * @member {string} [password] The password of the virtual machine - * administrator. + * @member {number} [resourceCost] The cost component of the resource cost + * item. */ - password?: string; + resourceCost?: number; /** - * @member {string} [sshKey] The SSH key of the virtual machine - * administrator. + * @member {string} [resourceType] The logical resource type (ex. + * virtualmachine, storageaccount) */ - sshKey?: string; + resourceType?: string; /** - * @member {boolean} [isAuthenticationWithSshKey] Indicates whether this - * virtual machine uses an SSH key for authentication. + * @member {string} [resourceOwner] The owner of the resource (ex. + * janedoe@microsoft.com) */ - isAuthenticationWithSshKey?: boolean; + resourceOwner?: string; /** - * @member {string} [fqdn] The fully-qualified domain name of the virtual - * machine. + * @member {string} [resourcePricingTier] The category of the resource (ex. + * Premium_LRS, Standard_DS1) */ - fqdn?: string; + resourcePricingTier?: string; /** - * @member {string} [labSubnetName] The lab subnet name of the virtual - * machine. + * @member {string} [resourceStatus] The status of the resource (ex. Active) */ - labSubnetName?: string; + resourceStatus?: string; /** - * @member {string} [labVirtualNetworkId] The lab virtual network identifier - * of the virtual machine. + * @member {string} [resourceId] The ID of the resource */ - labVirtualNetworkId?: string; + resourceId?: string; /** - * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual - * machine is to be created without a public IP address. + * @member {string} [externalResourceId] The ID of the external resource */ - disallowPublicIpAddress?: boolean; + externalResourceId?: string; +} + +/** + * @interface + * An interface representing LabCost. + * A cost item. + * + * @extends Resource + */ +export interface LabCost extends Resource { /** - * @member {ArtifactInstallPropertiesFragment[]} [artifacts] The artifacts to - * be installed on the virtual machine. + * @member {TargetCostProperties} [targetCost] The target cost properties */ - artifacts?: ArtifactInstallPropertiesFragment[]; + targetCost?: TargetCostProperties; /** - * @member {ArtifactDeploymentStatusPropertiesFragment} - * [artifactDeploymentStatus] The artifact deployment status for the virtual - * machine. + * @member {LabCostSummaryProperties} [labCostSummary] The lab cost summary + * component of the cost data. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - artifactDeploymentStatus?: ArtifactDeploymentStatusPropertiesFragment; + readonly labCostSummary?: LabCostSummaryProperties; /** - * @member {GalleryImageReferenceFragment} [galleryImageReference] The - * Microsoft Azure Marketplace image reference of the virtual machine. + * @member {LabCostDetailsProperties[]} [labCostDetails] The lab cost details + * component of the cost data. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - galleryImageReference?: GalleryImageReferenceFragment; + readonly labCostDetails?: LabCostDetailsProperties[]; /** - * @member {string} [planId] The id of the plan associated with the virtual - * machine image + * @member {LabResourceCostProperties[]} [resourceCosts] The resource cost + * component of the cost data. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - planId?: string; + readonly resourceCosts?: LabResourceCostProperties[]; /** - * @member {NetworkInterfacePropertiesFragment} [networkInterface] The - * network interface properties. + * @member {string} [currencyCode] The currency code of the cost. */ - networkInterface?: NetworkInterfacePropertiesFragment; + currencyCode?: string; /** - * @member {Date} [expirationDate] The expiration date for VM. + * @member {Date} [startDateTime] The start time of the cost data. */ - expirationDate?: Date; + startDateTime?: Date; /** - * @member {boolean} [allowClaim] Indicates whether another user can take - * ownership of the virtual machine + * @member {Date} [endDateTime] The end time of the cost data. */ - allowClaim?: boolean; + endDateTime?: Date; /** - * @member {string} [storageType] Storage type to use for virtual machine - * (i.e. Standard, Premium). + * @member {Date} [createdDate] The creation date of the cost. */ - storageType?: string; + createdDate?: Date; /** - * @member {VirtualMachineCreationSource} [virtualMachineCreationSource] - * Tells source of creation of lab virtual machine. Output property only. - * Possible values include: 'FromCustomImage', 'FromGalleryImage' - */ - virtualMachineCreationSource?: VirtualMachineCreationSource; - /** - * @member {string} [environmentId] The resource ID of the environment that - * contains this virtual machine, if any. - */ - environmentId?: string; - /** - * @member {DataDiskPropertiesFragment[]} [dataDiskParameters] New or - * existing data disks to attach to the virtual machine after creation + * @member {string} [provisioningState] The provisioning status of the + * resource. */ - dataDiskParameters?: DataDiskPropertiesFragment[]; + provisioningState?: string; /** - * @member {ScheduleCreationParameterFragment[]} [scheduleParameters] Virtual - * Machine schedules to be created + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). */ - scheduleParameters?: ScheduleCreationParameterFragment[]; + uniqueIdentifier?: string; +} + +/** + * @interface + * An interface representing LabFragment. + * A lab. + * + * @extends Resource + */ +export interface LabFragment extends Resource { /** - * @member {string} [lastKnownPowerState] Last known compute power state - * captured in DTL + * @member {StorageType} [labStorageType] Type of storage used by the lab. It + * can be either Premium or Standard. Default is Premium. Possible values + * include: 'Standard', 'Premium' */ - lastKnownPowerState?: string; + labStorageType?: StorageType; /** - * @member {string} [name] The name of the virtual machine or environment + * @member {PremiumDataDisk} [premiumDataDisks] The setting to enable usage + * of premium data disks. + * When its value is 'Enabled', creation of standard or premium data disks is + * allowed. + * When its value is 'Disabled', only creation of standard data disks is + * allowed. Possible values include: 'Disabled', 'Enabled' */ - name?: string; + premiumDataDisks?: PremiumDataDisk; /** - * @member {string} [location] The location of the new virtual machine or - * environment + * @member {string} [provisioningState] The provisioning status of the + * resource. */ - location?: string; + provisioningState?: string; /** - * @member {{ [propertyName: string]: string }} [tags] The tags of the - * resource. + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). */ - tags?: { [propertyName: string]: string }; + uniqueIdentifier?: string; } /** * @interface - * An interface representing FormulaPropertiesFromVmFragment. - * Information about a VM from which a formula is to be created. + * An interface representing LabVhd. + * Properties of a VHD in the lab. * */ -export interface FormulaPropertiesFromVmFragment { +export interface LabVhd { /** - * @member {string} [labVmId] The identifier of the VM from which a formula - * is to be created. + * @member {string} [id] The URI to the VHD. */ - labVmId?: string; + id?: string; } /** * @interface - * An interface representing FormulaFragment. - * A formula for creating a VM, specifying an image base and other parameters + * An interface representing LabVirtualMachine. + * A virtual machine. * - * @extends UpdateResource + * @extends Resource */ -export interface FormulaFragment extends UpdateResource { +export interface LabVirtualMachine extends Resource { /** - * @member {string} [description] The description of the formula. + * @member {string} [notes] The notes of the virtual machine. */ - description?: string; + notes?: string; /** - * @member {string} [author] The author of the formula. + * @member {string} [ownerObjectId] The object identifier of the owner of the + * virtual machine. */ - author?: string; + ownerObjectId?: string; /** - * @member {string} [osType] The OS type of the formula. + * @member {string} [ownerUserPrincipalName] The user principal name of the + * virtual machine owner. */ - osType?: string; + ownerUserPrincipalName?: string; /** - * @member {LabVirtualMachineCreationParameterFragment} [formulaContent] The - * content of the formula. + * @member {string} [createdByUserId] The object identifier of the creator of + * the virtual machine. */ - formulaContent?: LabVirtualMachineCreationParameterFragment; + createdByUserId?: string; /** - * @member {FormulaPropertiesFromVmFragment} [vm] Information about a VM from - * which a formula is to be created. + * @member {string} [createdByUser] The email address of creator of the + * virtual machine. */ - vm?: FormulaPropertiesFromVmFragment; -} - -/** - * @interface - * An interface representing GalleryImage. - * A gallery image. - * - * @extends Resource - */ -export interface GalleryImage extends Resource { + createdByUser?: string; /** - * @member {string} [author] The author of the gallery image. + * @member {Date} [createdDate] The creation date of the virtual machine. */ - author?: string; + createdDate?: Date; /** - * @member {Date} [createdDate] The creation date of the gallery image. + * @member {string} [computeId] The resource identifier (Microsoft.Compute) + * of the virtual machine. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly createdDate?: Date; - /** - * @member {string} [description] The description of the gallery image. - */ - description?: string; + readonly computeId?: string; /** - * @member {GalleryImageReference} [imageReference] The image reference of - * the gallery image. + * @member {string} [customImageId] The custom image identifier of the + * virtual machine. */ - imageReference?: GalleryImageReference; + customImageId?: string; /** - * @member {string} [icon] The icon of the gallery image. + * @member {string} [osType] The OS type of the virtual machine. */ - icon?: string; + osType?: string; /** - * @member {boolean} [enabled] Indicates whether this gallery image is - * enabled. + * @member {string} [size] The size of the virtual machine. */ - enabled?: boolean; + size?: string; /** - * @member {string} [planId] The third party plan that applies to this image + * @member {string} [userName] The user name of the virtual machine. */ - planId?: string; + userName?: string; /** - * @member {boolean} [isPlanAuthorized] Indicates if the plan has been - * authorized for programmatic deployment. + * @member {string} [password] The password of the virtual machine + * administrator. */ - isPlanAuthorized?: boolean; -} - -/** - * @interface - * An interface representing ParameterInfo. - * Information about an artifact's parameter. - * - */ -export interface ParameterInfo { + password?: string; /** - * @member {string} [name] The name of the artifact parameter. + * @member {string} [sshKey] The SSH key of the virtual machine + * administrator. */ - name?: string; + sshKey?: string; /** - * @member {string} [value] The value of the artifact parameter. + * @member {boolean} [isAuthenticationWithSshKey] Indicates whether this + * virtual machine uses an SSH key for authentication. */ - value?: string; -} - -/** - * @interface - * An interface representing GenerateArmTemplateRequest. - * Parameters for generating an ARM template for deploying artifacts. - * - */ -export interface GenerateArmTemplateRequest { + isAuthenticationWithSshKey?: boolean; /** - * @member {string} [virtualMachineName] The resource name of the virtual + * @member {string} [fqdn] The fully-qualified domain name of the virtual * machine. */ - virtualMachineName?: string; + fqdn?: string; /** - * @member {ParameterInfo[]} [parameters] The parameters of the ARM template. + * @member {string} [labSubnetName] The lab subnet name of the virtual + * machine. */ - parameters?: ParameterInfo[]; + labSubnetName?: string; /** - * @member {string} [location] The location of the virtual machine. + * @member {string} [labVirtualNetworkId] The lab virtual network identifier + * of the virtual machine. */ - location?: string; + labVirtualNetworkId?: string; /** - * @member {FileUploadOptions} [fileUploadOptions] Options for uploading the - * files for the artifact. UploadFilesAndGenerateSasTokens is the default - * value. Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' + * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual + * machine is to be created without a public IP address. */ - fileUploadOptions?: FileUploadOptions; -} - -/** - * @interface - * An interface representing GenerateUploadUriParameter. - * Properties for generating an upload URI. - * - */ -export interface GenerateUploadUriParameter { + disallowPublicIpAddress?: boolean; /** - * @member {string} [blobName] The blob name of the upload URI. + * @member {ArtifactInstallProperties[]} [artifacts] The artifacts to be + * installed on the virtual machine. */ - blobName?: string; -} - -/** - * @interface - * An interface representing GenerateUploadUriResponse. - * Reponse body for generating an upload URI. - * - */ -export interface GenerateUploadUriResponse { + artifacts?: ArtifactInstallProperties[]; /** - * @member {string} [uploadUri] The upload URI for the VHD. + * @member {ArtifactDeploymentStatusProperties} [artifactDeploymentStatus] + * The artifact deployment status for the virtual machine. */ - uploadUri?: string; -} - -/** - * @interface - * An interface representing IdentityProperties. - * Properties of a managed identity - * - */ -export interface IdentityProperties { + artifactDeploymentStatus?: ArtifactDeploymentStatusProperties; /** - * @member {string} [type] Managed identity. + * @member {GalleryImageReference} [galleryImageReference] The Microsoft + * Azure Marketplace image reference of the virtual machine. */ - type?: string; + galleryImageReference?: GalleryImageReference; /** - * @member {string} [principalId] The principal id of resource identity. + * @member {ComputeVmProperties} [computeVm] The compute virtual machine + * properties. */ - principalId?: string; + computeVm?: ComputeVmProperties; /** - * @member {string} [tenantId] The tenant identifier of resource. + * @member {NetworkInterfaceProperties} [networkInterface] The network + * interface properties. */ - tenantId?: string; + networkInterface?: NetworkInterfaceProperties; /** - * @member {string} [clientSecretUrl] The client secret URL of the identity. + * @member {ApplicableSchedule} [applicableSchedule] The applicable schedule + * for the virtual machine. */ - clientSecretUrl?: string; -} - -/** - * @interface - * An interface representing ImportLabVirtualMachineRequest. - * This represents the payload required to import a virtual machine from a - * different lab into the current one - * - */ -export interface ImportLabVirtualMachineRequest { + applicableSchedule?: ApplicableSchedule; /** - * @member {string} [sourceVirtualMachineResourceId] The full resource ID of - * the virtual machine to be imported. + * @member {Date} [expirationDate] The expiration date for VM. */ - sourceVirtualMachineResourceId?: string; + expirationDate?: Date; /** - * @member {string} [destinationVirtualMachineName] The name of the virtual - * machine in the destination lab + * @member {boolean} [allowClaim] Indicates whether another user can take + * ownership of the virtual machine */ - destinationVirtualMachineName?: string; -} - -/** - * @interface - * An interface representing LabAnnouncementProperties. - * Properties of a lab's announcement banner - * - */ -export interface LabAnnouncementProperties { + allowClaim?: boolean; /** - * @member {string} [title] The plain text title for the lab announcement + * @member {string} [storageType] Storage type to use for virtual machine + * (i.e. Standard, Premium). */ - title?: string; + storageType?: string; /** - * @member {string} [markdown] The markdown text (if any) that this lab - * displays in the UI. If left empty/null, nothing will be shown. + * @member {VirtualMachineCreationSource} [virtualMachineCreationSource] + * Tells source of creation of lab virtual machine. Output property only. + * Possible values include: 'FromCustomImage', 'FromGalleryImage' */ - markdown?: string; + virtualMachineCreationSource?: VirtualMachineCreationSource; /** - * @member {EnableStatus} [enabled] Is the lab announcement active/enabled at - * this time?. Possible values include: 'Enabled', 'Disabled' + * @member {string} [environmentId] The resource ID of the environment that + * contains this virtual machine, if any. */ - enabled?: EnableStatus; + environmentId?: string; /** - * @member {Date} [expirationDate] The time at which the announcement expires - * (null for never) + * @member {string} [provisioningState] The provisioning status of the + * resource. */ - expirationDate?: Date; + provisioningState?: string; /** - * @member {boolean} [expired] Has this announcement expired? + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). */ - expired?: boolean; - /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; + uniqueIdentifier?: string; +} + +/** + * @interface + * An interface representing SharedPublicIpAddressConfigurationFragment. + * Properties of a virtual machine that determine how it is connected to a load + * balancer. + * + */ +export interface SharedPublicIpAddressConfigurationFragment { /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {InboundNatRuleFragment[]} [inboundNatRules] The incoming NAT + * rules */ - readonly uniqueIdentifier?: string; + inboundNatRules?: InboundNatRuleFragment[]; } /** * @interface - * An interface representing LabSupportProperties. - * Properties of a lab's support banner + * An interface representing NetworkInterfacePropertiesFragment. + * Properties of a network interface. * */ -export interface LabSupportProperties { +export interface NetworkInterfacePropertiesFragment { + /** + * @member {string} [virtualNetworkId] The resource ID of the virtual + * network. + */ + virtualNetworkId?: string; + /** + * @member {string} [subnetId] The resource ID of the sub net. + */ + subnetId?: string; + /** + * @member {string} [publicIpAddressId] The resource ID of the public IP + * address. + */ + publicIpAddressId?: string; + /** + * @member {string} [publicIpAddress] The public IP address. + */ + publicIpAddress?: string; + /** + * @member {string} [privateIpAddress] The private IP address. + */ + privateIpAddress?: string; + /** + * @member {string} [dnsName] The DNS name. + */ + dnsName?: string; + /** + * @member {string} [rdpAuthority] The RdpAuthority property is a server DNS + * host name or IP address followed by the service port number for RDP + * (Remote Desktop Protocol). + */ + rdpAuthority?: string; /** - * @member {EnableStatus} [enabled] Is the lab support banner active/enabled - * at this time?. Possible values include: 'Enabled', 'Disabled' + * @member {string} [sshAuthority] The SshAuthority property is a server DNS + * host name or IP address followed by the service port number for SSH. */ - enabled?: EnableStatus; + sshAuthority?: string; /** - * @member {string} [markdown] The markdown text (if any) that this lab - * displays in the UI. If left empty/null, nothing will be shown. + * @member {SharedPublicIpAddressConfigurationFragment} + * [sharedPublicIpAddressConfiguration] The configuration for sharing a + * public IP address across multiple virtual machines. */ - markdown?: string; + sharedPublicIpAddressConfiguration?: SharedPublicIpAddressConfigurationFragment; } /** * @interface - * An interface representing Lab. - * A lab. + * An interface representing LabVirtualMachineFragment. + * A virtual machine. * * @extends Resource */ -export interface Lab extends Resource { +export interface LabVirtualMachineFragment extends Resource { /** - * @member {string} [defaultStorageAccount] The lab's default storage - * account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [notes] The notes of the virtual machine. */ - readonly defaultStorageAccount?: string; + notes?: string; /** - * @member {string} [defaultPremiumStorageAccount] The lab's default premium - * storage account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [ownerObjectId] The object identifier of the owner of the + * virtual machine. */ - readonly defaultPremiumStorageAccount?: string; + ownerObjectId?: string; /** - * @member {string} [artifactsStorageAccount] The lab's artifact storage - * account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [ownerUserPrincipalName] The user principal name of the + * virtual machine owner. */ - readonly artifactsStorageAccount?: string; + ownerUserPrincipalName?: string; /** - * @member {string} [premiumDataDiskStorageAccount] The lab's premium data - * disk storage account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [createdByUserId] The object identifier of the creator of + * the virtual machine. */ - readonly premiumDataDiskStorageAccount?: string; + createdByUserId?: string; /** - * @member {string} [vaultName] The lab's Key vault. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [createdByUser] The email address of creator of the + * virtual machine. */ - readonly vaultName?: string; + createdByUser?: string; /** - * @member {StorageType} [labStorageType] Type of storage used by the lab. It - * can be either Premium or Standard. Default is Premium. Possible values - * include: 'Standard', 'Premium' + * @member {Date} [createdDate] The creation date of the virtual machine. */ - labStorageType?: StorageType; + createdDate?: Date; /** - * @member {string[]} [mandatoryArtifactsResourceIdsLinux] The ordered list - * of artifact resource IDs that should be applied on all Linux VM creations - * by default, prior to the artifacts specified by the user. + * @member {string} [customImageId] The custom image identifier of the + * virtual machine. */ - mandatoryArtifactsResourceIdsLinux?: string[]; + customImageId?: string; /** - * @member {string[]} [mandatoryArtifactsResourceIdsWindows] The ordered list - * of artifact resource IDs that should be applied on all Windows VM - * creations by default, prior to the artifacts specified by the user. + * @member {string} [osType] The OS type of the virtual machine. */ - mandatoryArtifactsResourceIdsWindows?: string[]; + osType?: string; /** - * @member {Date} [createdDate] The creation date of the lab. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [size] The size of the virtual machine. */ - readonly createdDate?: Date; + size?: string; /** - * @member {PremiumDataDisk} [premiumDataDisks] The setting to enable usage - * of premium data disks. - * When its value is 'Enabled', creation of standard or premium data disks is - * allowed. - * When its value is 'Disabled', only creation of standard data disks is - * allowed. Possible values include: 'Disabled', 'Enabled' + * @member {string} [userName] The user name of the virtual machine. */ - premiumDataDisks?: PremiumDataDisk; + userName?: string; /** - * @member {EnvironmentPermission} [environmentPermission] The access rights - * to be granted to the user when provisioning an environment. Possible - * values include: 'Reader', 'Contributor' + * @member {string} [password] The password of the virtual machine + * administrator. */ - environmentPermission?: EnvironmentPermission; + password?: string; /** - * @member {LabAnnouncementProperties} [announcement] The properties of any - * lab announcement associated with this lab + * @member {string} [sshKey] The SSH key of the virtual machine + * administrator. */ - announcement?: LabAnnouncementProperties; + sshKey?: string; /** - * @member {LabSupportProperties} [support] The properties of any lab support - * message associated with this lab + * @member {boolean} [isAuthenticationWithSshKey] Indicates whether this + * virtual machine uses an SSH key for authentication. */ - support?: LabSupportProperties; + isAuthenticationWithSshKey?: boolean; /** - * @member {string} [vmCreationResourceGroup] The resource group in which lab - * virtual machines will be created in. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [fqdn] The fully-qualified domain name of the virtual + * machine. */ - readonly vmCreationResourceGroup?: string; + fqdn?: string; /** - * @member {string} [publicIpId] The public IP address for the lab's load - * balancer. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [labSubnetName] The lab subnet name of the virtual + * machine. */ - readonly publicIpId?: string; + labSubnetName?: string; /** - * @member {string} [loadBalancerId] The load balancer used to for lab VMs - * that use shared IP address. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [labVirtualNetworkId] The lab virtual network identifier + * of the virtual machine. */ - readonly loadBalancerId?: string; + labVirtualNetworkId?: string; /** - * @member {string} [networkSecurityGroupId] The Network Security Group - * attached to the lab VMs Network interfaces to restrict open ports. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual + * machine is to be created without a public IP address. */ - readonly networkSecurityGroupId?: string; + disallowPublicIpAddress?: boolean; /** - * @member {{ [propertyName: string]: string }} [extendedProperties] Extended - * properties of the lab used for experimental features + * @member {ArtifactInstallPropertiesFragment[]} [artifacts] The artifacts to + * be installed on the virtual machine. */ - extendedProperties?: { [propertyName: string]: string }; + artifacts?: ArtifactInstallPropertiesFragment[]; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {ArtifactDeploymentStatusPropertiesFragment} + * [artifactDeploymentStatus] The artifact deployment status for the virtual + * machine. */ - readonly provisioningState?: string; + artifactDeploymentStatus?: ArtifactDeploymentStatusPropertiesFragment; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {GalleryImageReferenceFragment} [galleryImageReference] The + * Microsoft Azure Marketplace image reference of the virtual machine. */ - readonly uniqueIdentifier?: string; -} - -/** - * @interface - * An interface representing LabAnnouncementPropertiesFragment. - * Properties of a lab's announcement banner - * - */ -export interface LabAnnouncementPropertiesFragment { + galleryImageReference?: GalleryImageReferenceFragment; /** - * @member {string} [title] The plain text title for the lab announcement + * @member {ComputeVmPropertiesFragment} [computeVm] The compute virtual + * machine properties. */ - title?: string; + computeVm?: ComputeVmPropertiesFragment; /** - * @member {string} [markdown] The markdown text (if any) that this lab - * displays in the UI. If left empty/null, nothing will be shown. + * @member {NetworkInterfacePropertiesFragment} [networkInterface] The + * network interface properties. */ - markdown?: string; + networkInterface?: NetworkInterfacePropertiesFragment; /** - * @member {EnableStatus} [enabled] Is the lab announcement active/enabled at - * this time?. Possible values include: 'Enabled', 'Disabled' + * @member {ApplicableScheduleFragment} [applicableSchedule] The applicable + * schedule for the virtual machine. */ - enabled?: EnableStatus; + applicableSchedule?: ApplicableScheduleFragment; /** - * @member {Date} [expirationDate] The time at which the announcement expires - * (null for never) + * @member {Date} [expirationDate] The expiration date for VM. */ expirationDate?: Date; /** - * @member {boolean} [expired] Has this announcement expired? + * @member {boolean} [allowClaim] Indicates whether another user can take + * ownership of the virtual machine + */ + allowClaim?: boolean; + /** + * @member {string} [storageType] Storage type to use for virtual machine + * (i.e. Standard, Premium). + */ + storageType?: string; + /** + * @member {VirtualMachineCreationSource} [virtualMachineCreationSource] + * Tells source of creation of lab virtual machine. Output property only. + * Possible values include: 'FromCustomImage', 'FromGalleryImage' + */ + virtualMachineCreationSource?: VirtualMachineCreationSource; + /** + * @member {string} [environmentId] The resource ID of the environment that + * contains this virtual machine, if any. + */ + environmentId?: string; + /** + * @member {string} [provisioningState] The provisioning status of the + * resource. + */ + provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). */ - expired?: boolean; + uniqueIdentifier?: string; } /** * @interface - * An interface representing TargetCostProperties. - * Properties of a cost target. + * An interface representing NotificationChannel. + * A notification. * + * @extends Resource */ -export interface TargetCostProperties { +export interface NotificationChannel extends Resource { /** - * @member {TargetCostStatus} [status] Target cost status. Possible values - * include: 'Enabled', 'Disabled' + * @member {string} [webHookUrl] The webhook URL to send notifications to. */ - status?: TargetCostStatus; + webHookUrl?: string; /** - * @member {number} [target] Lab target cost + * @member {string} [description] Description of notification. */ - target?: number; + description?: string; /** - * @member {CostThresholdProperties[]} [costThresholds] Cost thresholds. + * @member {Event[]} [events] The list of event for which this notification + * is enabled. */ - costThresholds?: CostThresholdProperties[]; + events?: Event[]; /** - * @member {Date} [cycleStartDateTime] Reporting cycle start date. + * @member {Date} [createdDate] The creation date of the notification + * channel. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - cycleStartDateTime?: Date; + readonly createdDate?: Date; /** - * @member {Date} [cycleEndDateTime] Reporting cycle end date. + * @member {string} [provisioningState] The provisioning status of the + * resource. */ - cycleEndDateTime?: Date; + provisioningState?: string; /** - * @member {ReportingCycleType} [cycleType] Reporting cycle type. Possible - * values include: 'CalendarMonth', 'Custom' + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). */ - cycleType?: ReportingCycleType; + uniqueIdentifier?: string; } /** * @interface - * An interface representing LabCostSummaryProperties. - * The properties of the cost summary. + * An interface representing NotificationChannelFragment. + * A notification. * + * @extends Resource */ -export interface LabCostSummaryProperties { +export interface NotificationChannelFragment extends Resource { /** - * @member {number} [estimatedLabCost] The cost component of the cost item. + * @member {string} [webHookUrl] The webhook URL to send notifications to. */ - estimatedLabCost?: number; + webHookUrl?: string; + /** + * @member {string} [description] Description of notification. + */ + description?: string; + /** + * @member {EventFragment[]} [events] The list of event for which this + * notification is enabled. + */ + events?: EventFragment[]; + /** + * @member {string} [provisioningState] The provisioning status of the + * resource. + */ + provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + */ + uniqueIdentifier?: string; } /** * @interface - * An interface representing LabCostDetailsProperties. - * The properties of a lab cost item. + * An interface representing NotifyParameters. + * Properties for generating a Notification. * */ -export interface LabCostDetailsProperties { +export interface NotifyParameters { /** - * @member {Date} [date] The date of the cost item. + * @member {NotificationChannelEventType} [eventName] The type of event (i.e. + * AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost' */ - date?: Date; + eventName?: NotificationChannelEventType; /** - * @member {number} [cost] The cost component of the cost item. + * @member {string} [jsonPayload] Properties for the notification in json + * format. */ - cost?: number; + jsonPayload?: string; +} + +/** + * @interface + * An interface representing OperationError. + * Error details for the operation in case of a failure. + * + */ +export interface OperationError { /** - * @member {CostType} [costType] The type of the cost. Possible values - * include: 'Unavailable', 'Reported', 'Projected' + * @member {string} [code] The error code of the operation error. */ - costType?: CostType; + code?: string; + /** + * @member {string} [message] The error message of the operation error. + */ + message?: string; } /** * @interface - * An interface representing LabResourceCostProperties. - * The properties of a resource cost item. + * An interface representing OperationMetadataDisplay. + * The object that describes the operations * */ -export interface LabResourceCostProperties { +export interface OperationMetadataDisplay { /** - * @member {string} [resourcename] The name of the resource. + * @member {string} [provider] Friendly name of the resource provider */ - resourcename?: string; + provider?: string; /** - * @member {string} [resourceUId] The unique identifier of the resource. + * @member {string} [resource] Resource type on which the operation is + * performed. */ - resourceUId?: string; + resource?: string; /** - * @member {number} [resourceCost] The cost component of the resource cost - * item. + * @member {string} [operation] Operation type: read, write, delete, + * listKeys/action, etc. */ - resourceCost?: number; + operation?: string; /** - * @member {string} [resourceType] The logical resource type (ex. - * virtualmachine, storageaccount) + * @member {string} [description] Friendly name of the operation */ - resourceType?: string; + description?: string; +} + +/** + * @interface + * An interface representing OperationMetadata. + * The REST API operation supported by DevTestLab ResourceProvider. + * + */ +export interface OperationMetadata { /** - * @member {string} [resourceOwner] The owner of the resource (ex. - * janedoe@microsoft.com) + * @member {string} [name] Operation name: {provider}/{resource}/{operation} */ - resourceOwner?: string; + name?: string; /** - * @member {string} [resourcePricingTier] The category of the resource (ex. - * Premium_LRS, Standard_DS1) + * @member {OperationMetadataDisplay} [display] The object that describes the + * operations */ - resourcePricingTier?: string; + display?: OperationMetadataDisplay; +} + +/** + * @interface + * An interface representing OperationResult. + * An Operation Result + * + */ +export interface OperationResult { /** - * @member {string} [resourceStatus] The status of the resource (ex. Active) + * @member {string} [status] The operation status. */ - resourceStatus?: string; + status?: string; /** - * @member {string} [resourceId] The ID of the resource + * @member {HttpStatusCode} [statusCode] The status code for the operation. + * Possible values include: 'Continue', 'SwitchingProtocols', 'OK', + * 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', + * 'ResetContent', 'PartialContent', 'MultipleChoices', 'MovedPermanently', + * 'Redirect', 'SeeOther', 'NotModified', 'UseProxy', 'Unused', + * 'TemporaryRedirect', 'BadRequest', 'Unauthorized', 'PaymentRequired', + * 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', + * 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone', + * 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge', + * 'RequestUriTooLong', 'UnsupportedMediaType', + * 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', + * 'InternalServerError', 'NotImplemented', 'BadGateway', + * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' */ - resourceId?: string; + statusCode?: HttpStatusCode; /** - * @member {string} [externalResourceId] The ID of the external resource + * @member {OperationError} [error] Error details for the operation in case + * of a failure. */ - externalResourceId?: string; + error?: OperationError; } /** * @interface - * An interface representing LabCost. - * A cost item. + * An interface representing Policy. + * A Policy. * * @extends Resource */ -export interface LabCost extends Resource { - /** - * @member {TargetCostProperties} [targetCost] The target cost properties - */ - targetCost?: TargetCostProperties; +export interface Policy extends Resource { /** - * @member {LabCostSummaryProperties} [labCostSummary] The lab cost summary - * component of the cost data. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [description] The description of the policy. */ - readonly labCostSummary?: LabCostSummaryProperties; + description?: string; /** - * @member {LabCostDetailsProperties[]} [labCostDetails] The lab cost details - * component of the cost data. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {PolicyStatus} [status] The status of the policy. Possible values + * include: 'Enabled', 'Disabled' */ - readonly labCostDetails?: LabCostDetailsProperties[]; + status?: PolicyStatus; /** - * @member {LabResourceCostProperties[]} [resourceCosts] The resource cost - * component of the cost data. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {PolicyFactName} [factName] The fact name of the policy (e.g. + * LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: + * 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', + * 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', + * 'UserOwnedLabVmCountInSubnet', 'LabTargetCost' */ - readonly resourceCosts?: LabResourceCostProperties[]; + factName?: PolicyFactName; /** - * @member {string} [currencyCode] The currency code of the cost. + * @member {string} [factData] The fact data of the policy. */ - currencyCode?: string; + factData?: string; /** - * @member {Date} [startDateTime] The start time of the cost data. + * @member {string} [threshold] The threshold of the policy (i.e. a number + * for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). */ - startDateTime?: Date; + threshold?: string; /** - * @member {Date} [endDateTime] The end time of the cost data. + * @member {PolicyEvaluatorType} [evaluatorType] The evaluator type of the + * policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values + * include: 'AllowedValuesPolicy', 'MaxValuePolicy' */ - endDateTime?: Date; + evaluatorType?: PolicyEvaluatorType; /** - * @member {Date} [createdDate] The creation date of the cost. + * @member {Date} [createdDate] The creation date of the policy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - createdDate?: Date; + readonly createdDate?: Date; /** * @member {string} [provisioningState] The provisioning status of the * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly provisioningState?: string; + provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly uniqueIdentifier?: string; -} - -/** - * @interface - * An interface representing LabSupportPropertiesFragment. - * Properties of a lab's support banner - * - */ -export interface LabSupportPropertiesFragment { - /** - * @member {EnableStatus} [enabled] Is the lab support banner active/enabled - * at this time?. Possible values include: 'Enabled', 'Disabled' - */ - enabled?: EnableStatus; - /** - * @member {string} [markdown] The markdown text (if any) that this lab - * displays in the UI. If left empty/null, nothing will be shown. */ - markdown?: string; + uniqueIdentifier?: string; } /** * @interface - * An interface representing LabFragment. - * A lab. + * An interface representing PolicyFragment. + * A Policy. * - * @extends UpdateResource + * @extends Resource */ -export interface LabFragment extends UpdateResource { +export interface PolicyFragment extends Resource { /** - * @member {StorageType} [labStorageType] Type of storage used by the lab. It - * can be either Premium or Standard. Default is Premium. Possible values - * include: 'Standard', 'Premium' + * @member {string} [description] The description of the policy. */ - labStorageType?: StorageType; + description?: string; /** - * @member {string[]} [mandatoryArtifactsResourceIdsLinux] The ordered list - * of artifact resource IDs that should be applied on all Linux VM creations - * by default, prior to the artifacts specified by the user. + * @member {PolicyStatus} [status] The status of the policy. Possible values + * include: 'Enabled', 'Disabled' */ - mandatoryArtifactsResourceIdsLinux?: string[]; + status?: PolicyStatus; /** - * @member {string[]} [mandatoryArtifactsResourceIdsWindows] The ordered list - * of artifact resource IDs that should be applied on all Windows VM - * creations by default, prior to the artifacts specified by the user. + * @member {PolicyFactName} [factName] The fact name of the policy (e.g. + * LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: + * 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', + * 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', + * 'UserOwnedLabVmCountInSubnet', 'LabTargetCost' */ - mandatoryArtifactsResourceIdsWindows?: string[]; + factName?: PolicyFactName; /** - * @member {PremiumDataDisk} [premiumDataDisks] The setting to enable usage - * of premium data disks. - * When its value is 'Enabled', creation of standard or premium data disks is - * allowed. - * When its value is 'Disabled', only creation of standard data disks is - * allowed. Possible values include: 'Disabled', 'Enabled' + * @member {string} [factData] The fact data of the policy. */ - premiumDataDisks?: PremiumDataDisk; + factData?: string; /** - * @member {EnvironmentPermission} [environmentPermission] The access rights - * to be granted to the user when provisioning an environment. Possible - * values include: 'Reader', 'Contributor' + * @member {string} [threshold] The threshold of the policy (i.e. a number + * for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). */ - environmentPermission?: EnvironmentPermission; + threshold?: string; /** - * @member {LabAnnouncementPropertiesFragment} [announcement] The properties - * of any lab announcement associated with this lab + * @member {PolicyEvaluatorType} [evaluatorType] The evaluator type of the + * policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values + * include: 'AllowedValuesPolicy', 'MaxValuePolicy' */ - announcement?: LabAnnouncementPropertiesFragment; + evaluatorType?: PolicyEvaluatorType; /** - * @member {LabSupportPropertiesFragment} [support] The properties of any lab - * support message associated with this lab + * @member {string} [provisioningState] The provisioning status of the + * resource. */ - support?: LabSupportPropertiesFragment; + provisioningState?: string; /** - * @member {{ [propertyName: string]: string }} [extendedProperties] Extended - * properties of the lab used for experimental features + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). */ - extendedProperties?: { [propertyName: string]: string }; + uniqueIdentifier?: string; } /** * @interface - * An interface representing LabVhd. - * Properties of a VHD in the lab. + * An interface representing Port. + * Properties of a network port. * */ -export interface LabVhd { +export interface Port { /** - * @member {string} [id] The URI to the VHD. - */ - id?: string; + * @member {TransportProtocol} [transportProtocol] Protocol type of the port. + * Possible values include: 'Tcp', 'Udp' + */ + transportProtocol?: TransportProtocol; + /** + * @member {number} [backendPort] Backend port of the target virtual machine. + */ + backendPort?: number; } /** * @interface - * An interface representing LabVirtualMachine. - * A virtual machine. + * An interface representing PortFragment. + * Properties of a network port. * - * @extends Resource */ -export interface LabVirtualMachine extends Resource { +export interface PortFragment { /** - * @member {string} [notes] The notes of the virtual machine. + * @member {TransportProtocol} [transportProtocol] Protocol type of the port. + * Possible values include: 'Tcp', 'Udp' */ - notes?: string; + transportProtocol?: TransportProtocol; /** - * @member {string} [ownerObjectId] The object identifier of the owner of the - * virtual machine. + * @member {number} [backendPort] Backend port of the target virtual machine. */ - ownerObjectId?: string; + backendPort?: number; +} + +/** + * @interface + * An interface representing RetargetScheduleProperties. + * Properties for retargeting a virtual machine schedule. + * + */ +export interface RetargetScheduleProperties { /** - * @member {string} [ownerUserPrincipalName] The user principal name of the - * virtual machine owner. + * @member {string} [currentResourceId] The resource Id of the virtual + * machine on which the schedule operates */ - ownerUserPrincipalName?: string; + currentResourceId?: string; /** - * @member {string} [createdByUserId] The object identifier of the creator of - * the virtual machine. + * @member {string} [targetResourceId] The resource Id of the virtual machine + * that the schedule should be retargeted to */ - createdByUserId?: string; + targetResourceId?: string; +} + +/** + * @interface + * An interface representing Secret. + * A secret. + * + * @extends Resource + */ +export interface Secret extends Resource { /** - * @member {string} [createdByUser] The email address of creator of the - * virtual machine. + * @member {string} [value] The value of the secret for secret creation. */ - createdByUser?: string; + value?: string; /** - * @member {Date} [createdDate] The creation date of the virtual machine. + * @member {string} [provisioningState] The provisioning status of the + * resource. */ - createdDate?: Date; + provisioningState?: string; /** - * @member {string} [computeId] The resource identifier (Microsoft.Compute) - * of the virtual machine. + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). */ - computeId?: string; + uniqueIdentifier?: string; +} + +/** + * @interface + * An interface representing ServiceRunner. + * A container for a managed identity to execute DevTest lab services. + * + * @extends Resource + */ +export interface ServiceRunner extends Resource { /** - * @member {string} [customImageId] The custom image identifier of the - * virtual machine. + * @member {IdentityProperties} [identity] The identity of the resource. */ - customImageId?: string; + identity?: IdentityProperties; +} + +/** + * @interface + * An interface representing ShutdownNotificationContent. + * The contents of a shutdown notification. Webhooks can use this type to + * deserialize the request body when they get notified of an imminent shutdown. + * + */ +export interface ShutdownNotificationContent { /** - * @member {string} [osType] The OS type of the virtual machine. + * @member {string} [skipUrl] The URL to skip auto-shutdown. */ - osType?: string; + skipUrl?: string; /** - * @member {string} [size] The size of the virtual machine. + * @member {string} [delayUrl60] The URL to delay shutdown by 60 minutes. */ - size?: string; + delayUrl60?: string; /** - * @member {string} [userName] The user name of the virtual machine. + * @member {string} [delayUrl120] The URL to delay shutdown by 2 hours. */ - userName?: string; + delayUrl120?: string; /** - * @member {string} [password] The password of the virtual machine - * administrator. + * @member {string} [vmName] The virtual machine to be shut down. */ - password?: string; + vmName?: string; /** - * @member {string} [sshKey] The SSH key of the virtual machine - * administrator. + * @member {string} [guid] The GUID for the virtual machine to be shut down. */ - sshKey?: string; + guid?: string; /** - * @member {boolean} [isAuthenticationWithSshKey] Indicates whether this - * virtual machine uses an SSH key for authentication. + * @member {string} [owner] The owner of the virtual machine. */ - isAuthenticationWithSshKey?: boolean; + owner?: string; /** - * @member {string} [fqdn] The fully-qualified domain name of the virtual - * machine. + * @member {string} [eventType] The event for which a notification will be + * sent. */ - fqdn?: string; + eventType?: string; /** - * @member {string} [labSubnetName] The lab subnet name of the virtual - * machine. + * @member {string} [text] The text for the notification. */ - labSubnetName?: string; + text?: string; /** - * @member {string} [labVirtualNetworkId] The lab virtual network identifier - * of the virtual machine. + * @member {string} [subscriptionId] The subscription ID for the schedule. */ - labVirtualNetworkId?: string; + subscriptionId?: string; /** - * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual - * machine is to be created without a public IP address. + * @member {string} [resourceGroupName] The resource group name for the + * schedule. */ - disallowPublicIpAddress?: boolean; + resourceGroupName?: string; /** - * @member {ArtifactInstallProperties[]} [artifacts] The artifacts to be - * installed on the virtual machine. + * @member {string} [labName] The lab for the schedule. */ - artifacts?: ArtifactInstallProperties[]; + labName?: string; +} + +/** + * @interface + * An interface representing Subnet. + * Subnet information. + * + */ +export interface Subnet { /** - * @member {ArtifactDeploymentStatusProperties} [artifactDeploymentStatus] - * The artifact deployment status for the virtual machine. + * @member {string} [resourceId] The resource ID of the subnet. */ - artifactDeploymentStatus?: ArtifactDeploymentStatusProperties; + resourceId?: string; /** - * @member {GalleryImageReference} [galleryImageReference] The Microsoft - * Azure Marketplace image reference of the virtual machine. + * @member {string} [labSubnetName] The name of the subnet as seen in the + * lab. */ - galleryImageReference?: GalleryImageReference; + labSubnetName?: string; /** - * @member {string} [planId] The id of the plan associated with the virtual - * machine image + * @member {UsagePermissionType} [allowPublicIp] The permission policy of the + * subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible + * values include: 'Default', 'Deny', 'Allow' */ - planId?: string; + allowPublicIp?: UsagePermissionType; +} + +/** + * @interface + * An interface representing SubnetFragment. + * Subnet information. + * + */ +export interface SubnetFragment { /** - * @member {ComputeVmProperties} [computeVm] The compute virtual machine - * properties. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [resourceId] The resource ID of the subnet. */ - readonly computeVm?: ComputeVmProperties; + resourceId?: string; /** - * @member {NetworkInterfaceProperties} [networkInterface] The network - * interface properties. + * @member {string} [labSubnetName] The name of the subnet as seen in the + * lab. */ - networkInterface?: NetworkInterfaceProperties; + labSubnetName?: string; /** - * @member {ApplicableSchedule} [applicableSchedule] The applicable schedule - * for the virtual machine. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {UsagePermissionType} [allowPublicIp] The permission policy of the + * subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible + * values include: 'Default', 'Deny', 'Allow' */ - readonly applicableSchedule?: ApplicableSchedule; + allowPublicIp?: UsagePermissionType; +} + +/** + * @interface + * An interface representing SubnetSharedPublicIpAddressConfiguration. + * Configuration for public IP address sharing. + * + */ +export interface SubnetSharedPublicIpAddressConfiguration { /** - * @member {Date} [expirationDate] The expiration date for VM. + * @member {Port[]} [allowedPorts] Backend ports that virtual machines on + * this subnet are allowed to expose */ - expirationDate?: Date; + allowedPorts?: Port[]; +} + +/** + * @interface + * An interface representing SubnetOverride. + * Property overrides on a subnet of a virtual network. + * + */ +export interface SubnetOverride { /** - * @member {boolean} [allowClaim] Indicates whether another user can take - * ownership of the virtual machine + * @member {string} [resourceId] The resource ID of the subnet. */ - allowClaim?: boolean; + resourceId?: string; /** - * @member {string} [storageType] Storage type to use for virtual machine - * (i.e. Standard, Premium). + * @member {string} [labSubnetName] The name given to the subnet within the + * lab. */ - storageType?: string; + labSubnetName?: string; /** - * @member {VirtualMachineCreationSource} [virtualMachineCreationSource] - * Tells source of creation of lab virtual machine. Output property only. - * Possible values include: 'FromCustomImage', 'FromGalleryImage' + * @member {UsagePermissionType} [useInVmCreationPermission] Indicates + * whether this subnet can be used during virtual machine creation (i.e. + * Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow' */ - virtualMachineCreationSource?: VirtualMachineCreationSource; + useInVmCreationPermission?: UsagePermissionType; /** - * @member {string} [environmentId] The resource ID of the environment that - * contains this virtual machine, if any. + * @member {UsagePermissionType} [usePublicIpAddressPermission] Indicates + * whether public IP addresses can be assigned to virtual machines on this + * subnet (i.e. Allow, Deny). Possible values include: 'Default', 'Deny', + * 'Allow' */ - environmentId?: string; + usePublicIpAddressPermission?: UsagePermissionType; /** - * @member {DataDiskProperties[]} [dataDiskParameters] New or existing data - * disks to attach to the virtual machine after creation + * @member {SubnetSharedPublicIpAddressConfiguration} + * [sharedPublicIpAddressConfiguration] Properties that virtual machines on + * this subnet will share. */ - dataDiskParameters?: DataDiskProperties[]; + sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfiguration; /** - * @member {ScheduleCreationParameter[]} [scheduleParameters] Virtual Machine - * schedules to be created - */ - scheduleParameters?: ScheduleCreationParameter[]; - /** - * @member {string} [lastKnownPowerState] Last known compute power state - * captured in DTL - */ - lastKnownPowerState?: string; - /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; - /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [virtualNetworkPoolName] The virtual network pool + * associated with this subnet. */ - readonly uniqueIdentifier?: string; + virtualNetworkPoolName?: string; } /** * @interface - * An interface representing LabVirtualMachineFragment. - * A virtual machine. + * An interface representing SubnetSharedPublicIpAddressConfigurationFragment. + * Configuration for public IP address sharing. * - * @extends UpdateResource */ -export interface LabVirtualMachineFragment extends UpdateResource { - /** - * @member {string} [notes] The notes of the virtual machine. - */ - notes?: string; - /** - * @member {string} [ownerObjectId] The object identifier of the owner of the - * virtual machine. - */ - ownerObjectId?: string; - /** - * @member {string} [ownerUserPrincipalName] The user principal name of the - * virtual machine owner. - */ - ownerUserPrincipalName?: string; - /** - * @member {string} [createdByUserId] The object identifier of the creator of - * the virtual machine. - */ - createdByUserId?: string; - /** - * @member {string} [createdByUser] The email address of creator of the - * virtual machine. - */ - createdByUser?: string; - /** - * @member {Date} [createdDate] The creation date of the virtual machine. - */ - createdDate?: Date; - /** - * @member {string} [computeId] The resource identifier (Microsoft.Compute) - * of the virtual machine. - */ - computeId?: string; - /** - * @member {string} [customImageId] The custom image identifier of the - * virtual machine. - */ - customImageId?: string; - /** - * @member {string} [osType] The OS type of the virtual machine. - */ - osType?: string; - /** - * @member {string} [size] The size of the virtual machine. - */ - size?: string; - /** - * @member {string} [userName] The user name of the virtual machine. - */ - userName?: string; - /** - * @member {string} [password] The password of the virtual machine - * administrator. - */ - password?: string; - /** - * @member {string} [sshKey] The SSH key of the virtual machine - * administrator. - */ - sshKey?: string; +export interface SubnetSharedPublicIpAddressConfigurationFragment { /** - * @member {boolean} [isAuthenticationWithSshKey] Indicates whether this - * virtual machine uses an SSH key for authentication. + * @member {PortFragment[]} [allowedPorts] Backend ports that virtual + * machines on this subnet are allowed to expose */ - isAuthenticationWithSshKey?: boolean; + allowedPorts?: PortFragment[]; +} + +/** + * @interface + * An interface representing SubnetOverrideFragment. + * Property overrides on a subnet of a virtual network. + * + */ +export interface SubnetOverrideFragment { /** - * @member {string} [fqdn] The fully-qualified domain name of the virtual - * machine. + * @member {string} [resourceId] The resource ID of the subnet. */ - fqdn?: string; + resourceId?: string; /** - * @member {string} [labSubnetName] The lab subnet name of the virtual - * machine. + * @member {string} [labSubnetName] The name given to the subnet within the + * lab. */ labSubnetName?: string; /** - * @member {string} [labVirtualNetworkId] The lab virtual network identifier - * of the virtual machine. - */ - labVirtualNetworkId?: string; - /** - * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual - * machine is to be created without a public IP address. - */ - disallowPublicIpAddress?: boolean; - /** - * @member {ArtifactInstallPropertiesFragment[]} [artifacts] The artifacts to - * be installed on the virtual machine. - */ - artifacts?: ArtifactInstallPropertiesFragment[]; - /** - * @member {ArtifactDeploymentStatusPropertiesFragment} - * [artifactDeploymentStatus] The artifact deployment status for the virtual - * machine. - */ - artifactDeploymentStatus?: ArtifactDeploymentStatusPropertiesFragment; - /** - * @member {GalleryImageReferenceFragment} [galleryImageReference] The - * Microsoft Azure Marketplace image reference of the virtual machine. + * @member {UsagePermissionType} [useInVmCreationPermission] Indicates + * whether this subnet can be used during virtual machine creation (i.e. + * Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow' */ - galleryImageReference?: GalleryImageReferenceFragment; + useInVmCreationPermission?: UsagePermissionType; /** - * @member {string} [planId] The id of the plan associated with the virtual - * machine image + * @member {UsagePermissionType} [usePublicIpAddressPermission] Indicates + * whether public IP addresses can be assigned to virtual machines on this + * subnet (i.e. Allow, Deny). Possible values include: 'Default', 'Deny', + * 'Allow' */ - planId?: string; + usePublicIpAddressPermission?: UsagePermissionType; /** - * @member {NetworkInterfacePropertiesFragment} [networkInterface] The - * network interface properties. + * @member {SubnetSharedPublicIpAddressConfigurationFragment} + * [sharedPublicIpAddressConfiguration] Properties that virtual machines on + * this subnet will share. */ - networkInterface?: NetworkInterfacePropertiesFragment; + sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfigurationFragment; /** - * @member {Date} [expirationDate] The expiration date for VM. + * @member {string} [virtualNetworkPoolName] The virtual network pool + * associated with this subnet. */ - expirationDate?: Date; + virtualNetworkPoolName?: string; +} + +/** + * @interface + * An interface representing UserIdentity. + * Identity attributes of a lab user. + * + */ +export interface UserIdentity { /** - * @member {boolean} [allowClaim] Indicates whether another user can take - * ownership of the virtual machine + * @member {string} [principalName] Set to the principal name / UPN of the + * client JWT making the request. */ - allowClaim?: boolean; + principalName?: string; /** - * @member {string} [storageType] Storage type to use for virtual machine - * (i.e. Standard, Premium). + * @member {string} [principalId] Set to the principal Id of the client JWT + * making the request. Service principal will not have the principal Id. */ - storageType?: string; + principalId?: string; /** - * @member {VirtualMachineCreationSource} [virtualMachineCreationSource] - * Tells source of creation of lab virtual machine. Output property only. - * Possible values include: 'FromCustomImage', 'FromGalleryImage' + * @member {string} [tenantId] Set to the tenant ID of the client JWT making + * the request. */ - virtualMachineCreationSource?: VirtualMachineCreationSource; + tenantId?: string; /** - * @member {string} [environmentId] The resource ID of the environment that - * contains this virtual machine, if any. + * @member {string} [objectId] Set to the object Id of the client JWT making + * the request. Not all users have object Id. For CSP (reseller) scenarios + * for example, object Id is not available. */ - environmentId?: string; + objectId?: string; /** - * @member {DataDiskPropertiesFragment[]} [dataDiskParameters] New or - * existing data disks to attach to the virtual machine after creation + * @member {string} [appId] Set to the app Id of the client JWT making the + * request. */ - dataDiskParameters?: DataDiskPropertiesFragment[]; + appId?: string; +} + +/** + * @interface + * An interface representing UserSecretStore. + * Properties of a user's secret store. + * + */ +export interface UserSecretStore { /** - * @member {ScheduleCreationParameterFragment[]} [scheduleParameters] Virtual - * Machine schedules to be created + * @member {string} [keyVaultUri] The URI of the user's Key vault. */ - scheduleParameters?: ScheduleCreationParameterFragment[]; + keyVaultUri?: string; /** - * @member {string} [lastKnownPowerState] Last known compute power state - * captured in DTL + * @member {string} [keyVaultId] The ID of the user's Key vault. */ - lastKnownPowerState?: string; + keyVaultId?: string; } /** * @interface - * An interface representing NotificationChannel. - * A notification. + * An interface representing User. + * Profile of a lab user. * * @extends Resource */ -export interface NotificationChannel extends Resource { - /** - * @member {string} [webHookUrl] The webhook URL to send notifications to. - */ - webHookUrl?: string; - /** - * @member {string} [emailRecipient] The email recipient to send - * notifications to (can be a list of semi-colon seperated email addresses). - */ - emailRecipient?: string; - /** - * @member {string} [notificationLocale] The locale to use when sending a - * notification (fallback for unsupported languages is EN). - */ - notificationLocale?: string; +export interface User extends Resource { /** - * @member {string} [description] Description of notification. + * @member {UserIdentity} [identity] The identity of the user. */ - description?: string; + identity?: UserIdentity; /** - * @member {Event[]} [events] The list of event for which this notification - * is enabled. + * @member {UserSecretStore} [secretStore] The secret store of the user. */ - events?: Event[]; + secretStore?: UserSecretStore; /** - * @member {Date} [createdDate] The creation date of the notification - * channel. + * @member {Date} [createdDate] The creation date of the user profile. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -3904,2988 +3471,1767 @@ export interface NotificationChannel extends Resource { /** * @member {string} [provisioningState] The provisioning status of the * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly provisioningState?: string; + provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly uniqueIdentifier?: string; + uniqueIdentifier?: string; } /** * @interface - * An interface representing NotificationChannelFragment. - * A notification. + * An interface representing UserIdentityFragment. + * Identity attributes of a lab user. * - * @extends UpdateResource */ -export interface NotificationChannelFragment extends UpdateResource { +export interface UserIdentityFragment { /** - * @member {string} [webHookUrl] The webhook URL to send notifications to. + * @member {string} [principalName] Set to the principal name / UPN of the + * client JWT making the request. */ - webHookUrl?: string; + principalName?: string; /** - * @member {string} [emailRecipient] The email recipient to send - * notifications to (can be a list of semi-colon seperated email addresses). + * @member {string} [principalId] Set to the principal Id of the client JWT + * making the request. Service principal will not have the principal Id. */ - emailRecipient?: string; + principalId?: string; /** - * @member {string} [notificationLocale] The locale to use when sending a - * notification (fallback for unsupported languages is EN). + * @member {string} [tenantId] Set to the tenant ID of the client JWT making + * the request. */ - notificationLocale?: string; + tenantId?: string; /** - * @member {string} [description] Description of notification. + * @member {string} [objectId] Set to the object Id of the client JWT making + * the request. Not all users have object Id. For CSP (reseller) scenarios + * for example, object Id is not available. */ - description?: string; + objectId?: string; /** - * @member {EventFragment[]} [events] The list of event for which this - * notification is enabled. - */ - events?: EventFragment[]; + * @member {string} [appId] Set to the app Id of the client JWT making the + * request. + */ + appId?: string; } /** * @interface - * An interface representing NotifyParameters. - * Properties for generating a Notification. + * An interface representing UserSecretStoreFragment. + * Properties of a user's secret store. * */ -export interface NotifyParameters { +export interface UserSecretStoreFragment { /** - * @member {NotificationChannelEventType} [eventName] The type of event (i.e. - * AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost' + * @member {string} [keyVaultUri] The URI of the user's Key vault. */ - eventName?: NotificationChannelEventType; + keyVaultUri?: string; /** - * @member {string} [jsonPayload] Properties for the notification in json - * format. + * @member {string} [keyVaultId] The ID of the user's Key vault. */ - jsonPayload?: string; + keyVaultId?: string; } /** * @interface - * An interface representing OperationError. - * Error details for the operation in case of a failure. + * An interface representing UserFragment. + * Profile of a lab user. * + * @extends Resource */ -export interface OperationError { +export interface UserFragment extends Resource { /** - * @member {string} [code] The error code of the operation error. + * @member {UserIdentityFragment} [identity] The identity of the user. */ - code?: string; + identity?: UserIdentityFragment; /** - * @member {string} [message] The error message of the operation error. + * @member {UserSecretStoreFragment} [secretStore] The secret store of the + * user. */ - message?: string; + secretStore?: UserSecretStoreFragment; + /** + * @member {string} [provisioningState] The provisioning status of the + * resource. + */ + provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + */ + uniqueIdentifier?: string; } /** * @interface - * An interface representing OperationMetadataDisplay. - * The object that describes the operations + * An interface representing VirtualNetwork. + * A virtual network. * + * @extends Resource */ -export interface OperationMetadataDisplay { - /** - * @member {string} [provider] Friendly name of the resource provider - */ - provider?: string; +export interface VirtualNetwork extends Resource { /** - * @member {string} [resource] Resource type on which the operation is - * performed. + * @member {Subnet[]} [allowedSubnets] The allowed subnets of the virtual + * network. */ - resource?: string; + allowedSubnets?: Subnet[]; /** - * @member {string} [operation] Operation type: read, write, delete, - * listKeys/action, etc. + * @member {string} [description] The description of the virtual network. */ - operation?: string; + description?: string; /** - * @member {string} [description] Friendly name of the operation + * @member {string} [externalProviderResourceId] The Microsoft.Network + * resource identifier of the virtual network. */ - description?: string; -} - -/** - * @interface - * An interface representing OperationMetadata. - * The REST API operation supported by DevTestLab ResourceProvider. - * - */ -export interface OperationMetadata { + externalProviderResourceId?: string; /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * @member {ExternalSubnet[]} [externalSubnets] The external subnet + * properties. */ - name?: string; + externalSubnets?: ExternalSubnet[]; /** - * @member {OperationMetadataDisplay} [display] The object that describes the - * operations + * @member {SubnetOverride[]} [subnetOverrides] The subnet overrides of the + * virtual network. */ - display?: OperationMetadataDisplay; -} - -/** - * @interface - * An interface representing OperationResult. - * An Operation Result - * - */ -export interface OperationResult { + subnetOverrides?: SubnetOverride[]; /** - * @member {string} [status] The operation status. + * @member {Date} [createdDate] The creation date of the virtual network. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - status?: string; + readonly createdDate?: Date; /** - * @member {HttpStatusCode} [statusCode] The status code for the operation. - * Possible values include: 'Continue', 'SwitchingProtocols', 'OK', - * 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', - * 'ResetContent', 'PartialContent', 'MultipleChoices', 'MovedPermanently', - * 'Redirect', 'SeeOther', 'NotModified', 'UseProxy', 'Unused', - * 'TemporaryRedirect', 'BadRequest', 'Unauthorized', 'PaymentRequired', - * 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', - * 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone', - * 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge', - * 'RequestUriTooLong', 'UnsupportedMediaType', - * 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', - * 'InternalServerError', 'NotImplemented', 'BadGateway', - * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' + * @member {string} [provisioningState] The provisioning status of the + * resource. */ - statusCode?: HttpStatusCode; + provisioningState?: string; /** - * @member {OperationError} [error] Error details for the operation in case - * of a failure. + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). */ - error?: OperationError; + uniqueIdentifier?: string; } /** * @interface - * An interface representing Policy. - * A Policy. + * An interface representing VirtualNetworkFragment. + * A virtual network. * * @extends Resource */ -export interface Policy extends Resource { - /** - * @member {string} [description] The description of the policy. - */ - description?: string; - /** - * @member {PolicyStatus} [status] The status of the policy. Possible values - * include: 'Enabled', 'Disabled' - */ - status?: PolicyStatus; +export interface VirtualNetworkFragment extends Resource { /** - * @member {PolicyFactName} [factName] The fact name of the policy (e.g. - * LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: - * 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', - * 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', - * 'UserOwnedLabVmCountInSubnet', 'LabTargetCost', 'EnvironmentTemplate', - * 'ScheduleEditPermission' + * @member {SubnetFragment[]} [allowedSubnets] The allowed subnets of the + * virtual network. */ - factName?: PolicyFactName; + allowedSubnets?: SubnetFragment[]; /** - * @member {string} [factData] The fact data of the policy. + * @member {string} [description] The description of the virtual network. */ - factData?: string; + description?: string; /** - * @member {string} [threshold] The threshold of the policy (i.e. a number - * for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). + * @member {string} [externalProviderResourceId] The Microsoft.Network + * resource identifier of the virtual network. */ - threshold?: string; + externalProviderResourceId?: string; /** - * @member {PolicyEvaluatorType} [evaluatorType] The evaluator type of the - * policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values - * include: 'AllowedValuesPolicy', 'MaxValuePolicy' + * @member {ExternalSubnetFragment[]} [externalSubnets] The external subnet + * properties. */ - evaluatorType?: PolicyEvaluatorType; + externalSubnets?: ExternalSubnetFragment[]; /** - * @member {Date} [createdDate] The creation date of the policy. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {SubnetOverrideFragment[]} [subnetOverrides] The subnet overrides + * of the virtual network. */ - readonly createdDate?: Date; + subnetOverrides?: SubnetOverrideFragment[]; /** * @member {string} [provisioningState] The provisioning status of the * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly provisioningState?: string; + provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly uniqueIdentifier?: string; + uniqueIdentifier?: string; } /** * @interface - * An interface representing PolicyFragment. - * A Policy. + * An interface representing LabsListBySubscriptionOptionalParams. + * Optional Parameters. * - * @extends UpdateResource + * @extends RequestOptionsBase */ -export interface PolicyFragment extends UpdateResource { - /** - * @member {string} [description] The description of the policy. - */ - description?: string; - /** - * @member {PolicyStatus} [status] The status of the policy. Possible values - * include: 'Enabled', 'Disabled' - */ - status?: PolicyStatus; +export interface LabsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * @member {PolicyFactName} [factName] The fact name of the policy (e.g. - * LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: - * 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', - * 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', - * 'UserOwnedLabVmCountInSubnet', 'LabTargetCost', 'EnvironmentTemplate', - * 'ScheduleEditPermission' + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=defaultStorageAccount)' */ - factName?: PolicyFactName; + expand?: string; /** - * @member {string} [factData] The fact data of the policy. + * @member {string} [filter] The filter to apply to the operation. */ - factData?: string; + filter?: string; /** - * @member {string} [threshold] The threshold of the policy (i.e. a number - * for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - threshold?: string; + top?: number; /** - * @member {PolicyEvaluatorType} [evaluatorType] The evaluator type of the - * policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values - * include: 'AllowedValuesPolicy', 'MaxValuePolicy' + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. */ - evaluatorType?: PolicyEvaluatorType; + orderby?: string; } /** * @interface - * An interface representing Port. - * Properties of a network port. + * An interface representing LabsListByResourceGroupOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface Port { +export interface LabsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {TransportProtocol} [transportProtocol] Protocol type of the port. - * Possible values include: 'Tcp', 'Udp' + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=defaultStorageAccount)' */ - transportProtocol?: TransportProtocol; + expand?: string; /** - * @member {number} [backendPort] Backend port of the target virtual machine. + * @member {string} [filter] The filter to apply to the operation. */ - backendPort?: number; -} - -/** - * @interface - * An interface representing PortFragment. - * Properties of a network port. - * - */ -export interface PortFragment { + filter?: string; /** - * @member {TransportProtocol} [transportProtocol] Protocol type of the port. - * Possible values include: 'Tcp', 'Udp' + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - transportProtocol?: TransportProtocol; + top?: number; /** - * @member {number} [backendPort] Backend port of the target virtual machine. + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. */ - backendPort?: number; + orderby?: string; } /** * @interface - * An interface representing RdpConnection. - * Represents a .rdp file + * An interface representing LabsGetOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface RdpConnection { +export interface LabsGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [contents] The contents of the .rdp file + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=defaultStorageAccount)' */ - contents?: string; + expand?: string; } /** * @interface - * An interface representing ResizeLabVirtualMachineProperties. - * Request body for resizing a virtual machine. + * An interface representing GlobalSchedulesListBySubscriptionOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface ResizeLabVirtualMachineProperties { +export interface GlobalSchedulesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [size] Specifies the size of the virtual machine. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' */ - size?: string; -} - -/** - * @interface - * An interface representing RetargetScheduleProperties. - * Properties for retargeting a virtual machine schedule. - * - */ -export interface RetargetScheduleProperties { + expand?: string; /** - * @member {string} [currentResourceId] The resource Id of the virtual - * machine on which the schedule operates + * @member {string} [filter] The filter to apply to the operation. */ - currentResourceId?: string; + filter?: string; /** - * @member {string} [targetResourceId] The resource Id of the virtual machine - * that the schedule should be retargeted to + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - targetResourceId?: string; + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. + */ + orderby?: string; } /** * @interface - * An interface representing Secret. - * A secret. + * An interface representing GlobalSchedulesListByResourceGroupOptionalParams. + * Optional Parameters. * - * @extends Resource + * @extends RequestOptionsBase */ -export interface Secret extends Resource { +export interface GlobalSchedulesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [value] The value of the secret for secret creation. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' */ - value?: string; + expand?: string; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [filter] The filter to apply to the operation. */ - readonly provisioningState?: string; + filter?: string; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {number} [top] The maximum number of resources to return from the + * operation. + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. */ - readonly uniqueIdentifier?: string; + orderby?: string; } /** * @interface - * An interface representing SecretFragment. - * A secret. + * An interface representing GlobalSchedulesGetOptionalParams. + * Optional Parameters. * - * @extends UpdateResource + * @extends RequestOptionsBase */ -export interface SecretFragment extends UpdateResource { +export interface GlobalSchedulesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [value] The value of the secret for secret creation. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' */ - value?: string; + expand?: string; } /** * @interface - * An interface representing ServiceFabric. - * A Service Fabric. + * An interface representing ArtifactSourcesListOptionalParams. + * Optional Parameters. * - * @extends Resource + * @extends RequestOptionsBase */ -export interface ServiceFabric extends Resource { +export interface ArtifactSourcesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [externalServiceFabricId] The backing service fabric - * resource's id + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=displayName)' */ - externalServiceFabricId?: string; + expand?: string; /** - * @member {string} [environmentId] The resource id of the environment under - * which the service fabric resource is present + * @member {string} [filter] The filter to apply to the operation. */ - environmentId?: string; + filter?: string; /** - * @member {ApplicableSchedule} [applicableSchedule] The applicable schedule - * for the virtual machine. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - readonly applicableSchedule?: ApplicableSchedule; + top?: number; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. */ - readonly provisioningState?: string; + orderby?: string; +} + +/** + * @interface + * An interface representing ArtifactSourcesGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ArtifactSourcesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=displayName)' */ - readonly uniqueIdentifier?: string; + expand?: string; } /** * @interface - * An interface representing ServiceFabricFragment. - * A Service Fabric. + * An interface representing ArmTemplatesListOptionalParams. + * Optional Parameters. * - * @extends UpdateResource + * @extends RequestOptionsBase */ -export interface ServiceFabricFragment extends UpdateResource { +export interface ArmTemplatesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [externalServiceFabricId] The backing service fabric - * resource's id + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=displayName)' */ - externalServiceFabricId?: string; + expand?: string; /** - * @member {string} [environmentId] The resource id of the environment under - * which the service fabric resource is present + * @member {string} [filter] The filter to apply to the operation. */ - environmentId?: string; + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. + */ + orderby?: string; } /** * @interface - * An interface representing ServiceRunner. - * A container for a managed identity to execute DevTest lab services. + * An interface representing ArmTemplatesGetOptionalParams. + * Optional Parameters. * - * @extends Resource + * @extends RequestOptionsBase */ -export interface ServiceRunner extends Resource { +export interface ArmTemplatesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {IdentityProperties} [identity] The identity of the resource. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=displayName)' */ - identity?: IdentityProperties; + expand?: string; } /** * @interface - * An interface representing ShutdownNotificationContent. - * The contents of a shutdown notification. Webhooks can use this type to - * deserialize the request body when they get notified of an imminent shutdown. + * An interface representing ArtifactsListOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface ShutdownNotificationContent { - /** - * @member {string} [skipUrl] The URL to skip auto-shutdown. - */ - skipUrl?: string; - /** - * @member {string} [delayUrl60] The URL to delay shutdown by 60 minutes. - */ - delayUrl60?: string; - /** - * @member {string} [delayUrl120] The URL to delay shutdown by 2 hours. - */ - delayUrl120?: string; - /** - * @member {string} [vmName] The virtual machine to be shut down. - */ - vmName?: string; - /** - * @member {string} [guid] The GUID for the virtual machine to be shut down. - */ - guid?: string; - /** - * @member {string} [owner] The owner of the virtual machine. - */ - owner?: string; - /** - * @member {string} [vmUrl] The URL of the virtual machine. - */ - vmUrl?: string; - /** - * @member {string} [minutesUntilShutdown] Minutes remaining until shutdown - */ - minutesUntilShutdown?: string; - /** - * @member {string} [eventType] The event for which a notification will be - * sent. - */ - eventType?: string; +export interface ArtifactsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [text] The text for the notification. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=title)' */ - text?: string; + expand?: string; /** - * @member {string} [subscriptionId] The subscription ID for the schedule. + * @member {string} [filter] The filter to apply to the operation. */ - subscriptionId?: string; + filter?: string; /** - * @member {string} [resourceGroupName] The resource group name for the - * schedule. + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - resourceGroupName?: string; + top?: number; /** - * @member {string} [labName] The lab for the schedule. + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. */ - labName?: string; + orderby?: string; } /** * @interface - * An interface representing Subnet. - * Subnet information. + * An interface representing ArtifactsGetOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface Subnet { - /** - * @member {string} [resourceId] The resource ID of the subnet. - */ - resourceId?: string; +export interface ArtifactsGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [labSubnetName] The name of the subnet as seen in the - * lab. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=title)' */ - labSubnetName?: string; + expand?: string; +} + +/** + * @interface + * An interface representing CostsGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CostsGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {UsagePermissionType} [allowPublicIp] The permission policy of the - * subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible - * values include: 'Default', 'Deny', 'Allow' + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($expand=labCostDetails)' */ - allowPublicIp?: UsagePermissionType; + expand?: string; } /** * @interface - * An interface representing SubnetFragment. - * Subnet information. + * An interface representing CustomImagesListOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface SubnetFragment { +export interface CustomImagesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [resourceId] The resource ID of the subnet. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=vm)' */ - resourceId?: string; + expand?: string; /** - * @member {string} [labSubnetName] The name of the subnet as seen in the - * lab. + * @member {string} [filter] The filter to apply to the operation. */ - labSubnetName?: string; + filter?: string; /** - * @member {UsagePermissionType} [allowPublicIp] The permission policy of the - * subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible - * values include: 'Default', 'Deny', 'Allow' + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - allowPublicIp?: UsagePermissionType; + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. + */ + orderby?: string; } /** * @interface - * An interface representing SubnetSharedPublicIpAddressConfiguration. - * Configuration for public IP address sharing. + * An interface representing CustomImagesGetOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface SubnetSharedPublicIpAddressConfiguration { +export interface CustomImagesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {Port[]} [allowedPorts] Backend ports that virtual machines on - * this subnet are allowed to expose + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=vm)' */ - allowedPorts?: Port[]; + expand?: string; } /** * @interface - * An interface representing SubnetOverride. - * Property overrides on a subnet of a virtual network. + * An interface representing FormulasListOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface SubnetOverride { - /** - * @member {string} [resourceId] The resource ID of the subnet. - */ - resourceId?: string; - /** - * @member {string} [labSubnetName] The name given to the subnet within the - * lab. - */ - labSubnetName?: string; +export interface FormulasListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {UsagePermissionType} [useInVmCreationPermission] Indicates - * whether this subnet can be used during virtual machine creation (i.e. - * Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow' + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=description)' */ - useInVmCreationPermission?: UsagePermissionType; + expand?: string; /** - * @member {UsagePermissionType} [usePublicIpAddressPermission] Indicates - * whether public IP addresses can be assigned to virtual machines on this - * subnet (i.e. Allow, Deny). Possible values include: 'Default', 'Deny', - * 'Allow' + * @member {string} [filter] The filter to apply to the operation. */ - usePublicIpAddressPermission?: UsagePermissionType; + filter?: string; /** - * @member {SubnetSharedPublicIpAddressConfiguration} - * [sharedPublicIpAddressConfiguration] Properties that virtual machines on - * this subnet will share. + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfiguration; + top?: number; /** - * @member {string} [virtualNetworkPoolName] The virtual network pool - * associated with this subnet. + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. */ - virtualNetworkPoolName?: string; + orderby?: string; } /** * @interface - * An interface representing SubnetSharedPublicIpAddressConfigurationFragment. - * Configuration for public IP address sharing. + * An interface representing FormulasGetOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface SubnetSharedPublicIpAddressConfigurationFragment { +export interface FormulasGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {PortFragment[]} [allowedPorts] Backend ports that virtual - * machines on this subnet are allowed to expose + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=description)' */ - allowedPorts?: PortFragment[]; + expand?: string; } /** * @interface - * An interface representing SubnetOverrideFragment. - * Property overrides on a subnet of a virtual network. + * An interface representing GalleryImagesListOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface SubnetOverrideFragment { - /** - * @member {string} [resourceId] The resource ID of the subnet. - */ - resourceId?: string; - /** - * @member {string} [labSubnetName] The name given to the subnet within the - * lab. - */ - labSubnetName?: string; +export interface GalleryImagesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {UsagePermissionType} [useInVmCreationPermission] Indicates - * whether this subnet can be used during virtual machine creation (i.e. - * Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow' + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=author)' */ - useInVmCreationPermission?: UsagePermissionType; + expand?: string; /** - * @member {UsagePermissionType} [usePublicIpAddressPermission] Indicates - * whether public IP addresses can be assigned to virtual machines on this - * subnet (i.e. Allow, Deny). Possible values include: 'Default', 'Deny', - * 'Allow' + * @member {string} [filter] The filter to apply to the operation. */ - usePublicIpAddressPermission?: UsagePermissionType; + filter?: string; /** - * @member {SubnetSharedPublicIpAddressConfigurationFragment} - * [sharedPublicIpAddressConfiguration] Properties that virtual machines on - * this subnet will share. + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfigurationFragment; + top?: number; /** - * @member {string} [virtualNetworkPoolName] The virtual network pool - * associated with this subnet. + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. */ - virtualNetworkPoolName?: string; + orderby?: string; } /** * @interface - * An interface representing UserIdentity. - * Identity attributes of a lab user. + * An interface representing NotificationChannelsListOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface UserIdentity { - /** - * @member {string} [principalName] Set to the principal name / UPN of the - * client JWT making the request. - */ - principalName?: string; +export interface NotificationChannelsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [principalId] Set to the principal Id of the client JWT - * making the request. Service principal will not have the principal Id. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=webHookUrl)' */ - principalId?: string; + expand?: string; /** - * @member {string} [tenantId] Set to the tenant ID of the client JWT making - * the request. + * @member {string} [filter] The filter to apply to the operation. */ - tenantId?: string; + filter?: string; /** - * @member {string} [objectId] Set to the object Id of the client JWT making - * the request. Not all users have object Id. For CSP (reseller) scenarios - * for example, object Id is not available. + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - objectId?: string; + top?: number; /** - * @member {string} [appId] Set to the app Id of the client JWT making the - * request. + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. */ - appId?: string; + orderby?: string; } /** * @interface - * An interface representing UserSecretStore. - * Properties of a user's secret store. + * An interface representing NotificationChannelsGetOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface UserSecretStore { - /** - * @member {string} [keyVaultUri] The URI of the user's Key vault. - */ - keyVaultUri?: string; +export interface NotificationChannelsGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [keyVaultId] The ID of the user's Key vault. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=webHookUrl)' */ - keyVaultId?: string; + expand?: string; } /** * @interface - * An interface representing User. - * Profile of a lab user. + * An interface representing PoliciesListOptionalParams. + * Optional Parameters. * - * @extends Resource + * @extends RequestOptionsBase */ -export interface User extends Resource { - /** - * @member {UserIdentity} [identity] The identity of the user. - */ - identity?: UserIdentity; +export interface PoliciesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {UserSecretStore} [secretStore] The secret store of the user. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=description)' */ - secretStore?: UserSecretStore; + expand?: string; /** - * @member {Date} [createdDate] The creation date of the user profile. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [filter] The filter to apply to the operation. */ - readonly createdDate?: Date; + filter?: string; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - readonly provisioningState?: string; + top?: number; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. */ - readonly uniqueIdentifier?: string; + orderby?: string; } /** * @interface - * An interface representing UserIdentityFragment. - * Identity attributes of a lab user. + * An interface representing PoliciesGetOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface UserIdentityFragment { +export interface PoliciesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [principalName] Set to the principal name / UPN of the - * client JWT making the request. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=description)' */ - principalName?: string; + expand?: string; +} + +/** + * @interface + * An interface representing SchedulesListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SchedulesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [principalId] Set to the principal Id of the client JWT - * making the request. Service principal will not have the principal Id. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' */ - principalId?: string; + expand?: string; /** - * @member {string} [tenantId] Set to the tenant ID of the client JWT making - * the request. + * @member {string} [filter] The filter to apply to the operation. */ - tenantId?: string; + filter?: string; /** - * @member {string} [objectId] Set to the object Id of the client JWT making - * the request. Not all users have object Id. For CSP (reseller) scenarios - * for example, object Id is not available. + * @member {number} [top] The maximum number of resources to return from the + * operation. */ - objectId?: string; + top?: number; /** - * @member {string} [appId] Set to the app Id of the client JWT making the - * request. + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. */ - appId?: string; + orderby?: string; } /** * @interface - * An interface representing UserSecretStoreFragment. - * Properties of a user's secret store. + * An interface representing SchedulesGetOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface UserSecretStoreFragment { - /** - * @member {string} [keyVaultUri] The URI of the user's Key vault. - */ - keyVaultUri?: string; +export interface SchedulesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [keyVaultId] The ID of the user's Key vault. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' */ - keyVaultId?: string; + expand?: string; } /** * @interface - * An interface representing UserFragment. - * Profile of a lab user. + * An interface representing ServiceRunnersListOptionalParams. + * Optional Parameters. * - * @extends UpdateResource + * @extends RequestOptionsBase */ -export interface UserFragment extends UpdateResource { +export interface ServiceRunnersListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {UserIdentityFragment} [identity] The identity of the user. + * @member {string} [filter] The filter to apply to the operation. */ - identity?: UserIdentityFragment; + filter?: string; /** - * @member {UserSecretStoreFragment} [secretStore] The secret store of the - * user. - */ - secretStore?: UserSecretStoreFragment; -} - -/** - * @interface - * An interface representing VirtualNetwork. - * A virtual network. - * - * @extends Resource - */ -export interface VirtualNetwork extends Resource { - /** - * @member {Subnet[]} [allowedSubnets] The allowed subnets of the virtual - * network. - */ - allowedSubnets?: Subnet[]; - /** - * @member {string} [description] The description of the virtual network. - */ - description?: string; - /** - * @member {string} [externalProviderResourceId] The Microsoft.Network - * resource identifier of the virtual network. - */ - externalProviderResourceId?: string; - /** - * @member {ExternalSubnet[]} [externalSubnets] The external subnet - * properties. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly externalSubnets?: ExternalSubnet[]; - /** - * @member {SubnetOverride[]} [subnetOverrides] The subnet overrides of the - * virtual network. - */ - subnetOverrides?: SubnetOverride[]; - /** - * @member {Date} [createdDate] The creation date of the virtual network. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly createdDate?: Date; - /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; - /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly uniqueIdentifier?: string; -} - -/** - * @interface - * An interface representing VirtualNetworkFragment. - * A virtual network. - * - * @extends UpdateResource - */ -export interface VirtualNetworkFragment extends UpdateResource { - /** - * @member {SubnetFragment[]} [allowedSubnets] The allowed subnets of the - * virtual network. - */ - allowedSubnets?: SubnetFragment[]; - /** - * @member {string} [description] The description of the virtual network. - */ - description?: string; - /** - * @member {string} [externalProviderResourceId] The Microsoft.Network - * resource identifier of the virtual network. - */ - externalProviderResourceId?: string; - /** - * @member {SubnetOverrideFragment[]} [subnetOverrides] The subnet overrides - * of the virtual network. - */ - subnetOverrides?: SubnetOverrideFragment[]; -} - -/** - * @interface - * An interface representing LabsListBySubscriptionOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface LabsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=defaultStorageAccount)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' + * @member {number} [top] The maximum number of resources to return from the + * operation. */ top?: number; /** * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * OData notation. */ orderby?: string; } /** * @interface - * An interface representing LabsListByResourceGroupOptionalParams. + * An interface representing UsersListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface LabsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface UsersListOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=defaultStorageAccount)' + * 'properties($select=identity)' */ expand?: string; /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') + * @member {string} [filter] The filter to apply to the operation. */ filter?: string; /** * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' + * operation. */ top?: number; /** * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * OData notation. */ orderby?: string; } /** * @interface - * An interface representing LabsGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface LabsGetOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=defaultStorageAccount)' - */ - expand?: string; -} - -/** - * @interface - * An interface representing GlobalSchedulesListBySubscriptionOptionalParams. + * An interface representing UsersGetOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface GlobalSchedulesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface UsersGetOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * 'properties($select=identity)' */ expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; - /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' - */ - orderby?: string; } /** * @interface - * An interface representing GlobalSchedulesListByResourceGroupOptionalParams. + * An interface representing DisksListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface GlobalSchedulesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface DisksListOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * 'properties($select=diskType)' */ expand?: string; /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') + * @member {string} [filter] The filter to apply to the operation. */ filter?: string; /** * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' + * operation. */ top?: number; /** * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * OData notation. */ orderby?: string; } /** * @interface - * An interface representing GlobalSchedulesGetOptionalParams. + * An interface representing DisksGetOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface GlobalSchedulesGetOptionalParams extends msRest.RequestOptionsBase { +export interface DisksGetOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * 'properties($select=diskType)' */ expand?: string; } /** * @interface - * An interface representing ArtifactSourcesListOptionalParams. + * An interface representing EnvironmentsListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ArtifactSourcesListOptionalParams extends msRest.RequestOptionsBase { +export interface EnvironmentsListOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=displayName)' + * 'properties($select=deploymentProperties)' */ expand?: string; /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') + * @member {string} [filter] The filter to apply to the operation. */ filter?: string; /** * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' + * operation. */ top?: number; /** * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * OData notation. */ orderby?: string; } /** * @interface - * An interface representing ArtifactSourcesGetOptionalParams. + * An interface representing EnvironmentsGetOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ArtifactSourcesGetOptionalParams extends msRest.RequestOptionsBase { +export interface EnvironmentsGetOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=displayName)' + * 'properties($select=deploymentProperties)' */ expand?: string; } /** * @interface - * An interface representing ArmTemplatesListOptionalParams. + * An interface representing SecretsListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ArmTemplatesListOptionalParams extends msRest.RequestOptionsBase { +export interface SecretsListOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=displayName)' + * 'properties($select=value)' */ expand?: string; /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') + * @member {string} [filter] The filter to apply to the operation. */ filter?: string; /** * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' + * operation. */ top?: number; /** * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * OData notation. */ orderby?: string; } /** * @interface - * An interface representing ArmTemplatesGetOptionalParams. + * An interface representing SecretsGetOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ArmTemplatesGetOptionalParams extends msRest.RequestOptionsBase { +export interface SecretsGetOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=displayName)' + * 'properties($select=value)' */ expand?: string; } /** * @interface - * An interface representing ArtifactsListOptionalParams. + * An interface representing VirtualMachinesListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ArtifactsListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesListOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=title)' + * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' */ expand?: string; /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') + * @member {string} [filter] The filter to apply to the operation. */ filter?: string; /** * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' + * operation. */ top?: number; /** * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * OData notation. */ orderby?: string; } /** * @interface - * An interface representing ArtifactsGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface ArtifactsGetOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=title)' - */ - expand?: string; -} - -/** - * @interface - * An interface representing CostsGetOptionalParams. + * An interface representing VirtualMachinesGetOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface CostsGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=labCostDetails)' + * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' */ expand?: string; } /** * @interface - * An interface representing CustomImagesListOptionalParams. + * An interface representing VirtualMachineSchedulesListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface CustomImagesListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineSchedulesListOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=vm)' + * 'properties($select=status)' */ expand?: string; /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') + * @member {string} [filter] The filter to apply to the operation. */ filter?: string; /** * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' + * operation. */ top?: number; /** * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * OData notation. */ orderby?: string; } /** * @interface - * An interface representing CustomImagesGetOptionalParams. + * An interface representing VirtualMachineSchedulesGetOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface CustomImagesGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachineSchedulesGetOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=vm)' + * 'properties($select=status)' */ expand?: string; } /** * @interface - * An interface representing FormulasListOptionalParams. + * An interface representing VirtualNetworksListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface FormulasListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualNetworksListOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=description)' + * 'properties($expand=externalSubnets)' */ expand?: string; /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') + * @member {string} [filter] The filter to apply to the operation. */ filter?: string; /** * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' + * operation. */ top?: number; /** * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * OData notation. */ orderby?: string; } /** * @interface - * An interface representing FormulasGetOptionalParams. + * An interface representing VirtualNetworksGetOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface FormulasGetOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualNetworksGetOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=description)' + * 'properties($expand=externalSubnets)' */ expand?: string; } /** * @interface - * An interface representing GalleryImagesListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * An interface representing DevTestLabsClientOptions. + * @extends AzureServiceClientOptions */ -export interface GalleryImagesListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=author)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; +export interface DevTestLabsClientOptions extends AzureServiceClientOptions { /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * @member {string} [baseUri] */ - orderby?: string; + baseUri?: string; } + /** * @interface - * An interface representing NotificationChannelsListOptionalParams. - * Optional Parameters. + * An interface representing the ProviderOperationResult. + * Result of the request to list REST API operations * - * @extends RequestOptionsBase + * @extends Array */ -export interface NotificationChannelsListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=webHookUrl)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; +export interface ProviderOperationResult extends Array { /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * @member {string} [nextLink] URL to get the next set of operation list + * results if there are any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - orderby?: string; + readonly nextLink?: string; } /** * @interface - * An interface representing NotificationChannelsGetOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationLab. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface NotificationChannelsGetOptionalParams extends msRest.RequestOptionsBase { +export interface ResponseWithContinuationLab extends Array { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=webHookUrl)' + * @member {string} [nextLink] Link for next set of results. */ - expand?: string; + nextLink?: string; } /** * @interface - * An interface representing PoliciesListOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationLabVhd. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface PoliciesListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=description)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; +export interface ResponseWithContinuationLabVhd extends Array { /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; - /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * @member {string} [nextLink] Link for next set of results. */ - orderby?: string; + nextLink?: string; } /** * @interface - * An interface representing PoliciesGetOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationSchedule. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface PoliciesGetOptionalParams extends msRest.RequestOptionsBase { +export interface ResponseWithContinuationSchedule extends Array { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=description)' + * @member {string} [nextLink] Link for next set of results. */ - expand?: string; + nextLink?: string; } /** * @interface - * An interface representing SchedulesListOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationArtifactSource. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface SchedulesListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; +export interface ResponseWithContinuationArtifactSource extends Array { /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * @member {string} [nextLink] Link for next set of results. */ - orderby?: string; + nextLink?: string; } /** * @interface - * An interface representing SchedulesGetOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationArmTemplate. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface SchedulesGetOptionalParams extends msRest.RequestOptionsBase { +export interface ResponseWithContinuationArmTemplate extends Array { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * @member {string} [nextLink] Link for next set of results. */ - expand?: string; + nextLink?: string; } /** * @interface - * An interface representing ServiceRunnersListOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationArtifact. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface ServiceRunnersListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; +export interface ResponseWithContinuationArtifact extends Array { /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * @member {string} [nextLink] Link for next set of results. */ - orderby?: string; + nextLink?: string; } /** * @interface - * An interface representing UsersListOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationCustomImage. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface UsersListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=identity)' - */ - expand?: string; +export interface ResponseWithContinuationCustomImage extends Array { /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; - /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * @member {string} [nextLink] Link for next set of results. */ - orderby?: string; + nextLink?: string; } /** * @interface - * An interface representing UsersGetOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationFormula. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface UsersGetOptionalParams extends msRest.RequestOptionsBase { +export interface ResponseWithContinuationFormula extends Array { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=identity)' + * @member {string} [nextLink] Link for next set of results. */ - expand?: string; + nextLink?: string; } /** * @interface - * An interface representing DisksListOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationGalleryImage. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface DisksListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=diskType)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; +export interface ResponseWithContinuationGalleryImage extends Array { /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * @member {string} [nextLink] Link for next set of results. */ - orderby?: string; + nextLink?: string; } /** * @interface - * An interface representing DisksGetOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationNotificationChannel. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface DisksGetOptionalParams extends msRest.RequestOptionsBase { +export interface ResponseWithContinuationNotificationChannel extends Array { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=diskType)' + * @member {string} [nextLink] Link for next set of results. */ - expand?: string; + nextLink?: string; } /** * @interface - * An interface representing EnvironmentsListOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationPolicy. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface EnvironmentsListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=deploymentProperties)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; +export interface ResponseWithContinuationPolicy extends Array { /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * @member {string} [nextLink] Link for next set of results. */ - orderby?: string; + nextLink?: string; } /** * @interface - * An interface representing EnvironmentsGetOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationServiceRunner. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface EnvironmentsGetOptionalParams extends msRest.RequestOptionsBase { +export interface ResponseWithContinuationServiceRunner extends Array { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=deploymentProperties)' + * @member {string} [nextLink] Link for next set of results. */ - expand?: string; + nextLink?: string; } /** * @interface - * An interface representing SecretsListOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationUser. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface SecretsListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=value)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; +export interface ResponseWithContinuationUser extends Array { /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * @member {string} [nextLink] Link for next set of results. */ - orderby?: string; + nextLink?: string; } /** * @interface - * An interface representing SecretsGetOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationDisk. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface SecretsGetOptionalParams extends msRest.RequestOptionsBase { +export interface ResponseWithContinuationDisk extends Array { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=value)' + * @member {string} [nextLink] Link for next set of results. */ - expand?: string; + nextLink?: string; } /** * @interface - * An interface representing ServiceFabricsListOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationDtlEnvironment. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface ServiceFabricsListOptionalParams extends msRest.RequestOptionsBase { +export interface ResponseWithContinuationDtlEnvironment extends Array { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=applicableSchedule)' + * @member {string} [nextLink] Link for next set of results. */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; - /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' - */ - orderby?: string; + nextLink?: string; } /** * @interface - * An interface representing ServiceFabricsGetOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationSecret. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface ServiceFabricsGetOptionalParams extends msRest.RequestOptionsBase { +export interface ResponseWithContinuationSecret extends Array { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=applicableSchedule)' + * @member {string} [nextLink] Link for next set of results. */ - expand?: string; + nextLink?: string; } /** * @interface - * An interface representing ServiceFabricSchedulesListOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationLabVirtualMachine. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface ServiceFabricSchedulesListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; +export interface ResponseWithContinuationLabVirtualMachine extends Array { /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; - /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' + * @member {string} [nextLink] Link for next set of results. */ - orderby?: string; + nextLink?: string; } /** * @interface - * An interface representing ServiceFabricSchedulesGetOptionalParams. - * Optional Parameters. + * An interface representing the ResponseWithContinuationVirtualNetwork. + * The response of a list operation. * - * @extends RequestOptionsBase + * @extends Array */ -export interface ServiceFabricSchedulesGetOptionalParams extends msRest.RequestOptionsBase { +export interface ResponseWithContinuationVirtualNetwork extends Array { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * @member {string} [nextLink] Link for next set of results. */ - expand?: string; + nextLink?: string; } /** - * @interface - * An interface representing VirtualMachinesListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * Defines values for EnableStatus. + * Possible values include: 'Enabled', 'Disabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: EnableStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface VirtualMachinesListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; - /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' - */ - orderby?: string; +export enum EnableStatus { + Enabled = 'Enabled', + Disabled = 'Disabled', } /** - * @interface - * An interface representing VirtualMachinesGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * Defines values for NotificationStatus. + * Possible values include: 'Disabled', 'Enabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: NotificationStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' - */ - expand?: string; +export enum NotificationStatus { + Disabled = 'Disabled', + Enabled = 'Enabled', } /** - * @interface - * An interface representing VirtualMachineSchedulesListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * Defines values for SourceControlType. + * Possible values include: 'VsoGit', 'GitHub' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SourceControlType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface VirtualMachineSchedulesListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; - /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' - */ - orderby?: string; +export enum SourceControlType { + VsoGit = 'VsoGit', + GitHub = 'GitHub', } /** - * @interface - * An interface representing VirtualMachineSchedulesGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * Defines values for StorageType. + * Possible values include: 'Standard', 'Premium' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: StorageType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface VirtualMachineSchedulesGetOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' - */ - expand?: string; +export enum StorageType { + Standard = 'Standard', + Premium = 'Premium', } /** - * @interface - * An interface representing VirtualNetworksListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * Defines values for CostThresholdStatus. + * Possible values include: 'Enabled', 'Disabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: CostThresholdStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface VirtualNetworksListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=externalSubnets)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. Example: - * '$filter=contains(name,'myName') - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. Example: '$top=10' - */ - top?: number; - /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. Example: '$orderby=name desc' - */ - orderby?: string; +export enum CostThresholdStatus { + Enabled = 'Enabled', + Disabled = 'Disabled', } /** - * @interface - * An interface representing VirtualNetworksGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * Defines values for WindowsOsState. + * Possible values include: 'NonSysprepped', 'SysprepRequested', + * 'SysprepApplied' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: WindowsOsState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface VirtualNetworksGetOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=externalSubnets)' - */ - expand?: string; +export enum WindowsOsState { + NonSysprepped = 'NonSysprepped', + SysprepRequested = 'SysprepRequested', + SysprepApplied = 'SysprepApplied', } /** - * @interface - * An interface representing DevTestLabsClientOptions. - * @extends AzureServiceClientOptions + * Defines values for LinuxOsState. + * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested', + * 'DeprovisionApplied' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: LinuxOsState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface DevTestLabsClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ - baseUri?: string; +export enum LinuxOsState { + NonDeprovisioned = 'NonDeprovisioned', + DeprovisionRequested = 'DeprovisionRequested', + DeprovisionApplied = 'DeprovisionApplied', } - /** - * @interface - * An interface representing the ProviderOperationResult. - * Result of the request to list REST API operations - * - * @extends Array + * Defines values for CustomImageOsType. + * Possible values include: 'Windows', 'Linux', 'None' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: CustomImageOsType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface ProviderOperationResult extends Array { - /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly nextLink?: string; -} - -/** - * @interface - * An interface representing the LabList. - * The response of a list operation. - * - * @extends Array - */ -export interface LabList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the LabVhdList. - * The response of a list operation. - * - * @extends Array - */ -export interface LabVhdList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the ScheduleList. - * The response of a list operation. - * - * @extends Array - */ -export interface ScheduleList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; +export enum CustomImageOsType { + Windows = 'Windows', + Linux = 'Linux', + None = 'None', } /** - * @interface - * An interface representing the ArtifactSourceList. - * The response of a list operation. - * - * @extends Array + * Defines values for HostCachingOptions. + * Possible values include: 'None', 'ReadOnly', 'ReadWrite' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: HostCachingOptions = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface ArtifactSourceList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; +export enum HostCachingOptions { + None = 'None', + ReadOnly = 'ReadOnly', + ReadWrite = 'ReadWrite', } /** - * @interface - * An interface representing the ArmTemplateList. - * The response of a list operation. - * - * @extends Array + * Defines values for NotificationChannelEventType. + * Possible values include: 'AutoShutdown', 'Cost' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: NotificationChannelEventType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface ArmTemplateList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; +export enum NotificationChannelEventType { + AutoShutdown = 'AutoShutdown', + Cost = 'Cost', } /** - * @interface - * An interface representing the ArtifactList. - * The response of a list operation. - * - * @extends Array + * Defines values for TransportProtocol. + * Possible values include: 'Tcp', 'Udp' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: TransportProtocol = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface ArtifactList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; +export enum TransportProtocol { + Tcp = 'Tcp', + Udp = 'Udp', } /** - * @interface - * An interface representing the CustomImageList. - * The response of a list operation. - * - * @extends Array + * Defines values for VirtualMachineCreationSource. + * Possible values include: 'FromCustomImage', 'FromGalleryImage' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: VirtualMachineCreationSource = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface CustomImageList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; +export enum VirtualMachineCreationSource { + FromCustomImage = 'FromCustomImage', + FromGalleryImage = 'FromGalleryImage', } /** - * @interface - * An interface representing the FormulaList. - * The response of a list operation. - * - * @extends Array + * Defines values for FileUploadOptions. + * Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: FileUploadOptions = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface FormulaList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; +export enum FileUploadOptions { + UploadFilesAndGenerateSasTokens = 'UploadFilesAndGenerateSasTokens', + None = 'None', } /** - * @interface - * An interface representing the GalleryImageList. - * The response of a list operation. - * - * @extends Array + * Defines values for PremiumDataDisk. + * Possible values include: 'Disabled', 'Enabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: PremiumDataDisk = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface GalleryImageList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; +export enum PremiumDataDisk { + Disabled = 'Disabled', + Enabled = 'Enabled', } /** - * @interface - * An interface representing the NotificationChannelList. - * The response of a list operation. - * - * @extends Array + * Defines values for TargetCostStatus. + * Possible values include: 'Enabled', 'Disabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: TargetCostStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface NotificationChannelList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; +export enum TargetCostStatus { + Enabled = 'Enabled', + Disabled = 'Disabled', } /** - * @interface - * An interface representing the PolicyList. - * The response of a list operation. - * - * @extends Array + * Defines values for ReportingCycleType. + * Possible values include: 'CalendarMonth', 'Custom' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ReportingCycleType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface PolicyList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; +export enum ReportingCycleType { + CalendarMonth = 'CalendarMonth', + Custom = 'Custom', } /** - * @interface - * An interface representing the ServiceRunnerList. - * The response of a list operation. - * - * @extends Array + * Defines values for CostType. + * Possible values include: 'Unavailable', 'Reported', 'Projected' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: CostType = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface ServiceRunnerList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; +export enum CostType { + Unavailable = 'Unavailable', + Reported = 'Reported', + Projected = 'Projected', } /** - * @interface - * An interface representing the UserList. - * The response of a list operation. - * - * @extends Array + * Defines values for HttpStatusCode. + * Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', + * 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + * 'PartialContent', 'MultipleChoices', 'MovedPermanently', 'Redirect', + * 'SeeOther', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', + * 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + * 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', + * 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', + * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: HttpStatusCode = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export interface UserList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the DiskList. - * The response of a list operation. - * - * @extends Array - */ -export interface DiskList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the DtlEnvironmentList. - * The response of a list operation. - * - * @extends Array - */ -export interface DtlEnvironmentList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the SecretList. - * The response of a list operation. - * - * @extends Array - */ -export interface SecretList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the ServiceFabricList. - * The response of a list operation. - * - * @extends Array - */ -export interface ServiceFabricList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the LabVirtualMachineList. - * The response of a list operation. - * - * @extends Array - */ -export interface LabVirtualMachineList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the VirtualNetworkList. - * The response of a list operation. - * - * @extends Array - */ -export interface VirtualNetworkList extends Array { - /** - * @member {string} [nextLink] Link for next set of results. - */ - nextLink?: string; -} - -/** - * Defines values for EnableStatus. - * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: EnableStatus = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum EnableStatus { - Enabled = 'Enabled', - Disabled = 'Disabled', -} - -/** - * Defines values for SourceControlType. - * Possible values include: 'VsoGit', 'GitHub' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SourceControlType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum SourceControlType { - VsoGit = 'VsoGit', - GitHub = 'GitHub', -} - -/** - * Defines values for StorageType. - * Possible values include: 'Standard', 'Premium' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: StorageType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum StorageType { - Standard = 'Standard', - Premium = 'Premium', -} - -/** - * Defines values for CostThresholdStatus. - * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CostThresholdStatus = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum CostThresholdStatus { - Enabled = 'Enabled', - Disabled = 'Disabled', -} - -/** - * Defines values for WindowsOsState. - * Possible values include: 'NonSysprepped', 'SysprepRequested', - * 'SysprepApplied' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: WindowsOsState = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum WindowsOsState { - NonSysprepped = 'NonSysprepped', - SysprepRequested = 'SysprepRequested', - SysprepApplied = 'SysprepApplied', -} - -/** - * Defines values for LinuxOsState. - * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested', - * 'DeprovisionApplied' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LinuxOsState = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum LinuxOsState { - NonDeprovisioned = 'NonDeprovisioned', - DeprovisionRequested = 'DeprovisionRequested', - DeprovisionApplied = 'DeprovisionApplied', -} - -/** - * Defines values for CustomImageOsType. - * Possible values include: 'Windows', 'Linux', 'None' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CustomImageOsType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum CustomImageOsType { - Windows = 'Windows', - Linux = 'Linux', - None = 'None', -} - -/** - * Defines values for HostCachingOptions. - * Possible values include: 'None', 'ReadOnly', 'ReadWrite' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: HostCachingOptions = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum HostCachingOptions { - None = 'None', - ReadOnly = 'ReadOnly', - ReadWrite = 'ReadWrite', -} - -/** - * Defines values for NotificationChannelEventType. - * Possible values include: 'AutoShutdown', 'Cost' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: NotificationChannelEventType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum NotificationChannelEventType { - AutoShutdown = 'AutoShutdown', - Cost = 'Cost', -} - -/** - * Defines values for TransportProtocol. - * Possible values include: 'Tcp', 'Udp' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: TransportProtocol = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum TransportProtocol { - Tcp = 'Tcp', - Udp = 'Udp', -} - -/** - * Defines values for VirtualMachineCreationSource. - * Possible values include: 'FromCustomImage', 'FromGalleryImage' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: VirtualMachineCreationSource = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum VirtualMachineCreationSource { - FromCustomImage = 'FromCustomImage', - FromGalleryImage = 'FromGalleryImage', -} - -/** - * Defines values for FileUploadOptions. - * Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: FileUploadOptions = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum FileUploadOptions { - UploadFilesAndGenerateSasTokens = 'UploadFilesAndGenerateSasTokens', - None = 'None', -} - -/** - * Defines values for PremiumDataDisk. - * Possible values include: 'Disabled', 'Enabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PremiumDataDisk = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum PremiumDataDisk { - Disabled = 'Disabled', - Enabled = 'Enabled', -} - -/** - * Defines values for EnvironmentPermission. - * Possible values include: 'Reader', 'Contributor' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: EnvironmentPermission = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum EnvironmentPermission { - Reader = 'Reader', - Contributor = 'Contributor', -} - -/** - * Defines values for TargetCostStatus. - * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: TargetCostStatus = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum TargetCostStatus { - Enabled = 'Enabled', - Disabled = 'Disabled', -} - -/** - * Defines values for ReportingCycleType. - * Possible values include: 'CalendarMonth', 'Custom' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ReportingCycleType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum ReportingCycleType { - CalendarMonth = 'CalendarMonth', - Custom = 'Custom', -} - -/** - * Defines values for CostType. - * Possible values include: 'Unavailable', 'Reported', 'Projected' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CostType = "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum CostType { - Unavailable = 'Unavailable', - Reported = 'Reported', - Projected = 'Projected', -} - -/** - * Defines values for HttpStatusCode. - * Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', - * 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - * 'PartialContent', 'MultipleChoices', 'MovedPermanently', 'Redirect', - * 'SeeOther', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', - * 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - * 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', - * 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', - * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: HttpStatusCode = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum HttpStatusCode { - Continue = 'Continue', - SwitchingProtocols = 'SwitchingProtocols', - OK = 'OK', - Created = 'Created', - Accepted = 'Accepted', - NonAuthoritativeInformation = 'NonAuthoritativeInformation', - NoContent = 'NoContent', - ResetContent = 'ResetContent', - PartialContent = 'PartialContent', - MultipleChoices = 'MultipleChoices', - MovedPermanently = 'MovedPermanently', - Redirect = 'Redirect', - SeeOther = 'SeeOther', - NotModified = 'NotModified', - UseProxy = 'UseProxy', - Unused = 'Unused', - TemporaryRedirect = 'TemporaryRedirect', - BadRequest = 'BadRequest', - Unauthorized = 'Unauthorized', - PaymentRequired = 'PaymentRequired', - Forbidden = 'Forbidden', - NotFound = 'NotFound', - MethodNotAllowed = 'MethodNotAllowed', - NotAcceptable = 'NotAcceptable', - ProxyAuthenticationRequired = 'ProxyAuthenticationRequired', - RequestTimeout = 'RequestTimeout', - Conflict = 'Conflict', - Gone = 'Gone', - LengthRequired = 'LengthRequired', - PreconditionFailed = 'PreconditionFailed', - RequestEntityTooLarge = 'RequestEntityTooLarge', - RequestUriTooLong = 'RequestUriTooLong', - UnsupportedMediaType = 'UnsupportedMediaType', - RequestedRangeNotSatisfiable = 'RequestedRangeNotSatisfiable', - ExpectationFailed = 'ExpectationFailed', - UpgradeRequired = 'UpgradeRequired', - InternalServerError = 'InternalServerError', - NotImplemented = 'NotImplemented', - BadGateway = 'BadGateway', - ServiceUnavailable = 'ServiceUnavailable', - GatewayTimeout = 'GatewayTimeout', - HttpVersionNotSupported = 'HttpVersionNotSupported', -} - -/** - * Defines values for PolicyStatus. - * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PolicyStatus = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum PolicyStatus { - Enabled = 'Enabled', - Disabled = 'Disabled', -} - -/** - * Defines values for PolicyFactName. - * Possible values include: 'UserOwnedLabVmCount', - * 'UserOwnedLabPremiumVmCount', 'LabVmCount', 'LabPremiumVmCount', - * 'LabVmSize', 'GalleryImage', 'UserOwnedLabVmCountInSubnet', 'LabTargetCost', - * 'EnvironmentTemplate', 'ScheduleEditPermission' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PolicyFactName = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum PolicyFactName { - UserOwnedLabVmCount = 'UserOwnedLabVmCount', - UserOwnedLabPremiumVmCount = 'UserOwnedLabPremiumVmCount', - LabVmCount = 'LabVmCount', - LabPremiumVmCount = 'LabPremiumVmCount', - LabVmSize = 'LabVmSize', - GalleryImage = 'GalleryImage', - UserOwnedLabVmCountInSubnet = 'UserOwnedLabVmCountInSubnet', - LabTargetCost = 'LabTargetCost', - EnvironmentTemplate = 'EnvironmentTemplate', - ScheduleEditPermission = 'ScheduleEditPermission', -} - -/** - * Defines values for PolicyEvaluatorType. - * Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PolicyEvaluatorType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum PolicyEvaluatorType { - AllowedValuesPolicy = 'AllowedValuesPolicy', - MaxValuePolicy = 'MaxValuePolicy', -} - -/** - * Defines values for UsagePermissionType. - * Possible values include: 'Default', 'Deny', 'Allow' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: UsagePermissionType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum UsagePermissionType { - Default = 'Default', - Deny = 'Deny', - Allow = 'Allow', -} - -/** - * Contains response data for the list operation. - */ -export type ProviderOperationsListResponse = ProviderOperationResult & { - /** - * 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: ProviderOperationResult; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type ProviderOperationsListNextResponse = ProviderOperationResult & { - /** - * 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: ProviderOperationResult; - }; -}; - -/** - * Contains response data for the listBySubscription operation. - */ -export type LabsListBySubscriptionResponse = LabList & { - /** - * 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: LabList; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type LabsListByResourceGroupResponse = LabList & { - /** - * 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: LabList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type LabsGetResponse = Lab & { - /** - * 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: Lab; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type LabsCreateOrUpdateResponse = Lab & { - /** - * 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: Lab; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type LabsUpdateResponse = Lab & { - /** - * 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: Lab; - }; -}; - -/** - * Contains response data for the generateUploadUri operation. - */ -export type LabsGenerateUploadUriResponse = GenerateUploadUriResponse & { - /** - * 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: GenerateUploadUriResponse; - }; -}; - -/** - * Contains response data for the listVhds operation. - */ -export type LabsListVhdsResponse = LabVhdList & { - /** - * 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: LabVhdList; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type LabsBeginCreateOrUpdateResponse = Lab & { - /** - * 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: Lab; - }; -}; - -/** - * Contains response data for the listBySubscriptionNext operation. - */ -export type LabsListBySubscriptionNextResponse = LabList & { - /** - * 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: LabList; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type LabsListByResourceGroupNextResponse = LabList & { - /** - * 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: LabList; - }; -}; - -/** - * Contains response data for the listVhdsNext operation. - */ -export type LabsListVhdsNextResponse = LabVhdList & { - /** - * 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: LabVhdList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type OperationsGetResponse = OperationResult & { - /** - * 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: OperationResult; - }; -}; +export enum HttpStatusCode { + Continue = 'Continue', + SwitchingProtocols = 'SwitchingProtocols', + OK = 'OK', + Created = 'Created', + Accepted = 'Accepted', + NonAuthoritativeInformation = 'NonAuthoritativeInformation', + NoContent = 'NoContent', + ResetContent = 'ResetContent', + PartialContent = 'PartialContent', + MultipleChoices = 'MultipleChoices', + MovedPermanently = 'MovedPermanently', + Redirect = 'Redirect', + SeeOther = 'SeeOther', + NotModified = 'NotModified', + UseProxy = 'UseProxy', + Unused = 'Unused', + TemporaryRedirect = 'TemporaryRedirect', + BadRequest = 'BadRequest', + Unauthorized = 'Unauthorized', + PaymentRequired = 'PaymentRequired', + Forbidden = 'Forbidden', + NotFound = 'NotFound', + MethodNotAllowed = 'MethodNotAllowed', + NotAcceptable = 'NotAcceptable', + ProxyAuthenticationRequired = 'ProxyAuthenticationRequired', + RequestTimeout = 'RequestTimeout', + Conflict = 'Conflict', + Gone = 'Gone', + LengthRequired = 'LengthRequired', + PreconditionFailed = 'PreconditionFailed', + RequestEntityTooLarge = 'RequestEntityTooLarge', + RequestUriTooLong = 'RequestUriTooLong', + UnsupportedMediaType = 'UnsupportedMediaType', + RequestedRangeNotSatisfiable = 'RequestedRangeNotSatisfiable', + ExpectationFailed = 'ExpectationFailed', + UpgradeRequired = 'UpgradeRequired', + InternalServerError = 'InternalServerError', + NotImplemented = 'NotImplemented', + BadGateway = 'BadGateway', + ServiceUnavailable = 'ServiceUnavailable', + GatewayTimeout = 'GatewayTimeout', + HttpVersionNotSupported = 'HttpVersionNotSupported', +} /** - * Contains response data for the listBySubscription operation. + * Defines values for PolicyStatus. + * Possible values include: 'Enabled', 'Disabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: PolicyStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export type GlobalSchedulesListBySubscriptionResponse = ScheduleList & { - /** - * 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: ScheduleList; - }; -}; +export enum PolicyStatus { + Enabled = 'Enabled', + Disabled = 'Disabled', +} /** - * Contains response data for the listByResourceGroup operation. + * Defines values for PolicyFactName. + * Possible values include: 'UserOwnedLabVmCount', + * 'UserOwnedLabPremiumVmCount', 'LabVmCount', 'LabPremiumVmCount', + * 'LabVmSize', 'GalleryImage', 'UserOwnedLabVmCountInSubnet', 'LabTargetCost' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: PolicyFactName = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export type GlobalSchedulesListByResourceGroupResponse = ScheduleList & { - /** - * 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: ScheduleList; - }; -}; +export enum PolicyFactName { + UserOwnedLabVmCount = 'UserOwnedLabVmCount', + UserOwnedLabPremiumVmCount = 'UserOwnedLabPremiumVmCount', + LabVmCount = 'LabVmCount', + LabPremiumVmCount = 'LabPremiumVmCount', + LabVmSize = 'LabVmSize', + GalleryImage = 'GalleryImage', + UserOwnedLabVmCountInSubnet = 'UserOwnedLabVmCountInSubnet', + LabTargetCost = 'LabTargetCost', +} /** - * Contains response data for the get operation. + * Defines values for PolicyEvaluatorType. + * Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: PolicyEvaluatorType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export type GlobalSchedulesGetResponse = Schedule & { - /** - * 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: Schedule; - }; -}; +export enum PolicyEvaluatorType { + AllowedValuesPolicy = 'AllowedValuesPolicy', + MaxValuePolicy = 'MaxValuePolicy', +} /** - * Contains response data for the createOrUpdate operation. + * Defines values for UsagePermissionType. + * Possible values include: 'Default', 'Deny', 'Allow' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: UsagePermissionType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} */ -export type GlobalSchedulesCreateOrUpdateResponse = Schedule & { - /** - * 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: Schedule; - }; -}; +export enum UsagePermissionType { + Default = 'Default', + Deny = 'Deny', + Allow = 'Allow', +} /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type GlobalSchedulesUpdateResponse = Schedule & { +export type ProviderOperationsListResponse = ProviderOperationResult & { /** * The underlying HTTP response. */ @@ -6897,14 +5243,14 @@ export type GlobalSchedulesUpdateResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: ProviderOperationResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listNext operation. */ -export type GlobalSchedulesListBySubscriptionNextResponse = ScheduleList & { +export type ProviderOperationsListNextResponse = ProviderOperationResult & { /** * The underlying HTTP response. */ @@ -6916,14 +5262,14 @@ export type GlobalSchedulesListBySubscriptionNextResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: ProviderOperationResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listBySubscription operation. */ -export type GlobalSchedulesListByResourceGroupNextResponse = ScheduleList & { +export type LabsListBySubscriptionResponse = ResponseWithContinuationLab & { /** * The underlying HTTP response. */ @@ -6935,14 +5281,14 @@ export type GlobalSchedulesListByResourceGroupNextResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: ResponseWithContinuationLab; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroup operation. */ -export type ArtifactSourcesListResponse = ArtifactSourceList & { +export type LabsListByResourceGroupResponse = ResponseWithContinuationLab & { /** * The underlying HTTP response. */ @@ -6954,14 +5300,14 @@ export type ArtifactSourcesListResponse = ArtifactSourceList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactSourceList; + parsedBody: ResponseWithContinuationLab; }; }; /** * Contains response data for the get operation. */ -export type ArtifactSourcesGetResponse = ArtifactSource & { +export type LabsGetResponse = Lab & { /** * The underlying HTTP response. */ @@ -6973,14 +5319,14 @@ export type ArtifactSourcesGetResponse = ArtifactSource & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactSource; + parsedBody: Lab; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ArtifactSourcesCreateOrUpdateResponse = ArtifactSource & { +export type LabsCreateOrUpdateResponse = Lab & { /** * The underlying HTTP response. */ @@ -6992,52 +5338,14 @@ export type ArtifactSourcesCreateOrUpdateResponse = ArtifactSource & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactSource; + parsedBody: Lab; }; }; /** * Contains response data for the update operation. */ -export type ArtifactSourcesUpdateResponse = ArtifactSource & { - /** - * 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: ArtifactSource; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type ArtifactSourcesListNextResponse = ArtifactSourceList & { - /** - * 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: ArtifactSourceList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type ArmTemplatesListResponse = ArmTemplateList & { +export type LabsUpdateResponse = Lab & { /** * The underlying HTTP response. */ @@ -7049,14 +5357,14 @@ export type ArmTemplatesListResponse = ArmTemplateList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArmTemplateList; + parsedBody: Lab; }; }; /** - * Contains response data for the get operation. + * Contains response data for the generateUploadUri operation. */ -export type ArmTemplatesGetResponse = ArmTemplate & { +export type LabsGenerateUploadUriResponse = GenerateUploadUriResponse & { /** * The underlying HTTP response. */ @@ -7068,14 +5376,14 @@ export type ArmTemplatesGetResponse = ArmTemplate & { /** * The response body as parsed JSON or XML */ - parsedBody: ArmTemplate; + parsedBody: GenerateUploadUriResponse; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listVhds operation. */ -export type ArmTemplatesListNextResponse = ArmTemplateList & { +export type LabsListVhdsResponse = ResponseWithContinuationLabVhd & { /** * The underlying HTTP response. */ @@ -7087,14 +5395,14 @@ export type ArmTemplatesListNextResponse = ArmTemplateList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArmTemplateList; + parsedBody: ResponseWithContinuationLabVhd; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ArtifactsListResponse = ArtifactList & { +export type LabsBeginCreateOrUpdateResponse = Lab & { /** * The underlying HTTP response. */ @@ -7106,14 +5414,14 @@ export type ArtifactsListResponse = ArtifactList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactList; + parsedBody: Lab; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type ArtifactsGetResponse = Artifact & { +export type LabsListBySubscriptionNextResponse = ResponseWithContinuationLab & { /** * The underlying HTTP response. */ @@ -7125,14 +5433,14 @@ export type ArtifactsGetResponse = Artifact & { /** * The response body as parsed JSON or XML */ - parsedBody: Artifact; + parsedBody: ResponseWithContinuationLab; }; }; /** - * Contains response data for the generateArmTemplate operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ArtifactsGenerateArmTemplateResponse = ArmTemplateInfo & { +export type LabsListByResourceGroupNextResponse = ResponseWithContinuationLab & { /** * The underlying HTTP response. */ @@ -7144,14 +5452,14 @@ export type ArtifactsGenerateArmTemplateResponse = ArmTemplateInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: ArmTemplateInfo; + parsedBody: ResponseWithContinuationLab; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listVhdsNext operation. */ -export type ArtifactsListNextResponse = ArtifactList & { +export type LabsListVhdsNextResponse = ResponseWithContinuationLabVhd & { /** * The underlying HTTP response. */ @@ -7163,14 +5471,14 @@ export type ArtifactsListNextResponse = ArtifactList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactList; + parsedBody: ResponseWithContinuationLabVhd; }; }; /** * Contains response data for the get operation. */ -export type CostsGetResponse = LabCost & { +export type OperationsGetResponse = OperationResult & { /** * The underlying HTTP response. */ @@ -7182,14 +5490,14 @@ export type CostsGetResponse = LabCost & { /** * The response body as parsed JSON or XML */ - parsedBody: LabCost; + parsedBody: OperationResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listBySubscription operation. */ -export type CostsCreateOrUpdateResponse = LabCost & { +export type GlobalSchedulesListBySubscriptionResponse = ResponseWithContinuationSchedule & { /** * The underlying HTTP response. */ @@ -7201,14 +5509,14 @@ export type CostsCreateOrUpdateResponse = LabCost & { /** * The response body as parsed JSON or XML */ - parsedBody: LabCost; + parsedBody: ResponseWithContinuationSchedule; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroup operation. */ -export type CustomImagesListResponse = CustomImageList & { +export type GlobalSchedulesListByResourceGroupResponse = ResponseWithContinuationSchedule & { /** * The underlying HTTP response. */ @@ -7220,14 +5528,14 @@ export type CustomImagesListResponse = CustomImageList & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImageList; + parsedBody: ResponseWithContinuationSchedule; }; }; /** * Contains response data for the get operation. */ -export type CustomImagesGetResponse = CustomImage & { +export type GlobalSchedulesGetResponse = Schedule & { /** * The underlying HTTP response. */ @@ -7239,14 +5547,14 @@ export type CustomImagesGetResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: Schedule; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type CustomImagesCreateOrUpdateResponse = CustomImage & { +export type GlobalSchedulesCreateOrUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -7258,14 +5566,14 @@ export type CustomImagesCreateOrUpdateResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: Schedule; }; }; /** * Contains response data for the update operation. */ -export type CustomImagesUpdateResponse = CustomImage & { +export type GlobalSchedulesUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -7277,14 +5585,14 @@ export type CustomImagesUpdateResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: Schedule; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type CustomImagesBeginCreateOrUpdateResponse = CustomImage & { +export type GlobalSchedulesListBySubscriptionNextResponse = ResponseWithContinuationSchedule & { /** * The underlying HTTP response. */ @@ -7296,14 +5604,14 @@ export type CustomImagesBeginCreateOrUpdateResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: ResponseWithContinuationSchedule; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type CustomImagesListNextResponse = CustomImageList & { +export type GlobalSchedulesListByResourceGroupNextResponse = ResponseWithContinuationSchedule & { /** * The underlying HTTP response. */ @@ -7315,14 +5623,14 @@ export type CustomImagesListNextResponse = CustomImageList & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImageList; + parsedBody: ResponseWithContinuationSchedule; }; }; /** * Contains response data for the list operation. */ -export type FormulasListResponse = FormulaList & { +export type ArtifactSourcesListResponse = ResponseWithContinuationArtifactSource & { /** * The underlying HTTP response. */ @@ -7334,14 +5642,14 @@ export type FormulasListResponse = FormulaList & { /** * The response body as parsed JSON or XML */ - parsedBody: FormulaList; + parsedBody: ResponseWithContinuationArtifactSource; }; }; /** * Contains response data for the get operation. */ -export type FormulasGetResponse = Formula & { +export type ArtifactSourcesGetResponse = ArtifactSource & { /** * The underlying HTTP response. */ @@ -7353,14 +5661,14 @@ export type FormulasGetResponse = Formula & { /** * The response body as parsed JSON or XML */ - parsedBody: Formula; + parsedBody: ArtifactSource; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type FormulasCreateOrUpdateResponse = Formula & { +export type ArtifactSourcesCreateOrUpdateResponse = ArtifactSource & { /** * The underlying HTTP response. */ @@ -7372,14 +5680,14 @@ export type FormulasCreateOrUpdateResponse = Formula & { /** * The response body as parsed JSON or XML */ - parsedBody: Formula; + parsedBody: ArtifactSource; }; }; /** * Contains response data for the update operation. */ -export type FormulasUpdateResponse = Formula & { +export type ArtifactSourcesUpdateResponse = ArtifactSource & { /** * The underlying HTTP response. */ @@ -7391,14 +5699,14 @@ export type FormulasUpdateResponse = Formula & { /** * The response body as parsed JSON or XML */ - parsedBody: Formula; + parsedBody: ArtifactSource; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listNext operation. */ -export type FormulasBeginCreateOrUpdateResponse = Formula & { +export type ArtifactSourcesListNextResponse = ResponseWithContinuationArtifactSource & { /** * The underlying HTTP response. */ @@ -7410,14 +5718,14 @@ export type FormulasBeginCreateOrUpdateResponse = Formula & { /** * The response body as parsed JSON or XML */ - parsedBody: Formula; + parsedBody: ResponseWithContinuationArtifactSource; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type FormulasListNextResponse = FormulaList & { +export type ArmTemplatesListResponse = ResponseWithContinuationArmTemplate & { /** * The underlying HTTP response. */ @@ -7429,14 +5737,14 @@ export type FormulasListNextResponse = FormulaList & { /** * The response body as parsed JSON or XML */ - parsedBody: FormulaList; + parsedBody: ResponseWithContinuationArmTemplate; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type GalleryImagesListResponse = GalleryImageList & { +export type ArmTemplatesGetResponse = ArmTemplate & { /** * The underlying HTTP response. */ @@ -7448,14 +5756,14 @@ export type GalleryImagesListResponse = GalleryImageList & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageList; + parsedBody: ArmTemplate; }; }; /** * Contains response data for the listNext operation. */ -export type GalleryImagesListNextResponse = GalleryImageList & { +export type ArmTemplatesListNextResponse = ResponseWithContinuationArmTemplate & { /** * The underlying HTTP response. */ @@ -7467,14 +5775,14 @@ export type GalleryImagesListNextResponse = GalleryImageList & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageList; + parsedBody: ResponseWithContinuationArmTemplate; }; }; /** * Contains response data for the list operation. */ -export type NotificationChannelsListResponse = NotificationChannelList & { +export type ArtifactsListResponse = ResponseWithContinuationArtifact & { /** * The underlying HTTP response. */ @@ -7486,14 +5794,14 @@ export type NotificationChannelsListResponse = NotificationChannelList & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannelList; + parsedBody: ResponseWithContinuationArtifact; }; }; /** * Contains response data for the get operation. */ -export type NotificationChannelsGetResponse = NotificationChannel & { +export type ArtifactsGetResponse = Artifact & { /** * The underlying HTTP response. */ @@ -7505,14 +5813,14 @@ export type NotificationChannelsGetResponse = NotificationChannel & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannel; + parsedBody: Artifact; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the generateArmTemplate operation. */ -export type NotificationChannelsCreateOrUpdateResponse = NotificationChannel & { +export type ArtifactsGenerateArmTemplateResponse = ArmTemplateInfo & { /** * The underlying HTTP response. */ @@ -7524,14 +5832,14 @@ export type NotificationChannelsCreateOrUpdateResponse = NotificationChannel & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannel; + parsedBody: ArmTemplateInfo; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type NotificationChannelsUpdateResponse = NotificationChannel & { +export type ArtifactsListNextResponse = ResponseWithContinuationArtifact & { /** * The underlying HTTP response. */ @@ -7543,14 +5851,14 @@ export type NotificationChannelsUpdateResponse = NotificationChannel & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannel; + parsedBody: ResponseWithContinuationArtifact; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type NotificationChannelsListNextResponse = NotificationChannelList & { +export type CostsGetResponse = LabCost & { /** * The underlying HTTP response. */ @@ -7562,14 +5870,14 @@ export type NotificationChannelsListNextResponse = NotificationChannelList & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannelList; + parsedBody: LabCost; }; }; /** - * Contains response data for the evaluatePolicies operation. + * Contains response data for the createOrUpdate operation. */ -export type PolicySetsEvaluatePoliciesResponse = EvaluatePoliciesResponse & { +export type CostsCreateOrUpdateResponse = LabCost & { /** * The underlying HTTP response. */ @@ -7581,14 +5889,14 @@ export type PolicySetsEvaluatePoliciesResponse = EvaluatePoliciesResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: EvaluatePoliciesResponse; + parsedBody: LabCost; }; }; /** * Contains response data for the list operation. */ -export type PoliciesListResponse = PolicyList & { +export type CustomImagesListResponse = ResponseWithContinuationCustomImage & { /** * The underlying HTTP response. */ @@ -7600,14 +5908,14 @@ export type PoliciesListResponse = PolicyList & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyList; + parsedBody: ResponseWithContinuationCustomImage; }; }; /** * Contains response data for the get operation. */ -export type PoliciesGetResponse = Policy & { +export type CustomImagesGetResponse = CustomImage & { /** * The underlying HTTP response. */ @@ -7619,14 +5927,14 @@ export type PoliciesGetResponse = Policy & { /** * The response body as parsed JSON or XML */ - parsedBody: Policy; + parsedBody: CustomImage; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type PoliciesCreateOrUpdateResponse = Policy & { +export type CustomImagesCreateOrUpdateResponse = CustomImage & { /** * The underlying HTTP response. */ @@ -7638,14 +5946,14 @@ export type PoliciesCreateOrUpdateResponse = Policy & { /** * The response body as parsed JSON or XML */ - parsedBody: Policy; + parsedBody: CustomImage; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type PoliciesUpdateResponse = Policy & { +export type CustomImagesBeginCreateOrUpdateResponse = CustomImage & { /** * The underlying HTTP response. */ @@ -7657,14 +5965,14 @@ export type PoliciesUpdateResponse = Policy & { /** * The response body as parsed JSON or XML */ - parsedBody: Policy; + parsedBody: CustomImage; }; }; /** * Contains response data for the listNext operation. */ -export type PoliciesListNextResponse = PolicyList & { +export type CustomImagesListNextResponse = ResponseWithContinuationCustomImage & { /** * The underlying HTTP response. */ @@ -7676,14 +5984,14 @@ export type PoliciesListNextResponse = PolicyList & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyList; + parsedBody: ResponseWithContinuationCustomImage; }; }; /** * Contains response data for the list operation. */ -export type SchedulesListResponse = ScheduleList & { +export type FormulasListResponse = ResponseWithContinuationFormula & { /** * The underlying HTTP response. */ @@ -7695,14 +6003,14 @@ export type SchedulesListResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: ResponseWithContinuationFormula; }; }; /** * Contains response data for the get operation. */ -export type SchedulesGetResponse = Schedule & { +export type FormulasGetResponse = Formula & { /** * The underlying HTTP response. */ @@ -7714,14 +6022,14 @@ export type SchedulesGetResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: Formula; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type SchedulesCreateOrUpdateResponse = Schedule & { +export type FormulasCreateOrUpdateResponse = Formula & { /** * The underlying HTTP response. */ @@ -7733,14 +6041,14 @@ export type SchedulesCreateOrUpdateResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: Formula; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type SchedulesUpdateResponse = Schedule & { +export type FormulasBeginCreateOrUpdateResponse = Formula & { /** * The underlying HTTP response. */ @@ -7752,14 +6060,14 @@ export type SchedulesUpdateResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: Formula; }; }; /** - * Contains response data for the listApplicable operation. + * Contains response data for the listNext operation. */ -export type SchedulesListApplicableResponse = ScheduleList & { +export type FormulasListNextResponse = ResponseWithContinuationFormula & { /** * The underlying HTTP response. */ @@ -7771,14 +6079,14 @@ export type SchedulesListApplicableResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: ResponseWithContinuationFormula; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type SchedulesListNextResponse = ScheduleList & { +export type GalleryImagesListResponse = ResponseWithContinuationGalleryImage & { /** * The underlying HTTP response. */ @@ -7790,14 +6098,14 @@ export type SchedulesListNextResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: ResponseWithContinuationGalleryImage; }; }; /** - * Contains response data for the listApplicableNext operation. + * Contains response data for the listNext operation. */ -export type SchedulesListApplicableNextResponse = ScheduleList & { +export type GalleryImagesListNextResponse = ResponseWithContinuationGalleryImage & { /** * The underlying HTTP response. */ @@ -7809,14 +6117,14 @@ export type SchedulesListApplicableNextResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: ResponseWithContinuationGalleryImage; }; }; /** * Contains response data for the list operation. */ -export type ServiceRunnersListResponse = ServiceRunnerList & { +export type NotificationChannelsListResponse = ResponseWithContinuationNotificationChannel & { /** * The underlying HTTP response. */ @@ -7828,14 +6136,14 @@ export type ServiceRunnersListResponse = ServiceRunnerList & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceRunnerList; + parsedBody: ResponseWithContinuationNotificationChannel; }; }; /** * Contains response data for the get operation. */ -export type ServiceRunnersGetResponse = ServiceRunner & { +export type NotificationChannelsGetResponse = NotificationChannel & { /** * The underlying HTTP response. */ @@ -7847,14 +6155,14 @@ export type ServiceRunnersGetResponse = ServiceRunner & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceRunner; + parsedBody: NotificationChannel; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ServiceRunnersCreateOrUpdateResponse = ServiceRunner & { +export type NotificationChannelsCreateOrUpdateResponse = NotificationChannel & { /** * The underlying HTTP response. */ @@ -7866,14 +6174,14 @@ export type ServiceRunnersCreateOrUpdateResponse = ServiceRunner & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceRunner; + parsedBody: NotificationChannel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type ServiceRunnersListNextResponse = ServiceRunnerList & { +export type NotificationChannelsUpdateResponse = NotificationChannel & { /** * The underlying HTTP response. */ @@ -7885,14 +6193,14 @@ export type ServiceRunnersListNextResponse = ServiceRunnerList & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceRunnerList; + parsedBody: NotificationChannel; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type UsersListResponse = UserList & { +export type NotificationChannelsListNextResponse = ResponseWithContinuationNotificationChannel & { /** * The underlying HTTP response. */ @@ -7904,14 +6212,14 @@ export type UsersListResponse = UserList & { /** * The response body as parsed JSON or XML */ - parsedBody: UserList; + parsedBody: ResponseWithContinuationNotificationChannel; }; }; /** - * Contains response data for the get operation. + * Contains response data for the evaluatePolicies operation. */ -export type UsersGetResponse = User & { +export type PolicySetsEvaluatePoliciesResponse = EvaluatePoliciesResponse & { /** * The underlying HTTP response. */ @@ -7923,14 +6231,14 @@ export type UsersGetResponse = User & { /** * The response body as parsed JSON or XML */ - parsedBody: User; + parsedBody: EvaluatePoliciesResponse; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type UsersCreateOrUpdateResponse = User & { +export type PoliciesListResponse = ResponseWithContinuationPolicy & { /** * The underlying HTTP response. */ @@ -7942,14 +6250,14 @@ export type UsersCreateOrUpdateResponse = User & { /** * The response body as parsed JSON or XML */ - parsedBody: User; + parsedBody: ResponseWithContinuationPolicy; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type UsersUpdateResponse = User & { +export type PoliciesGetResponse = Policy & { /** * The underlying HTTP response. */ @@ -7961,14 +6269,14 @@ export type UsersUpdateResponse = User & { /** * The response body as parsed JSON or XML */ - parsedBody: User; + parsedBody: Policy; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type UsersBeginCreateOrUpdateResponse = User & { +export type PoliciesCreateOrUpdateResponse = Policy & { /** * The underlying HTTP response. */ @@ -7980,14 +6288,14 @@ export type UsersBeginCreateOrUpdateResponse = User & { /** * The response body as parsed JSON or XML */ - parsedBody: User; + parsedBody: Policy; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type UsersListNextResponse = UserList & { +export type PoliciesUpdateResponse = Policy & { /** * The underlying HTTP response. */ @@ -7999,14 +6307,14 @@ export type UsersListNextResponse = UserList & { /** * The response body as parsed JSON or XML */ - parsedBody: UserList; + parsedBody: Policy; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type DisksListResponse = DiskList & { +export type PoliciesListNextResponse = ResponseWithContinuationPolicy & { /** * The underlying HTTP response. */ @@ -8018,14 +6326,14 @@ export type DisksListResponse = DiskList & { /** * The response body as parsed JSON or XML */ - parsedBody: DiskList; + parsedBody: ResponseWithContinuationPolicy; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type DisksGetResponse = Disk & { +export type SchedulesListResponse = ResponseWithContinuationSchedule & { /** * The underlying HTTP response. */ @@ -8037,14 +6345,14 @@ export type DisksGetResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: ResponseWithContinuationSchedule; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type DisksCreateOrUpdateResponse = Disk & { +export type SchedulesGetResponse = Schedule & { /** * The underlying HTTP response. */ @@ -8056,14 +6364,14 @@ export type DisksCreateOrUpdateResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: Schedule; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type DisksUpdateResponse = Disk & { +export type SchedulesCreateOrUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -8075,14 +6383,14 @@ export type DisksUpdateResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: Schedule; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the update operation. */ -export type DisksBeginCreateOrUpdateResponse = Disk & { +export type SchedulesUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -8094,14 +6402,14 @@ export type DisksBeginCreateOrUpdateResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: Schedule; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listApplicable operation. */ -export type DisksListNextResponse = DiskList & { +export type SchedulesListApplicableResponse = ResponseWithContinuationSchedule & { /** * The underlying HTTP response. */ @@ -8113,14 +6421,14 @@ export type DisksListNextResponse = DiskList & { /** * The response body as parsed JSON or XML */ - parsedBody: DiskList; + parsedBody: ResponseWithContinuationSchedule; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type EnvironmentsListResponse = DtlEnvironmentList & { +export type SchedulesListNextResponse = ResponseWithContinuationSchedule & { /** * The underlying HTTP response. */ @@ -8132,14 +6440,14 @@ export type EnvironmentsListResponse = DtlEnvironmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironmentList; + parsedBody: ResponseWithContinuationSchedule; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listApplicableNext operation. */ -export type EnvironmentsGetResponse = DtlEnvironment & { +export type SchedulesListApplicableNextResponse = ResponseWithContinuationSchedule & { /** * The underlying HTTP response. */ @@ -8151,14 +6459,14 @@ export type EnvironmentsGetResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: ResponseWithContinuationSchedule; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type EnvironmentsCreateOrUpdateResponse = DtlEnvironment & { +export type ServiceRunnersListResponse = ResponseWithContinuationServiceRunner & { /** * The underlying HTTP response. */ @@ -8170,14 +6478,14 @@ export type EnvironmentsCreateOrUpdateResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: ResponseWithContinuationServiceRunner; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type EnvironmentsUpdateResponse = DtlEnvironment & { +export type ServiceRunnersGetResponse = ServiceRunner & { /** * The underlying HTTP response. */ @@ -8189,14 +6497,14 @@ export type EnvironmentsUpdateResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: ServiceRunner; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type EnvironmentsBeginCreateOrUpdateResponse = DtlEnvironment & { +export type ServiceRunnersCreateOrUpdateResponse = ServiceRunner & { /** * The underlying HTTP response. */ @@ -8208,14 +6516,14 @@ export type EnvironmentsBeginCreateOrUpdateResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: ServiceRunner; }; }; /** * Contains response data for the listNext operation. */ -export type EnvironmentsListNextResponse = DtlEnvironmentList & { +export type ServiceRunnersListNextResponse = ResponseWithContinuationServiceRunner & { /** * The underlying HTTP response. */ @@ -8227,14 +6535,14 @@ export type EnvironmentsListNextResponse = DtlEnvironmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironmentList; + parsedBody: ResponseWithContinuationServiceRunner; }; }; /** * Contains response data for the list operation. */ -export type SecretsListResponse = SecretList & { +export type UsersListResponse = ResponseWithContinuationUser & { /** * The underlying HTTP response. */ @@ -8246,14 +6554,14 @@ export type SecretsListResponse = SecretList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecretList; + parsedBody: ResponseWithContinuationUser; }; }; /** * Contains response data for the get operation. */ -export type SecretsGetResponse = Secret & { +export type UsersGetResponse = User & { /** * The underlying HTTP response. */ @@ -8265,14 +6573,14 @@ export type SecretsGetResponse = Secret & { /** * The response body as parsed JSON or XML */ - parsedBody: Secret; + parsedBody: User; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type SecretsCreateOrUpdateResponse = Secret & { +export type UsersCreateOrUpdateResponse = User & { /** * The underlying HTTP response. */ @@ -8284,14 +6592,14 @@ export type SecretsCreateOrUpdateResponse = Secret & { /** * The response body as parsed JSON or XML */ - parsedBody: Secret; + parsedBody: User; }; }; /** * Contains response data for the update operation. */ -export type SecretsUpdateResponse = Secret & { +export type UsersUpdateResponse = User & { /** * The underlying HTTP response. */ @@ -8303,14 +6611,14 @@ export type SecretsUpdateResponse = Secret & { /** * The response body as parsed JSON or XML */ - parsedBody: Secret; + parsedBody: User; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listNext operation. */ -export type SecretsBeginCreateOrUpdateResponse = Secret & { +export type UsersListNextResponse = ResponseWithContinuationUser & { /** * The underlying HTTP response. */ @@ -8322,14 +6630,14 @@ export type SecretsBeginCreateOrUpdateResponse = Secret & { /** * The response body as parsed JSON or XML */ - parsedBody: Secret; + parsedBody: ResponseWithContinuationUser; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type SecretsListNextResponse = SecretList & { +export type DisksListResponse = ResponseWithContinuationDisk & { /** * The underlying HTTP response. */ @@ -8341,14 +6649,14 @@ export type SecretsListNextResponse = SecretList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecretList; + parsedBody: ResponseWithContinuationDisk; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type ServiceFabricsListResponse = ServiceFabricList & { +export type DisksGetResponse = Disk & { /** * The underlying HTTP response. */ @@ -8360,14 +6668,14 @@ export type ServiceFabricsListResponse = ServiceFabricList & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceFabricList; + parsedBody: Disk; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ServiceFabricsGetResponse = ServiceFabric & { +export type DisksCreateOrUpdateResponse = Disk & { /** * The underlying HTTP response. */ @@ -8379,14 +6687,14 @@ export type ServiceFabricsGetResponse = ServiceFabric & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceFabric; + parsedBody: Disk; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServiceFabricsCreateOrUpdateResponse = ServiceFabric & { +export type DisksBeginCreateOrUpdateResponse = Disk & { /** * The underlying HTTP response. */ @@ -8398,14 +6706,14 @@ export type ServiceFabricsCreateOrUpdateResponse = ServiceFabric & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceFabric; + parsedBody: Disk; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type ServiceFabricsUpdateResponse = ServiceFabric & { +export type DisksListNextResponse = ResponseWithContinuationDisk & { /** * The underlying HTTP response. */ @@ -8417,14 +6725,14 @@ export type ServiceFabricsUpdateResponse = ServiceFabric & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceFabric; + parsedBody: ResponseWithContinuationDisk; }; }; /** - * Contains response data for the listApplicableSchedules operation. + * Contains response data for the list operation. */ -export type ServiceFabricsListApplicableSchedulesResponse = ApplicableSchedule & { +export type EnvironmentsListResponse = ResponseWithContinuationDtlEnvironment & { /** * The underlying HTTP response. */ @@ -8436,14 +6744,14 @@ export type ServiceFabricsListApplicableSchedulesResponse = ApplicableSchedule & /** * The response body as parsed JSON or XML */ - parsedBody: ApplicableSchedule; + parsedBody: ResponseWithContinuationDtlEnvironment; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type ServiceFabricsBeginCreateOrUpdateResponse = ServiceFabric & { +export type EnvironmentsGetResponse = DtlEnvironment & { /** * The underlying HTTP response. */ @@ -8455,14 +6763,14 @@ export type ServiceFabricsBeginCreateOrUpdateResponse = ServiceFabric & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceFabric; + parsedBody: DtlEnvironment; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ServiceFabricsListNextResponse = ServiceFabricList & { +export type EnvironmentsCreateOrUpdateResponse = DtlEnvironment & { /** * The underlying HTTP response. */ @@ -8474,14 +6782,14 @@ export type ServiceFabricsListNextResponse = ServiceFabricList & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceFabricList; + parsedBody: DtlEnvironment; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServiceFabricSchedulesListResponse = ScheduleList & { +export type EnvironmentsBeginCreateOrUpdateResponse = DtlEnvironment & { /** * The underlying HTTP response. */ @@ -8493,14 +6801,14 @@ export type ServiceFabricSchedulesListResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: DtlEnvironment; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type ServiceFabricSchedulesGetResponse = Schedule & { +export type EnvironmentsListNextResponse = ResponseWithContinuationDtlEnvironment & { /** * The underlying HTTP response. */ @@ -8512,14 +6820,14 @@ export type ServiceFabricSchedulesGetResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: ResponseWithContinuationDtlEnvironment; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type ServiceFabricSchedulesCreateOrUpdateResponse = Schedule & { +export type SecretsListResponse = ResponseWithContinuationSecret & { /** * The underlying HTTP response. */ @@ -8531,14 +6839,14 @@ export type ServiceFabricSchedulesCreateOrUpdateResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: ResponseWithContinuationSecret; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type ServiceFabricSchedulesUpdateResponse = Schedule & { +export type SecretsGetResponse = Secret & { /** * The underlying HTTP response. */ @@ -8550,14 +6858,14 @@ export type ServiceFabricSchedulesUpdateResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: Secret; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ServiceFabricSchedulesListNextResponse = ScheduleList & { +export type SecretsCreateOrUpdateResponse = Secret & { /** * The underlying HTTP response. */ @@ -8569,14 +6877,14 @@ export type ServiceFabricSchedulesListNextResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: Secret; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type VirtualMachinesListResponse = LabVirtualMachineList & { +export type SecretsListNextResponse = ResponseWithContinuationSecret & { /** * The underlying HTTP response. */ @@ -8588,14 +6896,14 @@ export type VirtualMachinesListResponse = LabVirtualMachineList & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVirtualMachineList; + parsedBody: ResponseWithContinuationSecret; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type VirtualMachinesGetResponse = LabVirtualMachine & { +export type VirtualMachinesListResponse = ResponseWithContinuationLabVirtualMachine & { /** * The underlying HTTP response. */ @@ -8607,14 +6915,14 @@ export type VirtualMachinesGetResponse = LabVirtualMachine & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVirtualMachine; + parsedBody: ResponseWithContinuationLabVirtualMachine; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type VirtualMachinesCreateOrUpdateResponse = LabVirtualMachine & { +export type VirtualMachinesGetResponse = LabVirtualMachine & { /** * The underlying HTTP response. */ @@ -8631,9 +6939,9 @@ export type VirtualMachinesCreateOrUpdateResponse = LabVirtualMachine & { }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type VirtualMachinesUpdateResponse = LabVirtualMachine & { +export type VirtualMachinesCreateOrUpdateResponse = LabVirtualMachine & { /** * The underlying HTTP response. */ @@ -8650,9 +6958,9 @@ export type VirtualMachinesUpdateResponse = LabVirtualMachine & { }; /** - * Contains response data for the getRdpFileContents operation. + * Contains response data for the update operation. */ -export type VirtualMachinesGetRdpFileContentsResponse = RdpConnection & { +export type VirtualMachinesUpdateResponse = LabVirtualMachine & { /** * The underlying HTTP response. */ @@ -8664,7 +6972,7 @@ export type VirtualMachinesGetRdpFileContentsResponse = RdpConnection & { /** * The response body as parsed JSON or XML */ - parsedBody: RdpConnection; + parsedBody: LabVirtualMachine; }; }; @@ -8709,7 +7017,7 @@ export type VirtualMachinesBeginCreateOrUpdateResponse = LabVirtualMachine & { /** * Contains response data for the listNext operation. */ -export type VirtualMachinesListNextResponse = LabVirtualMachineList & { +export type VirtualMachinesListNextResponse = ResponseWithContinuationLabVirtualMachine & { /** * The underlying HTTP response. */ @@ -8721,14 +7029,14 @@ export type VirtualMachinesListNextResponse = LabVirtualMachineList & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVirtualMachineList; + parsedBody: ResponseWithContinuationLabVirtualMachine; }; }; /** * Contains response data for the list operation. */ -export type VirtualMachineSchedulesListResponse = ScheduleList & { +export type VirtualMachineSchedulesListResponse = ResponseWithContinuationSchedule & { /** * The underlying HTTP response. */ @@ -8740,7 +7048,7 @@ export type VirtualMachineSchedulesListResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: ResponseWithContinuationSchedule; }; }; @@ -8804,7 +7112,7 @@ export type VirtualMachineSchedulesUpdateResponse = Schedule & { /** * Contains response data for the listNext operation. */ -export type VirtualMachineSchedulesListNextResponse = ScheduleList & { +export type VirtualMachineSchedulesListNextResponse = ResponseWithContinuationSchedule & { /** * The underlying HTTP response. */ @@ -8816,14 +7124,14 @@ export type VirtualMachineSchedulesListNextResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: ResponseWithContinuationSchedule; }; }; /** * Contains response data for the list operation. */ -export type VirtualNetworksListResponse = VirtualNetworkList & { +export type VirtualNetworksListResponse = ResponseWithContinuationVirtualNetwork & { /** * The underlying HTTP response. */ @@ -8835,7 +7143,7 @@ export type VirtualNetworksListResponse = VirtualNetworkList & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkList; + parsedBody: ResponseWithContinuationVirtualNetwork; }; }; @@ -8918,7 +7226,7 @@ export type VirtualNetworksBeginCreateOrUpdateResponse = VirtualNetwork & { /** * Contains response data for the listNext operation. */ -export type VirtualNetworksListNextResponse = VirtualNetworkList & { +export type VirtualNetworksListNextResponse = ResponseWithContinuationVirtualNetwork & { /** * The underlying HTTP response. */ @@ -8930,6 +7238,6 @@ export type VirtualNetworksListNextResponse = VirtualNetworkList & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkList; + parsedBody: ResponseWithContinuationVirtualNetwork; }; }; diff --git a/packages/@azure/arm-devtestlabs/lib/models/labsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/labsMappers.ts index 1d5c7a4e03be..c766d79187ec 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/labsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/labsMappers.ts @@ -9,29 +9,26 @@ */ export { - LabList, + ResponseWithContinuationLab, Lab, Resource, BaseResource, - LabAnnouncementProperties, - LabSupportProperties, CloudError, LabFragment, - UpdateResource, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachineCreationParameter, BulkCreationParameters, ArtifactInstallProperties, ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, + ApplicableSchedule, + Schedule, WeekDetails, DayDetails, HourDetails, @@ -39,11 +36,8 @@ export { ExportResourceUsageParameters, GenerateUploadUriParameter, GenerateUploadUriResponse, - ImportLabVirtualMachineRequest, - LabVhdList, + ResponseWithContinuationLabVhd, LabVhd, - Schedule, - ApplicableSchedule, ScheduleFragment, WeekDetailsFragment, DayDetailsFragment, @@ -60,39 +54,12 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, LabCost, TargetCostProperties, @@ -102,10 +69,17 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -113,9 +87,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -132,6 +103,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/mappers.ts b/packages/@azure/arm-devtestlabs/lib/models/mappers.ts index 173288f961bf..719ff11214ed 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/mappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/mappers.ts @@ -96,18 +96,6 @@ export const NotificationSettings: msRest.CompositeMapper = { type: { name: "String" } - }, - emailRecipient: { - serializedName: "emailRecipient", - type: { - name: "String" - } - }, - notificationLocale: { - serializedName: "notificationLocale", - type: { - name: "String" - } } } } @@ -228,14 +216,12 @@ export const Schedule: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -352,39 +338,6 @@ export const NotificationSettingsFragment: msRest.CompositeMapper = { type: { name: "String" } - }, - emailRecipient: { - serializedName: "emailRecipient", - type: { - name: "String" - } - }, - notificationLocale: { - serializedName: "notificationLocale", - type: { - name: "String" - } - } - } - } -}; - -export const UpdateResource: msRest.CompositeMapper = { - serializedName: "UpdateResource", - type: { - name: "Composite", - className: "UpdateResource", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } } } } @@ -396,7 +349,7 @@ export const ScheduleFragment: msRest.CompositeMapper = { name: "Composite", className: "ScheduleFragment", modelProperties: { - ...UpdateResource.type.modelProperties, + ...Resource.type.modelProperties, status: { serializedName: "properties.status", type: { @@ -448,6 +401,18 @@ export const ScheduleFragment: msRest.CompositeMapper = { type: { name: "String" } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } } } } @@ -459,7 +424,7 @@ export const ApplicableScheduleFragment: msRest.CompositeMapper = { name: "Composite", className: "ApplicableScheduleFragment", modelProperties: { - ...UpdateResource.type.modelProperties, + ...Resource.type.modelProperties, labVmsShutdown: { serializedName: "properties.labVmsShutdown", type: { @@ -512,12 +477,6 @@ export const ArtifactInstallProperties: msRest.CompositeMapper = { name: "String" } }, - artifactTitle: { - serializedName: "artifactTitle", - type: { - name: "String" - } - }, parameters: { serializedName: "parameters", type: { @@ -663,13 +622,6 @@ export const ArmTemplate: msRest.CompositeMapper = { } } } - }, - enabled: { - readOnly: true, - serializedName: "properties.enabled", - type: { - name: "Boolean" - } } } } @@ -719,28 +671,6 @@ export const ArmTemplateParameterProperties: msRest.CompositeMapper = { } }; -export const ArmTemplateParameterPropertiesFragment: msRest.CompositeMapper = { - serializedName: "ArmTemplateParameterPropertiesFragment", - type: { - name: "Composite", - className: "ArmTemplateParameterPropertiesFragment", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - export const Artifact: msRest.CompositeMapper = { serializedName: "Artifact", type: { @@ -898,12 +828,6 @@ export const ArtifactInstallPropertiesFragment: msRest.CompositeMapper = { name: "String" } }, - artifactTitle: { - serializedName: "artifactTitle", - type: { - name: "String" - } - }, parameters: { serializedName: "parameters", type: { @@ -1007,14 +931,12 @@ export const ArtifactSource: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -1030,7 +952,7 @@ export const ArtifactSourceFragment: msRest.CompositeMapper = { name: "Composite", className: "ArtifactSourceFragment", modelProperties: { - ...UpdateResource.type.modelProperties, + ...Resource.type.modelProperties, displayName: { serializedName: "properties.displayName", type: { @@ -1078,6 +1000,18 @@ export const ArtifactSourceFragment: msRest.CompositeMapper = { type: { name: "String" } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } } } } @@ -1127,34 +1061,6 @@ export const AttachNewDataDiskOptions: msRest.CompositeMapper = { } }; -export const AttachNewDataDiskOptionsFragment: msRest.CompositeMapper = { - serializedName: "AttachNewDataDiskOptionsFragment", - type: { - name: "Composite", - className: "AttachNewDataDiskOptionsFragment", - modelProperties: { - diskSizeGiB: { - serializedName: "diskSizeGiB", - type: { - name: "Number" - } - }, - diskName: { - serializedName: "diskName", - type: { - name: "String" - } - }, - diskType: { - serializedName: "diskType", - type: { - name: "String" - } - } - } - } -}; - export const BulkCreationParameters: msRest.CompositeMapper = { serializedName: "BulkCreationParameters", type: { @@ -1171,22 +1077,6 @@ export const BulkCreationParameters: msRest.CompositeMapper = { } }; -export const BulkCreationParametersFragment: msRest.CompositeMapper = { - serializedName: "BulkCreationParametersFragment", - type: { - name: "Composite", - className: "BulkCreationParametersFragment", - modelProperties: { - instanceCount: { - serializedName: "instanceCount", - type: { - name: "Number" - } - } - } - } -}; - export const ComputeDataDisk: msRest.CompositeMapper = { serializedName: "ComputeDataDisk", type: { @@ -1597,56 +1487,6 @@ export const CustomImagePropertiesCustom: msRest.CompositeMapper = { } }; -export const DataDiskStorageTypeInfo: msRest.CompositeMapper = { - serializedName: "DataDiskStorageTypeInfo", - type: { - name: "Composite", - className: "DataDiskStorageTypeInfo", - modelProperties: { - lun: { - serializedName: "lun", - type: { - name: "String" - } - }, - storageType: { - serializedName: "storageType", - type: { - name: "String" - } - } - } - } -}; - -export const CustomImagePropertiesFromPlan: msRest.CompositeMapper = { - serializedName: "CustomImagePropertiesFromPlan", - type: { - name: "Composite", - className: "CustomImagePropertiesFromPlan", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - offer: { - serializedName: "offer", - type: { - name: "String" - } - } - } - } -}; - export const CustomImage: msRest.CompositeMapper = { serializedName: "CustomImage", type: { @@ -1693,46 +1533,13 @@ export const CustomImage: msRest.CompositeMapper = { name: "String" } }, - managedSnapshotId: { - serializedName: "properties.managedSnapshotId", - type: { - name: "String" - } - }, - dataDiskStorageInfo: { - serializedName: "properties.dataDiskStorageInfo", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDiskStorageTypeInfo" - } - } - } - }, - customImagePlan: { - serializedName: "properties.customImagePlan", - type: { - name: "Composite", - className: "CustomImagePropertiesFromPlan" - } - }, - isPlanAuthorized: { - serializedName: "properties.isPlanAuthorized", - type: { - name: "Boolean" - } - }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -1742,14 +1549,27 @@ export const CustomImage: msRest.CompositeMapper = { } }; -export const WindowsOsInfoFragment: msRest.CompositeMapper = { - serializedName: "WindowsOsInfoFragment", +export const DataDiskProperties: msRest.CompositeMapper = { + serializedName: "DataDiskProperties", type: { name: "Composite", - className: "WindowsOsInfoFragment", + className: "DataDiskProperties", modelProperties: { - windowsOsState: { - serializedName: "windowsOsState", + attachNewDataDiskOptions: { + serializedName: "attachNewDataDiskOptions", + type: { + name: "Composite", + className: "AttachNewDataDiskOptions" + } + }, + existingLabDiskId: { + serializedName: "existingLabDiskId", + type: { + name: "String" + } + }, + hostCaching: { + serializedName: "hostCaching", type: { name: "String" } @@ -1758,14 +1578,14 @@ export const WindowsOsInfoFragment: msRest.CompositeMapper = { } }; -export const LinuxOsInfoFragment: msRest.CompositeMapper = { - serializedName: "LinuxOsInfoFragment", +export const DetachDataDiskProperties: msRest.CompositeMapper = { + serializedName: "DetachDataDiskProperties", type: { name: "Composite", - className: "LinuxOsInfoFragment", + className: "DetachDataDiskProperties", modelProperties: { - linuxOsState: { - serializedName: "linuxOsState", + existingLabDiskId: { + serializedName: "existingLabDiskId", type: { name: "String" } @@ -1774,287 +1594,31 @@ export const LinuxOsInfoFragment: msRest.CompositeMapper = { } }; -export const CustomImagePropertiesFromVmFragment: msRest.CompositeMapper = { - serializedName: "CustomImagePropertiesFromVmFragment", +export const DetachDiskProperties: msRest.CompositeMapper = { + serializedName: "DetachDiskProperties", type: { name: "Composite", - className: "CustomImagePropertiesFromVmFragment", + className: "DetachDiskProperties", modelProperties: { - sourceVmId: { - serializedName: "sourceVmId", + leasedByLabVmId: { + serializedName: "leasedByLabVmId", type: { name: "String" } - }, - windowsOsInfo: { - serializedName: "windowsOsInfo", - type: { - name: "Composite", - className: "WindowsOsInfoFragment" - } - }, - linuxOsInfo: { - serializedName: "linuxOsInfo", - type: { - name: "Composite", - className: "LinuxOsInfoFragment" - } } } } }; -export const CustomImagePropertiesCustomFragment: msRest.CompositeMapper = { - serializedName: "CustomImagePropertiesCustomFragment", +export const Disk: msRest.CompositeMapper = { + serializedName: "Disk", type: { name: "Composite", - className: "CustomImagePropertiesCustomFragment", + className: "Disk", modelProperties: { - imageName: { - serializedName: "imageName", - type: { - name: "String" - } - }, - sysPrep: { - serializedName: "sysPrep", - type: { - name: "Boolean" - } - }, - osType: { - serializedName: "osType", - type: { - name: "String" - } - } - } - } -}; - -export const DataDiskStorageTypeInfoFragment: msRest.CompositeMapper = { - serializedName: "DataDiskStorageTypeInfoFragment", - type: { - name: "Composite", - className: "DataDiskStorageTypeInfoFragment", - modelProperties: { - lun: { - serializedName: "lun", - type: { - name: "String" - } - }, - storageType: { - serializedName: "storageType", - type: { - name: "String" - } - } - } - } -}; - -export const CustomImagePropertiesFromPlanFragment: msRest.CompositeMapper = { - serializedName: "CustomImagePropertiesFromPlanFragment", - type: { - name: "Composite", - className: "CustomImagePropertiesFromPlanFragment", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - offer: { - serializedName: "offer", - type: { - name: "String" - } - } - } - } -}; - -export const CustomImageFragment: msRest.CompositeMapper = { - serializedName: "CustomImageFragment", - type: { - name: "Composite", - className: "CustomImageFragment", - modelProperties: { - ...UpdateResource.type.modelProperties, - vm: { - serializedName: "properties.vm", - type: { - name: "Composite", - className: "CustomImagePropertiesFromVmFragment" - } - }, - vhd: { - serializedName: "properties.vhd", - type: { - name: "Composite", - className: "CustomImagePropertiesCustomFragment" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - author: { - serializedName: "properties.author", - type: { - name: "String" - } - }, - managedImageId: { - serializedName: "properties.managedImageId", - type: { - name: "String" - } - }, - managedSnapshotId: { - serializedName: "properties.managedSnapshotId", - type: { - name: "String" - } - }, - dataDiskStorageInfo: { - serializedName: "properties.dataDiskStorageInfo", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDiskStorageTypeInfoFragment" - } - } - } - }, - customImagePlan: { - serializedName: "properties.customImagePlan", - type: { - name: "Composite", - className: "CustomImagePropertiesFromPlanFragment" - } - }, - isPlanAuthorized: { - serializedName: "properties.isPlanAuthorized", - type: { - name: "Boolean" - } - } - } - } -}; - -export const DataDiskProperties: msRest.CompositeMapper = { - serializedName: "DataDiskProperties", - type: { - name: "Composite", - className: "DataDiskProperties", - modelProperties: { - attachNewDataDiskOptions: { - serializedName: "attachNewDataDiskOptions", - type: { - name: "Composite", - className: "AttachNewDataDiskOptions" - } - }, - existingLabDiskId: { - serializedName: "existingLabDiskId", - type: { - name: "String" - } - }, - hostCaching: { - serializedName: "hostCaching", - type: { - name: "String" - } - } - } - } -}; - -export const DataDiskPropertiesFragment: msRest.CompositeMapper = { - serializedName: "DataDiskPropertiesFragment", - type: { - name: "Composite", - className: "DataDiskPropertiesFragment", - modelProperties: { - attachNewDataDiskOptions: { - serializedName: "attachNewDataDiskOptions", - type: { - name: "Composite", - className: "AttachNewDataDiskOptionsFragment" - } - }, - existingLabDiskId: { - serializedName: "existingLabDiskId", - type: { - name: "String" - } - }, - hostCaching: { - serializedName: "hostCaching", - type: { - name: "String" - } - } - } - } -}; - -export const DetachDataDiskProperties: msRest.CompositeMapper = { - serializedName: "DetachDataDiskProperties", - type: { - name: "Composite", - className: "DetachDataDiskProperties", - modelProperties: { - existingLabDiskId: { - serializedName: "existingLabDiskId", - type: { - name: "String" - } - } - } - } -}; - -export const DetachDiskProperties: msRest.CompositeMapper = { - serializedName: "DetachDiskProperties", - type: { - name: "Composite", - className: "DetachDiskProperties", - modelProperties: { - leasedByLabVmId: { - serializedName: "leasedByLabVmId", - type: { - name: "String" - } - } - } - } -}; - -export const Disk: msRest.CompositeMapper = { - serializedName: "Disk", - type: { - name: "Composite", - className: "Disk", - modelProperties: { - ...Resource.type.modelProperties, - diskType: { - serializedName: "properties.diskType", + ...Resource.type.modelProperties, + diskType: { + serializedName: "properties.diskType", type: { name: "String" } @@ -2103,14 +1667,12 @@ export const Disk: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -2120,896 +1682,176 @@ export const Disk: msRest.CompositeMapper = { } }; -export const DiskFragment: msRest.CompositeMapper = { - serializedName: "DiskFragment", +export const EnvironmentDeploymentProperties: msRest.CompositeMapper = { + serializedName: "EnvironmentDeploymentProperties", type: { name: "Composite", - className: "DiskFragment", + className: "EnvironmentDeploymentProperties", modelProperties: { - ...UpdateResource.type.modelProperties, - diskType: { - serializedName: "properties.diskType", + armTemplateId: { + serializedName: "armTemplateId", type: { name: "String" } }, - diskSizeGiB: { - serializedName: "properties.diskSizeGiB", + parameters: { + serializedName: "parameters", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArmTemplateParameterProperties" + } + } } - }, - leasedByLabVmId: { - serializedName: "properties.leasedByLabVmId", - type: { - name: "String" - } - }, - diskBlobName: { - serializedName: "properties.diskBlobName", - type: { - name: "String" - } - }, - diskUri: { - serializedName: "properties.diskUri", - type: { - name: "String" - } - }, - hostCaching: { - serializedName: "properties.hostCaching", - type: { - name: "String" - } - }, - managedDiskId: { - serializedName: "properties.managedDiskId", - type: { - name: "String" - } - } - } - } -}; - -export const EnvironmentDeploymentProperties: msRest.CompositeMapper = { - serializedName: "EnvironmentDeploymentProperties", - type: { - name: "Composite", - className: "EnvironmentDeploymentProperties", - modelProperties: { - armTemplateId: { - serializedName: "armTemplateId", - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ArmTemplateParameterProperties" - } - } - } - } - } - } -}; - -export const DtlEnvironment: msRest.CompositeMapper = { - serializedName: "DtlEnvironment", - type: { - name: "Composite", - className: "DtlEnvironment", - modelProperties: { - ...Resource.type.modelProperties, - deploymentProperties: { - serializedName: "properties.deploymentProperties", - type: { - name: "Composite", - className: "EnvironmentDeploymentProperties" - } - }, - armTemplateDisplayName: { - serializedName: "properties.armTemplateDisplayName", - type: { - name: "String" - } - }, - resourceGroupId: { - readOnly: true, - serializedName: "properties.resourceGroupId", - type: { - name: "String" - } - }, - createdByUser: { - readOnly: true, - serializedName: "properties.createdByUser", - type: { - name: "String" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - readOnly: true, - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" - } - } - } - } -}; - -export const EnvironmentDeploymentPropertiesFragment: msRest.CompositeMapper = { - serializedName: "EnvironmentDeploymentPropertiesFragment", - type: { - name: "Composite", - className: "EnvironmentDeploymentPropertiesFragment", - modelProperties: { - armTemplateId: { - serializedName: "armTemplateId", - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ArmTemplateParameterPropertiesFragment" - } - } - } - } - } - } -}; - -export const DtlEnvironmentFragment: msRest.CompositeMapper = { - serializedName: "DtlEnvironmentFragment", - type: { - name: "Composite", - className: "DtlEnvironmentFragment", - modelProperties: { - ...UpdateResource.type.modelProperties, - deploymentProperties: { - serializedName: "properties.deploymentProperties", - type: { - name: "Composite", - className: "EnvironmentDeploymentPropertiesFragment" - } - }, - armTemplateDisplayName: { - serializedName: "properties.armTemplateDisplayName", - type: { - name: "String" - } - } - } - } -}; - -export const EvaluatePoliciesProperties: msRest.CompositeMapper = { - serializedName: "EvaluatePoliciesProperties", - type: { - name: "Composite", - className: "EvaluatePoliciesProperties", - modelProperties: { - factName: { - serializedName: "factName", - type: { - name: "String" - } - }, - factData: { - serializedName: "factData", - type: { - name: "String" - } - }, - valueOffset: { - serializedName: "valueOffset", - type: { - name: "String" - } - }, - userObjectId: { - serializedName: "userObjectId", - type: { - name: "String" - } - } - } - } -}; - -export const EvaluatePoliciesRequest: msRest.CompositeMapper = { - serializedName: "EvaluatePoliciesRequest", - type: { - name: "Composite", - className: "EvaluatePoliciesRequest", - modelProperties: { - policies: { - serializedName: "policies", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EvaluatePoliciesProperties" - } - } - } - } - } - } -}; - -export const PolicyViolation: msRest.CompositeMapper = { - serializedName: "PolicyViolation", - type: { - name: "Composite", - className: "PolicyViolation", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const PolicySetResult: msRest.CompositeMapper = { - serializedName: "PolicySetResult", - type: { - name: "Composite", - className: "PolicySetResult", - modelProperties: { - hasError: { - serializedName: "hasError", - type: { - name: "Boolean" - } - }, - policyViolations: { - serializedName: "policyViolations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PolicyViolation" - } - } - } - } - } - } -}; - -export const EvaluatePoliciesResponse: msRest.CompositeMapper = { - serializedName: "EvaluatePoliciesResponse", - type: { - name: "Composite", - className: "EvaluatePoliciesResponse", - modelProperties: { - results: { - serializedName: "results", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PolicySetResult" - } - } - } - } - } - } -}; - -export const Event: msRest.CompositeMapper = { - serializedName: "Event", - type: { - name: "Composite", - className: "Event", - modelProperties: { - eventName: { - serializedName: "eventName", - type: { - name: "String" - } - } - } - } -}; - -export const EventFragment: msRest.CompositeMapper = { - serializedName: "EventFragment", - type: { - name: "Composite", - className: "EventFragment", - modelProperties: { - eventName: { - serializedName: "eventName", - type: { - name: "String" - } - } - } - } -}; - -export const ExportResourceUsageParameters: msRest.CompositeMapper = { - serializedName: "ExportResourceUsageParameters", - type: { - name: "Composite", - className: "ExportResourceUsageParameters", - modelProperties: { - blobStorageAbsoluteSasUri: { - serializedName: "blobStorageAbsoluteSasUri", - type: { - name: "String" - } - }, - usageStartDate: { - serializedName: "usageStartDate", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ExternalSubnet: msRest.CompositeMapper = { - serializedName: "ExternalSubnet", - type: { - name: "Composite", - className: "ExternalSubnet", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const ExternalSubnetFragment: msRest.CompositeMapper = { - serializedName: "ExternalSubnetFragment", - type: { - name: "Composite", - className: "ExternalSubnetFragment", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const GalleryImageReference: msRest.CompositeMapper = { - serializedName: "GalleryImageReference", - type: { - name: "Composite", - className: "GalleryImageReference", - modelProperties: { - offer: { - serializedName: "offer", - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "String" - } - }, - osType: { - serializedName: "osType", - type: { - name: "String" - } - }, - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; - -export const InboundNatRule: msRest.CompositeMapper = { - serializedName: "InboundNatRule", - type: { - name: "Composite", - className: "InboundNatRule", - modelProperties: { - transportProtocol: { - serializedName: "transportProtocol", - type: { - name: "String" - } - }, - frontendPort: { - serializedName: "frontendPort", - type: { - name: "Number" - } - }, - backendPort: { - serializedName: "backendPort", - type: { - name: "Number" - } - } - } - } -}; - -export const SharedPublicIpAddressConfiguration: msRest.CompositeMapper = { - serializedName: "SharedPublicIpAddressConfiguration", - type: { - name: "Composite", - className: "SharedPublicIpAddressConfiguration", - modelProperties: { - inboundNatRules: { - serializedName: "inboundNatRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InboundNatRule" - } - } - } - } - } - } -}; - -export const NetworkInterfaceProperties: msRest.CompositeMapper = { - serializedName: "NetworkInterfaceProperties", - type: { - name: "Composite", - className: "NetworkInterfaceProperties", - modelProperties: { - virtualNetworkId: { - serializedName: "virtualNetworkId", - type: { - name: "String" - } - }, - subnetId: { - serializedName: "subnetId", - type: { - name: "String" - } - }, - publicIpAddressId: { - serializedName: "publicIpAddressId", - type: { - name: "String" - } - }, - publicIpAddress: { - serializedName: "publicIpAddress", - type: { - name: "String" - } - }, - privateIpAddress: { - serializedName: "privateIpAddress", - type: { - name: "String" - } - }, - dnsName: { - serializedName: "dnsName", - type: { - name: "String" - } - }, - rdpAuthority: { - serializedName: "rdpAuthority", - type: { - name: "String" - } - }, - sshAuthority: { - serializedName: "sshAuthority", - type: { - name: "String" - } - }, - sharedPublicIpAddressConfiguration: { - serializedName: "sharedPublicIpAddressConfiguration", - type: { - name: "Composite", - className: "SharedPublicIpAddressConfiguration" - } - } - } - } -}; - -export const ScheduleCreationParameter: msRest.CompositeMapper = { - serializedName: "ScheduleCreationParameter", - type: { - name: "Composite", - className: "ScheduleCreationParameter", - modelProperties: { - status: { - serializedName: "properties.status", - type: { - name: "String" - } - }, - taskType: { - serializedName: "properties.taskType", - type: { - name: "String" - } - }, - weeklyRecurrence: { - serializedName: "properties.weeklyRecurrence", - type: { - name: "Composite", - className: "WeekDetails" - } - }, - dailyRecurrence: { - serializedName: "properties.dailyRecurrence", - type: { - name: "Composite", - className: "DayDetails" - } - }, - hourlyRecurrence: { - serializedName: "properties.hourlyRecurrence", - type: { - name: "Composite", - className: "HourDetails" - } - }, - timeZoneId: { - serializedName: "properties.timeZoneId", - type: { - name: "String" - } - }, - notificationSettings: { - serializedName: "properties.notificationSettings", - type: { - name: "Composite", - className: "NotificationSettings" - } - }, - targetResourceId: { - serializedName: "properties.targetResourceId", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { - serializedName: "LabVirtualMachineCreationParameter", - type: { - name: "Composite", - className: "LabVirtualMachineCreationParameter", - modelProperties: { - bulkCreationParameters: { - serializedName: "properties.bulkCreationParameters", - type: { - name: "Composite", - className: "BulkCreationParameters" - } - }, - notes: { - serializedName: "properties.notes", - type: { - name: "String" - } - }, - ownerObjectId: { - serializedName: "properties.ownerObjectId", - type: { - name: "String" - } - }, - ownerUserPrincipalName: { - serializedName: "properties.ownerUserPrincipalName", - type: { - name: "String" - } - }, - createdByUserId: { - serializedName: "properties.createdByUserId", - type: { - name: "String" - } - }, - createdByUser: { - serializedName: "properties.createdByUser", - type: { - name: "String" - } - }, - createdDate: { - serializedName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - computeId: { - serializedName: "properties.computeId", - type: { - name: "String" - } - }, - customImageId: { - serializedName: "properties.customImageId", - type: { - name: "String" - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "String" - } - }, - size: { - serializedName: "properties.size", - type: { - name: "String" - } - }, - userName: { - serializedName: "properties.userName", - type: { - name: "String" - } - }, - password: { - serializedName: "properties.password", - type: { - name: "String" - } - }, - sshKey: { - serializedName: "properties.sshKey", - type: { - name: "String" - } - }, - isAuthenticationWithSshKey: { - serializedName: "properties.isAuthenticationWithSshKey", - type: { - name: "Boolean" - } - }, - fqdn: { - serializedName: "properties.fqdn", - type: { - name: "String" - } - }, - labSubnetName: { - serializedName: "properties.labSubnetName", - type: { - name: "String" - } - }, - labVirtualNetworkId: { - serializedName: "properties.labVirtualNetworkId", - type: { - name: "String" - } - }, - disallowPublicIpAddress: { - serializedName: "properties.disallowPublicIpAddress", - type: { - name: "Boolean" - } - }, - artifacts: { - serializedName: "properties.artifacts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ArtifactInstallProperties" - } - } - } - }, - artifactDeploymentStatus: { - serializedName: "properties.artifactDeploymentStatus", + } + } + } +}; + +export const DtlEnvironment: msRest.CompositeMapper = { + serializedName: "DtlEnvironment", + type: { + name: "Composite", + className: "DtlEnvironment", + modelProperties: { + ...Resource.type.modelProperties, + deploymentProperties: { + serializedName: "properties.deploymentProperties", type: { name: "Composite", - className: "ArtifactDeploymentStatusProperties" - } - }, - galleryImageReference: { - serializedName: "properties.galleryImageReference", - type: { - name: "Composite", - className: "GalleryImageReference" + className: "EnvironmentDeploymentProperties" } }, - planId: { - serializedName: "properties.planId", + armTemplateDisplayName: { + serializedName: "properties.armTemplateDisplayName", type: { name: "String" } }, - networkInterface: { - serializedName: "properties.networkInterface", + resourceGroupId: { + readOnly: true, + serializedName: "properties.resourceGroupId", type: { - name: "Composite", - className: "NetworkInterfaceProperties" + name: "String" } }, - expirationDate: { - serializedName: "properties.expirationDate", + createdByUser: { + readOnly: true, + serializedName: "properties.createdByUser", type: { - name: "DateTime" + name: "String" } }, - allowClaim: { - serializedName: "properties.allowClaim", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "Boolean" + name: "String" } }, - storageType: { - serializedName: "properties.storageType", + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", type: { name: "String" } - }, - virtualMachineCreationSource: { - serializedName: "properties.virtualMachineCreationSource", + } + } + } +}; + +export const EvaluatePoliciesProperties: msRest.CompositeMapper = { + serializedName: "EvaluatePoliciesProperties", + type: { + name: "Composite", + className: "EvaluatePoliciesProperties", + modelProperties: { + factName: { + serializedName: "factName", type: { name: "String" } }, - environmentId: { - serializedName: "properties.environmentId", + factData: { + serializedName: "factData", type: { name: "String" } }, - dataDiskParameters: { - serializedName: "properties.dataDiskParameters", + valueOffset: { + serializedName: "valueOffset", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDiskProperties" - } - } + name: "String" } - }, - scheduleParameters: { - serializedName: "properties.scheduleParameters", + } + } + } +}; + +export const EvaluatePoliciesRequest: msRest.CompositeMapper = { + serializedName: "EvaluatePoliciesRequest", + type: { + name: "Composite", + className: "EvaluatePoliciesRequest", + modelProperties: { + policies: { + serializedName: "policies", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ScheduleCreationParameter" + className: "EvaluatePoliciesProperties" } } } - }, - lastKnownPowerState: { - serializedName: "properties.lastKnownPowerState", + } + } + } +}; + +export const PolicyViolation: msRest.CompositeMapper = { + serializedName: "PolicyViolation", + type: { + name: "Composite", + className: "PolicyViolation", + modelProperties: { + code: { + serializedName: "code", type: { name: "String" } }, - name: { - serializedName: "name", + message: { + serializedName: "message", type: { name: "String" } - }, - location: { - serializedName: "location", + } + } + } +}; + +export const PolicySetResult: msRest.CompositeMapper = { + serializedName: "PolicySetResult", + type: { + name: "Composite", + className: "PolicySetResult", + modelProperties: { + hasError: { + serializedName: "hasError", type: { - name: "String" + name: "Boolean" } }, - tags: { - serializedName: "tags", + policyViolations: { + serializedName: "policyViolations", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "PolicyViolation" } } } @@ -3018,78 +1860,118 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { } }; -export const FormulaPropertiesFromVm: msRest.CompositeMapper = { - serializedName: "FormulaPropertiesFromVm", +export const EvaluatePoliciesResponse: msRest.CompositeMapper = { + serializedName: "EvaluatePoliciesResponse", type: { name: "Composite", - className: "FormulaPropertiesFromVm", + className: "EvaluatePoliciesResponse", modelProperties: { - labVmId: { - serializedName: "labVmId", + results: { + serializedName: "results", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicySetResult" + } + } } } } } }; -export const Formula: msRest.CompositeMapper = { - serializedName: "Formula", +export const Event: msRest.CompositeMapper = { + serializedName: "Event", type: { name: "Composite", - className: "Formula", + className: "Event", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + eventName: { + serializedName: "eventName", type: { name: "String" } - }, - author: { - serializedName: "properties.author", + } + } + } +}; + +export const EventFragment: msRest.CompositeMapper = { + serializedName: "EventFragment", + type: { + name: "Composite", + className: "EventFragment", + modelProperties: { + eventName: { + serializedName: "eventName", type: { name: "String" } - }, - osType: { - serializedName: "properties.osType", + } + } + } +}; + +export const ExportResourceUsageParameters: msRest.CompositeMapper = { + serializedName: "ExportResourceUsageParameters", + type: { + name: "Composite", + className: "ExportResourceUsageParameters", + modelProperties: { + blobStorageAbsoluteSasUri: { + serializedName: "blobStorageAbsoluteSasUri", type: { name: "String" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", + usageStartDate: { + serializedName: "usageStartDate", type: { name: "DateTime" } - }, - formulaContent: { - serializedName: "properties.formulaContent", + } + } + } +}; + +export const ExternalSubnet: msRest.CompositeMapper = { + serializedName: "ExternalSubnet", + type: { + name: "Composite", + className: "ExternalSubnet", + modelProperties: { + id: { + serializedName: "id", type: { - name: "Composite", - className: "LabVirtualMachineCreationParameter" + name: "String" } }, - vm: { - serializedName: "properties.vm", + name: { + serializedName: "name", type: { - name: "Composite", - className: "FormulaPropertiesFromVm" + name: "String" } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + } + } + } +}; + +export const ExternalSubnetFragment: msRest.CompositeMapper = { + serializedName: "ExternalSubnetFragment", + type: { + name: "Composite", + className: "ExternalSubnetFragment", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - uniqueIdentifier: { - readOnly: true, - serializedName: "properties.uniqueIdentifier", + name: { + serializedName: "name", type: { name: "String" } @@ -3098,11 +1980,11 @@ export const Formula: msRest.CompositeMapper = { } }; -export const GalleryImageReferenceFragment: msRest.CompositeMapper = { - serializedName: "GalleryImageReferenceFragment", +export const GalleryImageReference: msRest.CompositeMapper = { + serializedName: "GalleryImageReference", type: { name: "Composite", - className: "GalleryImageReferenceFragment", + className: "GalleryImageReference", modelProperties: { offer: { serializedName: "offer", @@ -3138,11 +2020,11 @@ export const GalleryImageReferenceFragment: msRest.CompositeMapper = { } }; -export const InboundNatRuleFragment: msRest.CompositeMapper = { - serializedName: "InboundNatRuleFragment", +export const InboundNatRule: msRest.CompositeMapper = { + serializedName: "InboundNatRule", type: { name: "Composite", - className: "InboundNatRuleFragment", + className: "InboundNatRule", modelProperties: { transportProtocol: { serializedName: "transportProtocol", @@ -3166,11 +2048,11 @@ export const InboundNatRuleFragment: msRest.CompositeMapper = { } }; -export const SharedPublicIpAddressConfigurationFragment: msRest.CompositeMapper = { - serializedName: "SharedPublicIpAddressConfigurationFragment", +export const SharedPublicIpAddressConfiguration: msRest.CompositeMapper = { + serializedName: "SharedPublicIpAddressConfiguration", type: { name: "Composite", - className: "SharedPublicIpAddressConfigurationFragment", + className: "SharedPublicIpAddressConfiguration", modelProperties: { inboundNatRules: { serializedName: "inboundNatRules", @@ -3179,7 +2061,7 @@ export const SharedPublicIpAddressConfigurationFragment: msRest.CompositeMapper element: { type: { name: "Composite", - className: "InboundNatRuleFragment" + className: "InboundNatRule" } } } @@ -3188,11 +2070,11 @@ export const SharedPublicIpAddressConfigurationFragment: msRest.CompositeMapper } }; -export const NetworkInterfacePropertiesFragment: msRest.CompositeMapper = { - serializedName: "NetworkInterfacePropertiesFragment", +export const NetworkInterfaceProperties: msRest.CompositeMapper = { + serializedName: "NetworkInterfaceProperties", type: { name: "Composite", - className: "NetworkInterfacePropertiesFragment", + className: "NetworkInterfaceProperties", modelProperties: { virtualNetworkId: { serializedName: "virtualNetworkId", @@ -3246,109 +2128,24 @@ export const NetworkInterfacePropertiesFragment: msRest.CompositeMapper = { serializedName: "sharedPublicIpAddressConfiguration", type: { name: "Composite", - className: "SharedPublicIpAddressConfigurationFragment" - } - } - } - } -}; - -export const ScheduleCreationParameterFragment: msRest.CompositeMapper = { - serializedName: "ScheduleCreationParameterFragment", - type: { - name: "Composite", - className: "ScheduleCreationParameterFragment", - modelProperties: { - status: { - serializedName: "properties.status", - type: { - name: "String" - } - }, - taskType: { - serializedName: "properties.taskType", - type: { - name: "String" - } - }, - weeklyRecurrence: { - serializedName: "properties.weeklyRecurrence", - type: { - name: "Composite", - className: "WeekDetailsFragment" - } - }, - dailyRecurrence: { - serializedName: "properties.dailyRecurrence", - type: { - name: "Composite", - className: "DayDetailsFragment" - } - }, - hourlyRecurrence: { - serializedName: "properties.hourlyRecurrence", - type: { - name: "Composite", - className: "HourDetailsFragment" - } - }, - timeZoneId: { - serializedName: "properties.timeZoneId", - type: { - name: "String" - } - }, - notificationSettings: { - serializedName: "properties.notificationSettings", - type: { - name: "Composite", - className: "NotificationSettingsFragment" - } - }, - targetResourceId: { - serializedName: "properties.targetResourceId", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + className: "SharedPublicIpAddressConfiguration" } } } } }; -export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper = { - serializedName: "LabVirtualMachineCreationParameterFragment", +export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { + serializedName: "LabVirtualMachineCreationParameter", type: { name: "Composite", - className: "LabVirtualMachineCreationParameterFragment", + className: "LabVirtualMachineCreationParameter", modelProperties: { bulkCreationParameters: { serializedName: "properties.bulkCreationParameters", type: { name: "Composite", - className: "BulkCreationParametersFragment" + className: "BulkCreationParameters" } }, notes: { @@ -3387,12 +2184,6 @@ export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper name: "DateTime" } }, - computeId: { - serializedName: "properties.computeId", - type: { - name: "String" - } - }, customImageId: { serializedName: "properties.customImageId", type: { @@ -3466,7 +2257,7 @@ export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper element: { type: { name: "Composite", - className: "ArtifactInstallPropertiesFragment" + className: "ArtifactInstallProperties" } } } @@ -3475,27 +2266,35 @@ export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper serializedName: "properties.artifactDeploymentStatus", type: { name: "Composite", - className: "ArtifactDeploymentStatusPropertiesFragment" + className: "ArtifactDeploymentStatusProperties" } }, galleryImageReference: { serializedName: "properties.galleryImageReference", type: { name: "Composite", - className: "GalleryImageReferenceFragment" + className: "GalleryImageReference" } }, - planId: { - serializedName: "properties.planId", + computeVm: { + serializedName: "properties.computeVm", type: { - name: "String" + name: "Composite", + className: "ComputeVmProperties" } }, networkInterface: { serializedName: "properties.networkInterface", type: { name: "Composite", - className: "NetworkInterfacePropertiesFragment" + className: "NetworkInterfaceProperties" + } + }, + applicableSchedule: { + serializedName: "properties.applicableSchedule", + type: { + name: "Composite", + className: "ApplicableSchedule" } }, expirationDate: { @@ -3528,32 +2327,14 @@ export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper name: "String" } }, - dataDiskParameters: { - serializedName: "properties.dataDiskParameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDiskPropertiesFragment" - } - } - } - }, - scheduleParameters: { - serializedName: "properties.scheduleParameters", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScheduleCreationParameterFragment" - } - } + name: "String" } }, - lastKnownPowerState: { - serializedName: "properties.lastKnownPowerState", + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", type: { name: "String" } @@ -3585,11 +2366,11 @@ export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper } }; -export const FormulaPropertiesFromVmFragment: msRest.CompositeMapper = { - serializedName: "FormulaPropertiesFromVmFragment", +export const FormulaPropertiesFromVm: msRest.CompositeMapper = { + serializedName: "FormulaPropertiesFromVm", type: { name: "Composite", - className: "FormulaPropertiesFromVmFragment", + className: "FormulaPropertiesFromVm", modelProperties: { labVmId: { serializedName: "labVmId", @@ -3601,13 +2382,13 @@ export const FormulaPropertiesFromVmFragment: msRest.CompositeMapper = { } }; -export const FormulaFragment: msRest.CompositeMapper = { - serializedName: "FormulaFragment", +export const Formula: msRest.CompositeMapper = { + serializedName: "Formula", type: { name: "Composite", - className: "FormulaFragment", + className: "Formula", modelProperties: { - ...UpdateResource.type.modelProperties, + ...Resource.type.modelProperties, description: { serializedName: "properties.description", type: { @@ -3626,18 +2407,37 @@ export const FormulaFragment: msRest.CompositeMapper = { name: "String" } }, + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", + type: { + name: "DateTime" + } + }, formulaContent: { serializedName: "properties.formulaContent", type: { name: "Composite", - className: "LabVirtualMachineCreationParameterFragment" + className: "LabVirtualMachineCreationParameter" } }, vm: { serializedName: "properties.vm", type: { name: "Composite", - className: "FormulaPropertiesFromVmFragment" + className: "FormulaPropertiesFromVm" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" } } } @@ -3688,17 +2488,45 @@ export const GalleryImage: msRest.CompositeMapper = { type: { name: "Boolean" } + } + } + } +}; + +export const GalleryImageReferenceFragment: msRest.CompositeMapper = { + serializedName: "GalleryImageReferenceFragment", + type: { + name: "Composite", + className: "GalleryImageReferenceFragment", + modelProperties: { + offer: { + serializedName: "offer", + type: { + name: "String" + } + }, + publisher: { + serializedName: "publisher", + type: { + name: "String" + } }, - planId: { - serializedName: "properties.planId", + sku: { + serializedName: "sku", type: { name: "String" } }, - isPlanAuthorized: { - serializedName: "properties.isPlanAuthorized", + osType: { + serializedName: "osType", type: { - name: "Boolean" + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" } } } @@ -3833,98 +2661,28 @@ export const IdentityProperties: msRest.CompositeMapper = { } }; -export const ImportLabVirtualMachineRequest: msRest.CompositeMapper = { - serializedName: "ImportLabVirtualMachineRequest", - type: { - name: "Composite", - className: "ImportLabVirtualMachineRequest", - modelProperties: { - sourceVirtualMachineResourceId: { - serializedName: "sourceVirtualMachineResourceId", - type: { - name: "String" - } - }, - destinationVirtualMachineName: { - serializedName: "destinationVirtualMachineName", - type: { - name: "String" - } - } - } - } -}; - -export const LabAnnouncementProperties: msRest.CompositeMapper = { - serializedName: "LabAnnouncementProperties", - type: { - name: "Composite", - className: "LabAnnouncementProperties", - modelProperties: { - title: { - serializedName: "title", - type: { - name: "String" - } - }, - markdown: { - serializedName: "markdown", - type: { - name: "String" - } - }, - enabled: { - serializedName: "enabled", - type: { - name: "String" - } - }, - expirationDate: { - serializedName: "expirationDate", - type: { - name: "DateTime" - } - }, - expired: { - serializedName: "expired", - type: { - name: "Boolean" - } - }, - provisioningState: { - readOnly: true, - serializedName: "provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - readOnly: true, - serializedName: "uniqueIdentifier", - type: { - name: "String" - } - } - } - } -}; - -export const LabSupportProperties: msRest.CompositeMapper = { - serializedName: "LabSupportProperties", +export const InboundNatRuleFragment: msRest.CompositeMapper = { + serializedName: "InboundNatRuleFragment", type: { name: "Composite", - className: "LabSupportProperties", + className: "InboundNatRuleFragment", modelProperties: { - enabled: { - serializedName: "enabled", + transportProtocol: { + serializedName: "transportProtocol", type: { name: "String" } }, - markdown: { - serializedName: "markdown", + frontendPort: { + serializedName: "frontendPort", + type: { + name: "Number" + } + }, + backendPort: { + serializedName: "backendPort", type: { - name: "String" + name: "Number" } } } @@ -3979,28 +2737,6 @@ export const Lab: msRest.CompositeMapper = { name: "String" } }, - mandatoryArtifactsResourceIdsLinux: { - serializedName: "properties.mandatoryArtifactsResourceIdsLinux", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - mandatoryArtifactsResourceIdsWindows: { - serializedName: "properties.mandatoryArtifactsResourceIdsWindows", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, createdDate: { readOnly: true, serializedName: "properties.createdDate", @@ -4014,74 +2750,13 @@ export const Lab: msRest.CompositeMapper = { name: "String" } }, - environmentPermission: { - serializedName: "properties.environmentPermission", - type: { - name: "String" - } - }, - announcement: { - serializedName: "properties.announcement", - type: { - name: "Composite", - className: "LabAnnouncementProperties" - } - }, - support: { - serializedName: "properties.support", - type: { - name: "Composite", - className: "LabSupportProperties" - } - }, - vmCreationResourceGroup: { - readOnly: true, - serializedName: "properties.vmCreationResourceGroup", - type: { - name: "String" - } - }, - publicIpId: { - readOnly: true, - serializedName: "properties.publicIpId", - type: { - name: "String" - } - }, - loadBalancerId: { - readOnly: true, - serializedName: "properties.loadBalancerId", - type: { - name: "String" - } - }, - networkSecurityGroupId: { - readOnly: true, - serializedName: "properties.networkSecurityGroupId", - type: { - name: "String" - } - }, - extendedProperties: { - serializedName: "properties.extendedProperties", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -4091,46 +2766,6 @@ export const Lab: msRest.CompositeMapper = { } }; -export const LabAnnouncementPropertiesFragment: msRest.CompositeMapper = { - serializedName: "LabAnnouncementPropertiesFragment", - type: { - name: "Composite", - className: "LabAnnouncementPropertiesFragment", - modelProperties: { - title: { - serializedName: "title", - type: { - name: "String" - } - }, - markdown: { - serializedName: "markdown", - type: { - name: "String" - } - }, - enabled: { - serializedName: "enabled", - type: { - name: "String" - } - }, - expirationDate: { - serializedName: "expirationDate", - type: { - name: "DateTime" - } - }, - expired: { - serializedName: "expired", - type: { - name: "Boolean" - } - } - } - } -}; - export const TargetCostProperties: msRest.CompositeMapper = { serializedName: "TargetCostProperties", type: { @@ -4364,14 +2999,12 @@ export const LabCost: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -4381,98 +3014,35 @@ export const LabCost: msRest.CompositeMapper = { } }; -export const LabSupportPropertiesFragment: msRest.CompositeMapper = { - serializedName: "LabSupportPropertiesFragment", - type: { - name: "Composite", - className: "LabSupportPropertiesFragment", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "String" - } - }, - markdown: { - serializedName: "markdown", - type: { - name: "String" - } - } - } - } -}; - export const LabFragment: msRest.CompositeMapper = { serializedName: "LabFragment", type: { name: "Composite", className: "LabFragment", modelProperties: { - ...UpdateResource.type.modelProperties, + ...Resource.type.modelProperties, labStorageType: { serializedName: "properties.labStorageType", type: { name: "String" } }, - mandatoryArtifactsResourceIdsLinux: { - serializedName: "properties.mandatoryArtifactsResourceIdsLinux", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - mandatoryArtifactsResourceIdsWindows: { - serializedName: "properties.mandatoryArtifactsResourceIdsWindows", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, premiumDataDisks: { serializedName: "properties.premiumDataDisks", type: { name: "String" } }, - environmentPermission: { - serializedName: "properties.environmentPermission", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } }, - announcement: { - serializedName: "properties.announcement", - type: { - name: "Composite", - className: "LabAnnouncementPropertiesFragment" - } - }, - support: { - serializedName: "properties.support", - type: { - name: "Composite", - className: "LabSupportPropertiesFragment" - } - }, - extendedProperties: { - serializedName: "properties.extendedProperties", + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } } } @@ -4539,6 +3109,7 @@ export const LabVirtualMachine: msRest.CompositeMapper = { } }, computeId: { + readOnly: true, serializedName: "properties.computeId", type: { name: "String" @@ -4636,14 +3207,7 @@ export const LabVirtualMachine: msRest.CompositeMapper = { className: "GalleryImageReference" } }, - planId: { - serializedName: "properties.planId", - type: { - name: "String" - } - }, computeVm: { - readOnly: true, serializedName: "properties.computeVm", type: { name: "Composite", @@ -4658,7 +3222,6 @@ export const LabVirtualMachine: msRest.CompositeMapper = { } }, applicableSchedule: { - readOnly: true, serializedName: "properties.applicableSchedule", type: { name: "Composite", @@ -4695,48 +3258,103 @@ export const LabVirtualMachine: msRest.CompositeMapper = { name: "String" } }, - dataDiskParameters: { - serializedName: "properties.dataDiskParameters", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDiskProperties" - } - } + name: "String" } }, - scheduleParameters: { - serializedName: "properties.scheduleParameters", + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + } + } + } +}; + +export const SharedPublicIpAddressConfigurationFragment: msRest.CompositeMapper = { + serializedName: "SharedPublicIpAddressConfigurationFragment", + type: { + name: "Composite", + className: "SharedPublicIpAddressConfigurationFragment", + modelProperties: { + inboundNatRules: { + serializedName: "inboundNatRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ScheduleCreationParameter" + className: "InboundNatRuleFragment" } } } + } + } + } +}; + +export const NetworkInterfacePropertiesFragment: msRest.CompositeMapper = { + serializedName: "NetworkInterfacePropertiesFragment", + type: { + name: "Composite", + className: "NetworkInterfacePropertiesFragment", + modelProperties: { + virtualNetworkId: { + serializedName: "virtualNetworkId", + type: { + name: "String" + } }, - lastKnownPowerState: { - serializedName: "properties.lastKnownPowerState", + subnetId: { + serializedName: "subnetId", type: { name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + publicIpAddressId: { + serializedName: "publicIpAddressId", type: { name: "String" } }, - uniqueIdentifier: { - readOnly: true, - serializedName: "properties.uniqueIdentifier", + publicIpAddress: { + serializedName: "publicIpAddress", + type: { + name: "String" + } + }, + privateIpAddress: { + serializedName: "privateIpAddress", + type: { + name: "String" + } + }, + dnsName: { + serializedName: "dnsName", + type: { + name: "String" + } + }, + rdpAuthority: { + serializedName: "rdpAuthority", + type: { + name: "String" + } + }, + sshAuthority: { + serializedName: "sshAuthority", + type: { + name: "String" + } + }, + sharedPublicIpAddressConfiguration: { + serializedName: "sharedPublicIpAddressConfiguration", type: { - name: "String" + name: "Composite", + className: "SharedPublicIpAddressConfigurationFragment" } } } @@ -4749,7 +3367,7 @@ export const LabVirtualMachineFragment: msRest.CompositeMapper = { name: "Composite", className: "LabVirtualMachineFragment", modelProperties: { - ...UpdateResource.type.modelProperties, + ...Resource.type.modelProperties, notes: { serializedName: "properties.notes", type: { @@ -4786,12 +3404,6 @@ export const LabVirtualMachineFragment: msRest.CompositeMapper = { name: "DateTime" } }, - computeId: { - serializedName: "properties.computeId", - type: { - name: "String" - } - }, customImageId: { serializedName: "properties.customImageId", type: { @@ -4884,10 +3496,11 @@ export const LabVirtualMachineFragment: msRest.CompositeMapper = { className: "GalleryImageReferenceFragment" } }, - planId: { - serializedName: "properties.planId", + computeVm: { + serializedName: "properties.computeVm", type: { - name: "String" + name: "Composite", + className: "ComputeVmPropertiesFragment" } }, networkInterface: { @@ -4897,6 +3510,13 @@ export const LabVirtualMachineFragment: msRest.CompositeMapper = { className: "NetworkInterfacePropertiesFragment" } }, + applicableSchedule: { + serializedName: "properties.applicableSchedule", + type: { + name: "Composite", + className: "ApplicableScheduleFragment" + } + }, expirationDate: { serializedName: "properties.expirationDate", type: { @@ -4927,32 +3547,14 @@ export const LabVirtualMachineFragment: msRest.CompositeMapper = { name: "String" } }, - dataDiskParameters: { - serializedName: "properties.dataDiskParameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDiskPropertiesFragment" - } - } - } - }, - scheduleParameters: { - serializedName: "properties.scheduleParameters", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScheduleCreationParameterFragment" - } - } + name: "String" } }, - lastKnownPowerState: { - serializedName: "properties.lastKnownPowerState", + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", type: { name: "String" } @@ -4974,18 +3576,6 @@ export const NotificationChannel: msRest.CompositeMapper = { name: "String" } }, - emailRecipient: { - serializedName: "properties.emailRecipient", - type: { - name: "String" - } - }, - notificationLocale: { - serializedName: "properties.notificationLocale", - type: { - name: "String" - } - }, description: { serializedName: "properties.description", type: { @@ -5012,14 +3602,12 @@ export const NotificationChannel: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -5035,25 +3623,13 @@ export const NotificationChannelFragment: msRest.CompositeMapper = { name: "Composite", className: "NotificationChannelFragment", modelProperties: { - ...UpdateResource.type.modelProperties, + ...Resource.type.modelProperties, webHookUrl: { serializedName: "properties.webHookUrl", type: { name: "String" } }, - emailRecipient: { - serializedName: "properties.emailRecipient", - type: { - name: "String" - } - }, - notificationLocale: { - serializedName: "properties.notificationLocale", - type: { - name: "String" - } - }, description: { serializedName: "properties.description", type: { @@ -5071,6 +3647,18 @@ export const NotificationChannelFragment: msRest.CompositeMapper = { } } } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } } } } @@ -5257,14 +3845,12 @@ export const Policy: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -5280,7 +3866,7 @@ export const PolicyFragment: msRest.CompositeMapper = { name: "Composite", className: "PolicyFragment", modelProperties: { - ...UpdateResource.type.modelProperties, + ...Resource.type.modelProperties, description: { serializedName: "properties.description", type: { @@ -5316,6 +3902,18 @@ export const PolicyFragment: msRest.CompositeMapper = { type: { name: "String" } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } } } } @@ -5365,38 +3963,6 @@ export const PortFragment: msRest.CompositeMapper = { } }; -export const RdpConnection: msRest.CompositeMapper = { - serializedName: "RdpConnection", - type: { - name: "Composite", - className: "RdpConnection", - modelProperties: { - contents: { - serializedName: "contents", - type: { - name: "String" - } - } - } - } -}; - -export const ResizeLabVirtualMachineProperties: msRest.CompositeMapper = { - serializedName: "ResizeLabVirtualMachineProperties", - type: { - name: "Composite", - className: "ResizeLabVirtualMachineProperties", - modelProperties: { - size: { - serializedName: "size", - type: { - name: "String" - } - } - } - } -}; - export const RetargetScheduleProperties: msRest.CompositeMapper = { serializedName: "RetargetScheduleProperties", type: { @@ -5433,76 +3999,12 @@ export const Secret: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - readOnly: true, - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" - } - } - } - } -}; - -export const SecretFragment: msRest.CompositeMapper = { - serializedName: "SecretFragment", - type: { - name: "Composite", - className: "SecretFragment", - modelProperties: { - ...UpdateResource.type.modelProperties, - value: { - serializedName: "properties.value", - type: { - name: "String" - } - } - } - } -}; - -export const ServiceFabric: msRest.CompositeMapper = { - serializedName: "ServiceFabric", - type: { - name: "Composite", - className: "ServiceFabric", - modelProperties: { - ...Resource.type.modelProperties, - externalServiceFabricId: { - serializedName: "properties.externalServiceFabricId", - type: { - name: "String" - } - }, - environmentId: { - serializedName: "properties.environmentId", - type: { - name: "String" - } - }, - applicableSchedule: { - readOnly: true, - serializedName: "properties.applicableSchedule", - type: { - name: "Composite", - className: "ApplicableSchedule" - } - }, - provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -5512,29 +4014,6 @@ export const ServiceFabric: msRest.CompositeMapper = { } }; -export const ServiceFabricFragment: msRest.CompositeMapper = { - serializedName: "ServiceFabricFragment", - type: { - name: "Composite", - className: "ServiceFabricFragment", - modelProperties: { - ...UpdateResource.type.modelProperties, - externalServiceFabricId: { - serializedName: "properties.externalServiceFabricId", - type: { - name: "String" - } - }, - environmentId: { - serializedName: "properties.environmentId", - type: { - name: "String" - } - } - } - } -}; - export const ServiceRunner: msRest.CompositeMapper = { serializedName: "ServiceRunner", type: { @@ -5595,18 +4074,6 @@ export const ShutdownNotificationContent: msRest.CompositeMapper = { name: "String" } }, - vmUrl: { - serializedName: "vmUrl", - type: { - name: "String" - } - }, - minutesUntilShutdown: { - serializedName: "minutesUntilShutdown", - type: { - name: "String" - } - }, eventType: { serializedName: "eventType", type: { @@ -5926,14 +4393,12 @@ export const User: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -6011,7 +4476,7 @@ export const UserFragment: msRest.CompositeMapper = { name: "Composite", className: "UserFragment", modelProperties: { - ...UpdateResource.type.modelProperties, + ...Resource.type.modelProperties, identity: { serializedName: "properties.identity", type: { @@ -6025,6 +4490,18 @@ export const UserFragment: msRest.CompositeMapper = { name: "Composite", className: "UserSecretStoreFragment" } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } } } } @@ -6062,7 +4539,6 @@ export const VirtualNetwork: msRest.CompositeMapper = { } }, externalSubnets: { - readOnly: true, serializedName: "properties.externalSubnets", type: { name: "Sequence", @@ -6094,14 +4570,12 @@ export const VirtualNetwork: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { - readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -6117,7 +4591,7 @@ export const VirtualNetworkFragment: msRest.CompositeMapper = { name: "Composite", className: "VirtualNetworkFragment", modelProperties: { - ...UpdateResource.type.modelProperties, + ...Resource.type.modelProperties, allowedSubnets: { serializedName: "properties.allowedSubnets", type: { @@ -6142,6 +4616,18 @@ export const VirtualNetworkFragment: msRest.CompositeMapper = { name: "String" } }, + externalSubnets: { + serializedName: "properties.externalSubnets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExternalSubnetFragment" + } + } + } + }, subnetOverrides: { serializedName: "properties.subnetOverrides", type: { @@ -6153,6 +4639,18 @@ export const VirtualNetworkFragment: msRest.CompositeMapper = { } } } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } } } } @@ -6187,11 +4685,11 @@ export const ProviderOperationResult: msRest.CompositeMapper = { } }; -export const LabList: msRest.CompositeMapper = { - serializedName: "LabList", +export const ResponseWithContinuationLab: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_Lab_", type: { name: "Composite", - className: "LabList", + className: "ResponseWithContinuationLab", modelProperties: { value: { serializedName: "", @@ -6215,11 +4713,11 @@ export const LabList: msRest.CompositeMapper = { } }; -export const LabVhdList: msRest.CompositeMapper = { - serializedName: "LabVhdList", +export const ResponseWithContinuationLabVhd: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_LabVhd_", type: { name: "Composite", - className: "LabVhdList", + className: "ResponseWithContinuationLabVhd", modelProperties: { value: { serializedName: "", @@ -6243,11 +4741,11 @@ export const LabVhdList: msRest.CompositeMapper = { } }; -export const ScheduleList: msRest.CompositeMapper = { - serializedName: "ScheduleList", +export const ResponseWithContinuationSchedule: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_Schedule_", type: { name: "Composite", - className: "ScheduleList", + className: "ResponseWithContinuationSchedule", modelProperties: { value: { serializedName: "", @@ -6271,11 +4769,11 @@ export const ScheduleList: msRest.CompositeMapper = { } }; -export const ArtifactSourceList: msRest.CompositeMapper = { - serializedName: "ArtifactSourceList", +export const ResponseWithContinuationArtifactSource: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_ArtifactSource_", type: { name: "Composite", - className: "ArtifactSourceList", + className: "ResponseWithContinuationArtifactSource", modelProperties: { value: { serializedName: "", @@ -6299,11 +4797,11 @@ export const ArtifactSourceList: msRest.CompositeMapper = { } }; -export const ArmTemplateList: msRest.CompositeMapper = { - serializedName: "ArmTemplateList", +export const ResponseWithContinuationArmTemplate: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_ArmTemplate_", type: { name: "Composite", - className: "ArmTemplateList", + className: "ResponseWithContinuationArmTemplate", modelProperties: { value: { serializedName: "", @@ -6327,11 +4825,11 @@ export const ArmTemplateList: msRest.CompositeMapper = { } }; -export const ArtifactList: msRest.CompositeMapper = { - serializedName: "ArtifactList", +export const ResponseWithContinuationArtifact: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_Artifact_", type: { name: "Composite", - className: "ArtifactList", + className: "ResponseWithContinuationArtifact", modelProperties: { value: { serializedName: "", @@ -6355,11 +4853,11 @@ export const ArtifactList: msRest.CompositeMapper = { } }; -export const CustomImageList: msRest.CompositeMapper = { - serializedName: "CustomImageList", +export const ResponseWithContinuationCustomImage: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_CustomImage_", type: { name: "Composite", - className: "CustomImageList", + className: "ResponseWithContinuationCustomImage", modelProperties: { value: { serializedName: "", @@ -6383,11 +4881,11 @@ export const CustomImageList: msRest.CompositeMapper = { } }; -export const FormulaList: msRest.CompositeMapper = { - serializedName: "FormulaList", +export const ResponseWithContinuationFormula: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_Formula_", type: { name: "Composite", - className: "FormulaList", + className: "ResponseWithContinuationFormula", modelProperties: { value: { serializedName: "", @@ -6411,11 +4909,11 @@ export const FormulaList: msRest.CompositeMapper = { } }; -export const GalleryImageList: msRest.CompositeMapper = { - serializedName: "GalleryImageList", +export const ResponseWithContinuationGalleryImage: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_GalleryImage_", type: { name: "Composite", - className: "GalleryImageList", + className: "ResponseWithContinuationGalleryImage", modelProperties: { value: { serializedName: "", @@ -6439,11 +4937,11 @@ export const GalleryImageList: msRest.CompositeMapper = { } }; -export const NotificationChannelList: msRest.CompositeMapper = { - serializedName: "NotificationChannelList", +export const ResponseWithContinuationNotificationChannel: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_NotificationChannel_", type: { name: "Composite", - className: "NotificationChannelList", + className: "ResponseWithContinuationNotificationChannel", modelProperties: { value: { serializedName: "", @@ -6467,11 +4965,11 @@ export const NotificationChannelList: msRest.CompositeMapper = { } }; -export const PolicyList: msRest.CompositeMapper = { - serializedName: "PolicyList", +export const ResponseWithContinuationPolicy: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_Policy_", type: { name: "Composite", - className: "PolicyList", + className: "ResponseWithContinuationPolicy", modelProperties: { value: { serializedName: "", @@ -6495,11 +4993,11 @@ export const PolicyList: msRest.CompositeMapper = { } }; -export const ServiceRunnerList: msRest.CompositeMapper = { - serializedName: "ServiceRunnerList", +export const ResponseWithContinuationServiceRunner: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_ServiceRunner_", type: { name: "Composite", - className: "ServiceRunnerList", + className: "ResponseWithContinuationServiceRunner", modelProperties: { value: { serializedName: "", @@ -6523,11 +5021,11 @@ export const ServiceRunnerList: msRest.CompositeMapper = { } }; -export const UserList: msRest.CompositeMapper = { - serializedName: "UserList", +export const ResponseWithContinuationUser: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_User_", type: { name: "Composite", - className: "UserList", + className: "ResponseWithContinuationUser", modelProperties: { value: { serializedName: "", @@ -6551,11 +5049,11 @@ export const UserList: msRest.CompositeMapper = { } }; -export const DiskList: msRest.CompositeMapper = { - serializedName: "DiskList", +export const ResponseWithContinuationDisk: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_Disk_", type: { name: "Composite", - className: "DiskList", + className: "ResponseWithContinuationDisk", modelProperties: { value: { serializedName: "", @@ -6579,11 +5077,11 @@ export const DiskList: msRest.CompositeMapper = { } }; -export const DtlEnvironmentList: msRest.CompositeMapper = { - serializedName: "DtlEnvironmentList", +export const ResponseWithContinuationDtlEnvironment: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_DtlEnvironment_", type: { name: "Composite", - className: "DtlEnvironmentList", + className: "ResponseWithContinuationDtlEnvironment", modelProperties: { value: { serializedName: "", @@ -6607,11 +5105,11 @@ export const DtlEnvironmentList: msRest.CompositeMapper = { } }; -export const SecretList: msRest.CompositeMapper = { - serializedName: "SecretList", +export const ResponseWithContinuationSecret: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_Secret_", type: { name: "Composite", - className: "SecretList", + className: "ResponseWithContinuationSecret", modelProperties: { value: { serializedName: "", @@ -6635,39 +5133,11 @@ export const SecretList: msRest.CompositeMapper = { } }; -export const ServiceFabricList: msRest.CompositeMapper = { - serializedName: "ServiceFabricList", - type: { - name: "Composite", - className: "ServiceFabricList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceFabric" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const LabVirtualMachineList: msRest.CompositeMapper = { - serializedName: "LabVirtualMachineList", +export const ResponseWithContinuationLabVirtualMachine: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_LabVirtualMachine_", type: { name: "Composite", - className: "LabVirtualMachineList", + className: "ResponseWithContinuationLabVirtualMachine", modelProperties: { value: { serializedName: "", @@ -6691,11 +5161,11 @@ export const LabVirtualMachineList: msRest.CompositeMapper = { } }; -export const VirtualNetworkList: msRest.CompositeMapper = { - serializedName: "VirtualNetworkList", +export const ResponseWithContinuationVirtualNetwork: msRest.CompositeMapper = { + serializedName: "ResponseWithContinuation_VirtualNetwork_", type: { name: "Composite", - className: "VirtualNetworkList", + className: "ResponseWithContinuationVirtualNetwork", modelProperties: { value: { serializedName: "", diff --git a/packages/@azure/arm-devtestlabs/lib/models/notificationChannelsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/notificationChannelsMappers.ts index 742ab059452e..2d59254b3d67 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/notificationChannelsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/notificationChannelsMappers.ts @@ -9,14 +9,13 @@ */ export { - NotificationChannelList, + ResponseWithContinuationNotificationChannel, NotificationChannel, Resource, BaseResource, Event, CloudError, NotificationChannelFragment, - UpdateResource, EventFragment, NotifyParameters, Schedule, @@ -41,23 +40,10 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -65,31 +51,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -98,19 +68,21 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -127,6 +99,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/parameters.ts b/packages/@azure/arm-devtestlabs/lib/models/parameters.ts index 4d9dc9956d4e..8a7469513425 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/parameters.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/parameters.ts @@ -25,7 +25,7 @@ export const apiVersion: msRest.OperationQueryParameter = { mapper: { required: true, serializedName: "api-version", - defaultValue: '2018-09-15', + defaultValue: '2016-05-15', type: { name: "String" } @@ -138,16 +138,6 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; -export const serviceFabricName: msRest.OperationURLParameter = { - parameterPath: "serviceFabricName", - mapper: { - required: true, - serializedName: "serviceFabricName", - type: { - name: "String" - } - } -}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { diff --git a/packages/@azure/arm-devtestlabs/lib/models/policiesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/policiesMappers.ts index f64d92936376..de68aedb0fd2 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/policiesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/policiesMappers.ts @@ -9,13 +9,12 @@ */ export { - PolicyList, + ResponseWithContinuationPolicy, Policy, Resource, BaseResource, CloudError, PolicyFragment, - UpdateResource, Schedule, WeekDetails, DayDetails, @@ -38,23 +37,10 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -62,31 +48,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -95,21 +65,23 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, EventFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -126,6 +98,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/schedulesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/schedulesMappers.ts index c9d5c7833953..5429a3df0517 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/schedulesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/schedulesMappers.ts @@ -9,7 +9,7 @@ */ export { - ScheduleList, + ResponseWithContinuationSchedule, Schedule, Resource, BaseResource, @@ -19,7 +19,6 @@ export { NotificationSettings, CloudError, ScheduleFragment, - UpdateResource, WeekDetailsFragment, DayDetailsFragment, HourDetailsFragment, @@ -36,23 +35,10 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -60,31 +46,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -93,13 +63,18 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -107,9 +82,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -126,6 +98,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/secretsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/secretsMappers.ts index 8a0011dd8996..48b6c49295e8 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/secretsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/secretsMappers.ts @@ -9,13 +9,11 @@ */ export { - SecretList, + ResponseWithContinuationSecret, Secret, Resource, BaseResource, CloudError, - SecretFragment, - UpdateResource, Schedule, WeekDetails, DayDetails, @@ -38,23 +36,10 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -62,31 +47,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -95,21 +64,24 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, EventFragment, Policy, PolicyFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -126,6 +98,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/serviceRunnersMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/serviceRunnersMappers.ts index b12f9353c762..b906967639e4 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/serviceRunnersMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/serviceRunnersMappers.ts @@ -9,7 +9,7 @@ */ export { - ServiceRunnerList, + ResponseWithContinuationServiceRunner, ServiceRunner, Resource, BaseResource, @@ -21,17 +21,22 @@ export { HourDetails, NotificationSettings, ApplicableSchedule, + ScheduleFragment, + WeekDetailsFragment, + DayDetailsFragment, + HourDetailsFragment, + NotificationSettingsFragment, + ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, Artifact, ArtifactSource, + ArtifactSourceFragment, CustomImage, CustomImagePropertiesFromVm, WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, Disk, DtlEnvironment, EnvironmentDeploymentProperties, @@ -43,17 +48,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -61,23 +64,43 @@ export { LabCostSummaryProperties, LabCostDetailsProperties, LabResourceCostProperties, + LabFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, + LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, + NotificationChannelFragment, + EventFragment, Policy, + PolicyFragment, Secret, - ServiceFabric, User, UserIdentity, UserSecretStore, + UserFragment, + UserIdentityFragment, + UserSecretStoreFragment, VirtualNetwork, Subnet, ExternalSubnet, SubnetOverride, SubnetSharedPublicIpAddressConfiguration, - Port + Port, + VirtualNetworkFragment, + SubnetFragment, + ExternalSubnetFragment, + SubnetOverrideFragment, + SubnetSharedPublicIpAddressConfigurationFragment, + PortFragment } from "../models/mappers"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/usersMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/usersMappers.ts index 3d4b55bbfc91..028cdea12722 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/usersMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/usersMappers.ts @@ -9,7 +9,7 @@ */ export { - UserList, + ResponseWithContinuationUser, User, Resource, BaseResource, @@ -17,7 +17,6 @@ export { UserSecretStore, CloudError, UserFragment, - UpdateResource, UserIdentityFragment, UserSecretStoreFragment, Schedule, @@ -42,23 +41,10 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -66,31 +52,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -99,13 +69,18 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -113,9 +88,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, VirtualNetwork, @@ -126,6 +98,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/virtualMachineSchedulesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/virtualMachineSchedulesMappers.ts index c9d5c7833953..5429a3df0517 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/virtualMachineSchedulesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/virtualMachineSchedulesMappers.ts @@ -9,7 +9,7 @@ */ export { - ScheduleList, + ResponseWithContinuationSchedule, Schedule, Resource, BaseResource, @@ -19,7 +19,6 @@ export { NotificationSettings, CloudError, ScheduleFragment, - UpdateResource, WeekDetailsFragment, DayDetailsFragment, HourDetailsFragment, @@ -36,23 +35,10 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -60,31 +46,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -93,13 +63,18 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -107,9 +82,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -126,6 +98,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/virtualMachinesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/virtualMachinesMappers.ts index c197025e4caf..4d4a79ab546c 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/virtualMachinesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/virtualMachinesMappers.ts @@ -9,7 +9,7 @@ */ export { - LabVirtualMachineList, + ResponseWithContinuationLabVirtualMachine, LabVirtualMachine, Resource, BaseResource, @@ -29,32 +29,28 @@ export { DayDetails, HourDetails, NotificationSettings, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, CloudError, LabVirtualMachineFragment, - UpdateResource, ArtifactInstallPropertiesFragment, ArtifactParameterPropertiesFragment, ArtifactDeploymentStatusPropertiesFragment, GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, NetworkInterfacePropertiesFragment, SharedPublicIpAddressConfigurationFragment, InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, + ApplicableScheduleFragment, + ScheduleFragment, WeekDetailsFragment, DayDetailsFragment, HourDetailsFragment, NotificationSettingsFragment, + DataDiskProperties, + AttachNewDataDiskOptions, ApplyArtifactsRequest, DetachDataDiskProperties, - RdpConnection, - ResizeLabVirtualMachineProperties, - ScheduleFragment, - ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, Artifact, @@ -65,35 +61,16 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -102,8 +79,6 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -111,9 +86,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -130,6 +102,7 @@ export { Port, VirtualNetworkFragment, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/virtualNetworksMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/virtualNetworksMappers.ts index eaa5366d25f1..7ab24e8b848e 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/virtualNetworksMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/virtualNetworksMappers.ts @@ -9,7 +9,7 @@ */ export { - VirtualNetworkList, + ResponseWithContinuationVirtualNetwork, VirtualNetwork, Resource, BaseResource, @@ -20,8 +20,8 @@ export { Port, CloudError, VirtualNetworkFragment, - UpdateResource, SubnetFragment, + ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment, @@ -47,23 +47,10 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, - DataDiskStorageTypeInfo, - CustomImagePropertiesFromPlan, - CustomImageFragment, - CustomImagePropertiesFromVmFragment, - WindowsOsInfoFragment, - LinuxOsInfoFragment, - CustomImagePropertiesCustomFragment, - DataDiskStorageTypeInfoFragment, - CustomImagePropertiesFromPlanFragment, Disk, - DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, - DtlEnvironmentFragment, - EnvironmentDeploymentPropertiesFragment, - ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -71,31 +58,15 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - DataDiskProperties, - AttachNewDataDiskOptions, - ScheduleCreationParameter, FormulaPropertiesFromVm, - FormulaFragment, - LabVirtualMachineCreationParameterFragment, - BulkCreationParametersFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, - DataDiskPropertiesFragment, - AttachNewDataDiskOptionsFragment, - ScheduleCreationParameterFragment, - FormulaPropertiesFromVmFragment, GalleryImage, Lab, - LabAnnouncementProperties, - LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -104,13 +75,18 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, - LabAnnouncementPropertiesFragment, - LabSupportPropertiesFragment, LabVirtualMachine, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, LabVirtualMachineFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + ComputeVmPropertiesFragment, + ComputeVmInstanceViewStatusFragment, + ComputeDataDiskFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -118,9 +94,6 @@ export { Policy, PolicyFragment, Secret, - SecretFragment, - ServiceFabric, - ServiceFabricFragment, ServiceRunner, IdentityProperties, User, diff --git a/packages/@azure/arm-devtestlabs/lib/operations/armTemplates.ts b/packages/@azure/arm-devtestlabs/lib/operations/armTemplates.ts index fb8b2e69d877..9cb82b1a89c1 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/armTemplates.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/armTemplates.ts @@ -41,7 +41,7 @@ export class ArmTemplates { * @param artifactSourceName The name of the artifact source. * @param callback The callback */ - list(resourceGroupName: string, labName: string, artifactSourceName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, artifactSourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -49,8 +49,8 @@ export class ArmTemplates { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, artifactSourceName: string, options: Models.ArmTemplatesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, artifactSourceName: string, options?: Models.ArmTemplatesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, artifactSourceName: string, options: Models.ArmTemplatesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, artifactSourceName: string, options?: Models.ArmTemplatesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -113,14 +113,14 @@ export class ArmTemplates { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -154,7 +154,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ArmTemplateList + bodyMapper: Mappers.ResponseWithContinuationArmTemplate }, default: { bodyMapper: Mappers.CloudError @@ -203,7 +203,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ArmTemplateList + bodyMapper: Mappers.ResponseWithContinuationArmTemplate }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/artifactSources.ts b/packages/@azure/arm-devtestlabs/lib/operations/artifactSources.ts index 866fdbaf59b9..8a2a12e85f46 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/artifactSources.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/artifactSources.ts @@ -39,15 +39,15 @@ export class ArtifactSources { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.ArtifactSourcesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.ArtifactSourcesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.ArtifactSourcesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.ArtifactSourcesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -221,14 +221,14 @@ export class ArtifactSources { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -261,7 +261,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ArtifactSourceList + bodyMapper: Mappers.ResponseWithContinuationArtifactSource }, default: { bodyMapper: Mappers.CloudError @@ -403,7 +403,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ArtifactSourceList + bodyMapper: Mappers.ResponseWithContinuationArtifactSource }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/artifacts.ts b/packages/@azure/arm-devtestlabs/lib/operations/artifacts.ts index bda29b2c22b4..7562241a4b78 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/artifacts.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/artifacts.ts @@ -41,7 +41,7 @@ export class Artifacts { * @param artifactSourceName The name of the artifact source. * @param callback The callback */ - list(resourceGroupName: string, labName: string, artifactSourceName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, artifactSourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -49,8 +49,8 @@ export class Artifacts { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, artifactSourceName: string, options: Models.ArtifactsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, artifactSourceName: string, options?: Models.ArtifactsListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, artifactSourceName: string, options: Models.ArtifactsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, artifactSourceName: string, options?: Models.ArtifactsListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -161,14 +161,14 @@ export class Artifacts { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -202,7 +202,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ArtifactList + bodyMapper: Mappers.ResponseWithContinuationArtifact }, default: { bodyMapper: Mappers.CloudError @@ -285,7 +285,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ArtifactList + bodyMapper: Mappers.ResponseWithContinuationArtifact }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/customImages.ts b/packages/@azure/arm-devtestlabs/lib/operations/customImages.ts index 2cca0338cff5..e67b5c7d5968 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/customImages.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/customImages.ts @@ -40,15 +40,15 @@ export class CustomImages { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.CustomImagesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.CustomImagesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.CustomImagesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.CustomImagesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -122,46 +122,6 @@ export class CustomImages { .then(lroPoller => lroPoller.pollUntilFinished()); } - /** - * Modify properties of custom images. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the custom image. - * @param customImage A custom image. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, labName: string, name: string, customImage: Models.CustomImageFragment, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the custom image. - * @param customImage A custom image. - * @param callback The callback - */ - update(resourceGroupName: string, labName: string, name: string, customImage: Models.CustomImageFragment, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the custom image. - * @param customImage A custom image. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, labName: string, name: string, customImage: Models.CustomImageFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, labName: string, name: string, customImage: Models.CustomImageFragment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - labName, - name, - customImage, - options - }, - updateOperationSpec, - callback) as Promise; - } - /** * Create or replace an existing custom image. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -215,14 +175,14 @@ export class CustomImages { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -255,7 +215,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.CustomImageList + bodyMapper: Mappers.ResponseWithContinuationCustomImage }, default: { bodyMapper: Mappers.CloudError @@ -291,39 +251,6 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "customImage", - mapper: { - ...Mappers.CustomImageFragment, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.CustomImage - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}", @@ -376,7 +303,6 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: {}, 202: {}, 204: {}, default: { @@ -398,7 +324,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.CustomImageList + bodyMapper: Mappers.ResponseWithContinuationCustomImage }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/disks.ts b/packages/@azure/arm-devtestlabs/lib/operations/disks.ts index 0fb3a741ba9a..15d24b88d8ef 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/disks.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/disks.ts @@ -42,7 +42,7 @@ export class Disks { * @param userName The name of the user profile. * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -50,8 +50,8 @@ export class Disks { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, options: Models.DisksListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, userName: string, options?: Models.DisksListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, userName: string, options: Models.DisksListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, options?: Models.DisksListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,50 +132,6 @@ export class Disks { .then(lroPoller => lroPoller.pollUntilFinished()); } - /** - * Modify properties of disks. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param userName The name of the user profile. - * @param name The name of the disk. - * @param disk A Disk. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, labName: string, userName: string, name: string, disk: Models.DiskFragment, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param userName The name of the user profile. - * @param name The name of the disk. - * @param disk A Disk. - * @param callback The callback - */ - update(resourceGroupName: string, labName: string, userName: string, name: string, disk: Models.DiskFragment, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param userName The name of the user profile. - * @param name The name of the disk. - * @param disk A Disk. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, labName: string, userName: string, name: string, disk: Models.DiskFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, labName: string, userName: string, name: string, disk: Models.DiskFragment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - labName, - userName, - name, - disk, - options - }, - updateOperationSpec, - callback) as Promise; - } - /** * Attach and create the lease of the disk to the virtual machine. This operation can take a while * to complete. @@ -315,14 +271,14 @@ export class Disks { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -356,7 +312,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.DiskList + bodyMapper: Mappers.ResponseWithContinuationDisk }, default: { bodyMapper: Mappers.CloudError @@ -393,40 +349,6 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.userName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "disk", - mapper: { - ...Mappers.DiskFragment, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Disk - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}", @@ -481,7 +403,6 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: {}, 202: {}, 204: {}, default: { @@ -569,7 +490,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.DiskList + bodyMapper: Mappers.ResponseWithContinuationDisk }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/environments.ts b/packages/@azure/arm-devtestlabs/lib/operations/environments.ts index de68c8979107..471fd93164ca 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/environments.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/environments.ts @@ -42,7 +42,7 @@ export class Environments { * @param userName The name of the user profile. * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -50,8 +50,8 @@ export class Environments { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, options: Models.EnvironmentsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, userName: string, options?: Models.EnvironmentsListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, userName: string, options: Models.EnvironmentsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, options?: Models.EnvironmentsListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,50 +132,6 @@ export class Environments { .then(lroPoller => lroPoller.pollUntilFinished()); } - /** - * Modify properties of environments. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param userName The name of the user profile. - * @param name The name of the environment. - * @param dtlEnvironment An environment, which is essentially an ARM template deployment. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironmentFragment, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param userName The name of the user profile. - * @param name The name of the environment. - * @param dtlEnvironment An environment, which is essentially an ARM template deployment. - * @param callback The callback - */ - update(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironmentFragment, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param userName The name of the user profile. - * @param name The name of the environment. - * @param dtlEnvironment An environment, which is essentially an ARM template deployment. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironmentFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironmentFragment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - labName, - userName, - name, - dtlEnvironment, - options - }, - updateOperationSpec, - callback) as Promise; - } - /** * Create or replace an existing environment. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -233,14 +189,14 @@ export class Environments { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -274,7 +230,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.DtlEnvironmentList + bodyMapper: Mappers.ResponseWithContinuationDtlEnvironment }, default: { bodyMapper: Mappers.CloudError @@ -311,40 +267,6 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.userName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "dtlEnvironment", - mapper: { - ...Mappers.DtlEnvironmentFragment, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DtlEnvironment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}", @@ -399,7 +321,6 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: {}, 202: {}, 204: {}, default: { @@ -421,7 +342,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.DtlEnvironmentList + bodyMapper: Mappers.ResponseWithContinuationDtlEnvironment }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/formulas.ts b/packages/@azure/arm-devtestlabs/lib/operations/formulas.ts index 16989f3f6be2..cdc8efd67879 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/formulas.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/formulas.ts @@ -40,15 +40,15 @@ export class Formulas { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.FormulasListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.FormulasListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.FormulasListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.FormulasListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -145,46 +145,6 @@ export class Formulas { callback); } - /** - * Modify properties of formulas. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the formula. - * @param formula A formula for creating a VM, specifying an image base and other parameters - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, labName: string, name: string, formula: Models.FormulaFragment, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the formula. - * @param formula A formula for creating a VM, specifying an image base and other parameters - * @param callback The callback - */ - update(resourceGroupName: string, labName: string, name: string, formula: Models.FormulaFragment, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the formula. - * @param formula A formula for creating a VM, specifying an image base and other parameters - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, labName: string, name: string, formula: Models.FormulaFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, labName: string, name: string, formula: Models.FormulaFragment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - labName, - name, - formula, - options - }, - updateOperationSpec, - callback) as Promise; - } - /** * Create or replace an existing Formula. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -218,14 +178,14 @@ export class Formulas { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -258,7 +218,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.FormulaList + bodyMapper: Mappers.ResponseWithContinuationFormula }, default: { bodyMapper: Mappers.CloudError @@ -319,39 +279,6 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "formula", - mapper: { - ...Mappers.FormulaFragment, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Formula - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}", @@ -400,7 +327,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.FormulaList + bodyMapper: Mappers.ResponseWithContinuationFormula }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/galleryImages.ts b/packages/@azure/arm-devtestlabs/lib/operations/galleryImages.ts index 1008125b71b0..61ffeaaf7f87 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/galleryImages.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/galleryImages.ts @@ -39,15 +39,15 @@ export class GalleryImages { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.GalleryImagesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.GalleryImagesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.GalleryImagesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.GalleryImagesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -69,14 +69,14 @@ export class GalleryImages { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -109,7 +109,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.GalleryImageList + bodyMapper: Mappers.ResponseWithContinuationGalleryImage }, default: { bodyMapper: Mappers.CloudError @@ -130,7 +130,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.GalleryImageList + bodyMapper: Mappers.ResponseWithContinuationGalleryImage }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/globalSchedules.ts b/packages/@azure/arm-devtestlabs/lib/operations/globalSchedules.ts index 8b59cb7c7abf..ee6268c71626 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/globalSchedules.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/globalSchedules.ts @@ -36,13 +36,13 @@ export class GlobalSchedules { /** * @param callback The callback */ - listBySubscription(callback: msRest.ServiceCallback): void; + listBySubscription(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - listBySubscription(options: Models.GlobalSchedulesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscription(options?: Models.GlobalSchedulesListBySubscriptionOptionalParams, callback?: msRest.ServiceCallback): Promise { + listBySubscription(options: Models.GlobalSchedulesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.GlobalSchedulesListBySubscriptionOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -62,14 +62,14 @@ export class GlobalSchedules { * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: Models.GlobalSchedulesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: Models.GlobalSchedulesListByResourceGroupOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options: Models.GlobalSchedulesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.GlobalSchedulesListByResourceGroupOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -289,14 +289,14 @@ export class GlobalSchedules { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -317,14 +317,14 @@ export class GlobalSchedules { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(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 */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -355,7 +355,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ScheduleList + bodyMapper: Mappers.ResponseWithContinuationSchedule }, default: { bodyMapper: Mappers.CloudError @@ -383,7 +383,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ScheduleList + bodyMapper: Mappers.ResponseWithContinuationSchedule }, default: { bodyMapper: Mappers.CloudError @@ -576,7 +576,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ScheduleList + bodyMapper: Mappers.ResponseWithContinuationSchedule }, default: { bodyMapper: Mappers.CloudError @@ -597,7 +597,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ScheduleList + bodyMapper: Mappers.ResponseWithContinuationSchedule }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/index.ts b/packages/@azure/arm-devtestlabs/lib/operations/index.ts index be4417019e72..0371a9d15fbc 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/index.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/index.ts @@ -28,8 +28,6 @@ export * from "./users"; export * from "./disks"; export * from "./environments"; export * from "./secrets"; -export * from "./serviceFabrics"; -export * from "./serviceFabricSchedules"; export * from "./virtualMachines"; export * from "./virtualMachineSchedules"; export * from "./virtualNetworks"; diff --git a/packages/@azure/arm-devtestlabs/lib/operations/labs.ts b/packages/@azure/arm-devtestlabs/lib/operations/labs.ts index 8492195fdcdd..a064120e1532 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/labs.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/labs.ts @@ -36,13 +36,13 @@ export class Labs { /** * @param callback The callback */ - listBySubscription(callback: msRest.ServiceCallback): void; + listBySubscription(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - listBySubscription(options: Models.LabsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscription(options?: Models.LabsListBySubscriptionOptionalParams, callback?: msRest.ServiceCallback): Promise { + listBySubscription(options: Models.LabsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.LabsListBySubscriptionOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -62,14 +62,14 @@ export class Labs { * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: Models.LabsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: Models.LabsListByResourceGroupOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options: Models.LabsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.LabsListByResourceGroupOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -248,20 +248,6 @@ export class Labs { callback) as Promise; } - /** - * Import a virtual machine into a different lab. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param name The name of the lab. - * @param importLabVirtualMachineRequest This represents the payload required to import a virtual - * machine from a different lab into the current one - * @param [options] The optional parameters - * @returns Promise - */ - importVirtualMachine(resourceGroupName: string, name: string, importLabVirtualMachineRequest: Models.ImportLabVirtualMachineRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginImportVirtualMachine(resourceGroupName,name,importLabVirtualMachineRequest,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - /** * List disk images available for custom image creation. * @param resourceGroupName The name of the resource group. @@ -275,15 +261,15 @@ export class Labs { * @param name The name of the lab. * @param callback The callback */ - listVhds(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + listVhds(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param options The optional parameters * @param callback The callback */ - listVhds(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listVhds(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listVhds(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVhds(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -392,27 +378,6 @@ export class Labs { options); } - /** - * Import a virtual machine into a different lab. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param name The name of the lab. - * @param importLabVirtualMachineRequest This represents the payload required to import a virtual - * machine from a different lab into the current one - * @param [options] The optional parameters - * @returns Promise - */ - beginImportVirtualMachine(resourceGroupName: string, name: string, importLabVirtualMachineRequest: Models.ImportLabVirtualMachineRequest, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - name, - importLabVirtualMachineRequest, - options - }, - beginImportVirtualMachineOperationSpec, - options); - } - /** * List labs in a subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -424,14 +389,14 @@ export class Labs { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -452,14 +417,14 @@ export class Labs { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(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 */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -480,14 +445,14 @@ export class Labs { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listVhdsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listVhdsNext(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 */ - listVhdsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listVhdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listVhdsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVhdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -518,7 +483,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.LabList + bodyMapper: Mappers.ResponseWithContinuationLab }, default: { bodyMapper: Mappers.CloudError @@ -546,7 +511,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.LabList + bodyMapper: Mappers.ResponseWithContinuationLab }, default: { bodyMapper: Mappers.CloudError @@ -661,7 +626,7 @@ const listVhdsOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.LabVhdList + bodyMapper: Mappers.ResponseWithContinuationLabVhd }, default: { bodyMapper: Mappers.CloudError @@ -720,7 +685,6 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: {}, 202: {}, 204: {}, default: { @@ -816,37 +780,6 @@ const beginExportResourceUsageOperationSpec: msRest.OperationSpec = { serializer }; -const beginImportVirtualMachineOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "importLabVirtualMachineRequest", - mapper: { - ...Mappers.ImportLabVirtualMachineRequest, - required: true - } - }, - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -859,7 +792,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.LabList + bodyMapper: Mappers.ResponseWithContinuationLab }, default: { bodyMapper: Mappers.CloudError @@ -880,7 +813,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.LabList + bodyMapper: Mappers.ResponseWithContinuationLab }, default: { bodyMapper: Mappers.CloudError @@ -901,7 +834,7 @@ const listVhdsNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.LabVhdList + bodyMapper: Mappers.ResponseWithContinuationLabVhd }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/notificationChannels.ts b/packages/@azure/arm-devtestlabs/lib/operations/notificationChannels.ts index 2abd8a541f4d..5feb0e15c13b 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/notificationChannels.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/notificationChannels.ts @@ -39,15 +39,15 @@ export class NotificationChannels { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.NotificationChannelsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.NotificationChannelsListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.NotificationChannelsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.NotificationChannelsListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -261,14 +261,14 @@ export class NotificationChannels { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -301,7 +301,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.NotificationChannelList + bodyMapper: Mappers.ResponseWithContinuationNotificationChannel }, default: { bodyMapper: Mappers.CloudError @@ -474,7 +474,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.NotificationChannelList + bodyMapper: Mappers.ResponseWithContinuationNotificationChannel }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/policies.ts b/packages/@azure/arm-devtestlabs/lib/operations/policies.ts index 741f169dc9cf..7a889261f3eb 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/policies.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/policies.ts @@ -41,7 +41,7 @@ export class Policies { * @param policySetName The name of the policy set. * @param callback The callback */ - list(resourceGroupName: string, labName: string, policySetName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, policySetName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -49,8 +49,8 @@ export class Policies { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, policySetName: string, options: Models.PoliciesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, policySetName: string, options?: Models.PoliciesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, policySetName: string, options: Models.PoliciesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, policySetName: string, options?: Models.PoliciesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -241,14 +241,14 @@ export class Policies { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -282,7 +282,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PolicyList + bodyMapper: Mappers.ResponseWithContinuationPolicy }, default: { bodyMapper: Mappers.CloudError @@ -428,7 +428,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PolicyList + bodyMapper: Mappers.ResponseWithContinuationPolicy }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/schedules.ts b/packages/@azure/arm-devtestlabs/lib/operations/schedules.ts index 20e72001f4d4..77fe068c354b 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/schedules.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/schedules.ts @@ -40,15 +40,15 @@ export class Schedules { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.SchedulesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.SchedulesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.SchedulesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.SchedulesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -239,7 +239,7 @@ export class Schedules { * @param name The name of the schedule. * @param callback The callback */ - listApplicable(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; + listApplicable(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -247,8 +247,8 @@ export class Schedules { * @param options The optional parameters * @param callback The callback */ - listApplicable(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listApplicable(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listApplicable(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listApplicable(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -291,14 +291,14 @@ export class Schedules { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -319,14 +319,14 @@ export class Schedules { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listApplicableNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listApplicableNext(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 */ - listApplicableNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listApplicableNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listApplicableNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listApplicableNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -359,7 +359,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ScheduleList + bodyMapper: Mappers.ResponseWithContinuationSchedule }, default: { bodyMapper: Mappers.CloudError @@ -506,7 +506,7 @@ const listApplicableOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ScheduleList + bodyMapper: Mappers.ResponseWithContinuationSchedule }, default: { bodyMapper: Mappers.CloudError @@ -552,7 +552,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ScheduleList + bodyMapper: Mappers.ResponseWithContinuationSchedule }, default: { bodyMapper: Mappers.CloudError @@ -573,7 +573,7 @@ const listApplicableNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ScheduleList + bodyMapper: Mappers.ResponseWithContinuationSchedule }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/secrets.ts b/packages/@azure/arm-devtestlabs/lib/operations/secrets.ts index c6c6704b710c..55fc81908ab1 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/secrets.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/secrets.ts @@ -9,7 +9,6 @@ */ import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/secretsMappers"; import * as Parameters from "../models/parameters"; @@ -42,7 +41,7 @@ export class Secrets { * @param userName The name of the user profile. * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -50,8 +49,8 @@ export class Secrets { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, options: Models.SecretsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, userName: string, options?: Models.SecretsListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, userName: string, options: Models.SecretsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, options?: Models.SecretsListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -104,7 +103,7 @@ export class Secrets { } /** - * Create or replace an existing secret. This operation can take a while to complete. + * Create or replace an existing secret. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. @@ -113,117 +112,78 @@ export class Secrets { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,labName,userName,name,secret,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Delete secret. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param userName The name of the user profile. - * @param name The name of the secret. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. + * @param secret A secret. * @param callback The callback */ - deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. + * @param secret A secret. * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, labName, userName, name, + secret, options }, - deleteMethodOperationSpec, - callback); + createOrUpdateOperationSpec, + callback) as Promise; } /** - * Modify properties of secrets. + * Delete secret. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. - * @param secret A secret. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - update(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.SecretFragment, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. - * @param secret A secret. * @param callback The callback */ - update(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.SecretFragment, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. - * @param secret A secret. * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.SecretFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.SecretFragment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, labName, userName, name, - secret, options }, - updateOperationSpec, - callback) as Promise; - } - - /** - * Create or replace an existing secret. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param userName The name of the user profile. - * @param name The name of the secret. - * @param secret A secret. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - labName, - userName, - name, - secret, - options - }, - beginCreateOrUpdateOperationSpec, - options); + deleteMethodOperationSpec, + callback); } /** @@ -237,14 +197,14 @@ export class Secrets { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -278,7 +238,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SecretList + bodyMapper: Mappers.ResponseWithContinuationSecret }, default: { bodyMapper: Mappers.CloudError @@ -315,34 +275,8 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.userName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}", urlParameters: [ Parameters.subscriptionId, @@ -360,7 +294,7 @@ const updateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "secret", mapper: { - ...Mappers.SecretFragment, + ...Mappers.Secret, required: true } }, @@ -368,6 +302,9 @@ const updateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.Secret }, + 201: { + bodyMapper: Mappers.Secret + }, default: { bodyMapper: Mappers.CloudError } @@ -375,8 +312,8 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}", urlParameters: [ Parameters.subscriptionId, @@ -391,20 +328,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "secret", - mapper: { - ...Mappers.Secret, - required: true - } - }, responses: { - 200: { - bodyMapper: Mappers.Secret - }, - 201: { - bodyMapper: Mappers.Secret - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -424,7 +350,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SecretList + bodyMapper: Mappers.ResponseWithContinuationSecret }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/serviceRunners.ts b/packages/@azure/arm-devtestlabs/lib/operations/serviceRunners.ts index cadc1d1a716a..c6f47562ee90 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/serviceRunners.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/serviceRunners.ts @@ -39,15 +39,15 @@ export class ServiceRunners { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.ServiceRunnersListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.ServiceRunnersListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.ServiceRunnersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.ServiceRunnersListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -181,14 +181,14 @@ export class ServiceRunners { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -220,7 +220,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ServiceRunnerList + bodyMapper: Mappers.ResponseWithContinuationServiceRunner }, default: { bodyMapper: Mappers.CloudError @@ -328,7 +328,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ServiceRunnerList + bodyMapper: Mappers.ResponseWithContinuationServiceRunner }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/users.ts b/packages/@azure/arm-devtestlabs/lib/operations/users.ts index 755376b460fc..f9bc1f4152c9 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/users.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/users.ts @@ -40,15 +40,15 @@ export class Users { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.UsersListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.UsersListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.UsersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.UsersListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class Users { } /** - * Create or replace an existing user profile. This operation can take a while to complete. + * Create or replace an existing user profile. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the user profile. @@ -104,9 +104,35 @@ export class Users { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,labName,name,user,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + createOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the user profile. + * @param user Profile of a lab user. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the user profile. + * @param user Profile of a lab user. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + user, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; } /** @@ -162,28 +188,6 @@ export class Users { callback) as Promise; } - /** - * Create or replace an existing user profile. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the user profile. - * @param user Profile of a lab user. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - labName, - name, - user, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - /** * Delete user profile. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -215,14 +219,14 @@ export class Users { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -255,7 +259,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.UserList + bodyMapper: Mappers.ResponseWithContinuationUser }, default: { bodyMapper: Mappers.CloudError @@ -291,8 +295,8 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}", urlParameters: [ Parameters.subscriptionId, @@ -309,7 +313,7 @@ const updateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "user", mapper: { - ...Mappers.UserFragment, + ...Mappers.User, required: true } }, @@ -317,6 +321,9 @@ const updateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.User }, + 201: { + bodyMapper: Mappers.User + }, default: { bodyMapper: Mappers.CloudError } @@ -324,8 +331,8 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}", urlParameters: [ Parameters.subscriptionId, @@ -342,7 +349,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "user", mapper: { - ...Mappers.User, + ...Mappers.UserFragment, required: true } }, @@ -350,9 +357,6 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.User }, - 201: { - bodyMapper: Mappers.User - }, default: { bodyMapper: Mappers.CloudError } @@ -376,7 +380,6 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: {}, 202: {}, 204: {}, default: { @@ -398,7 +401,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.UserList + bodyMapper: Mappers.ResponseWithContinuationUser }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/virtualMachineSchedules.ts b/packages/@azure/arm-devtestlabs/lib/operations/virtualMachineSchedules.ts index 0fa35f9db05d..0aa5a1269ad1 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/virtualMachineSchedules.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/virtualMachineSchedules.ts @@ -42,7 +42,7 @@ export class VirtualMachineSchedules { * @param virtualMachineName The name of the virtual machine. * @param callback The callback */ - list(resourceGroupName: string, labName: string, virtualMachineName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, virtualMachineName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -50,8 +50,8 @@ export class VirtualMachineSchedules { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, virtualMachineName: string, options: Models.VirtualMachineSchedulesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, virtualMachineName: string, options?: Models.VirtualMachineSchedulesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, virtualMachineName: string, options: Models.VirtualMachineSchedulesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, virtualMachineName: string, options?: Models.VirtualMachineSchedulesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -278,14 +278,14 @@ export class VirtualMachineSchedules { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -319,7 +319,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ScheduleList + bodyMapper: Mappers.ResponseWithContinuationSchedule }, default: { bodyMapper: Mappers.CloudError @@ -491,7 +491,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ScheduleList + bodyMapper: Mappers.ResponseWithContinuationSchedule }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/virtualMachines.ts b/packages/@azure/arm-devtestlabs/lib/operations/virtualMachines.ts index 11161662d18c..11bb90b280e2 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/virtualMachines.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/virtualMachines.ts @@ -40,15 +40,15 @@ export class VirtualMachines { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.VirtualMachinesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.VirtualMachinesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.VirtualMachinesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.VirtualMachinesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -220,43 +220,7 @@ export class VirtualMachines { } /** - * Gets a string that represents the contents of the RDP file for the virtual machine - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - getRdpFileContents(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param callback The callback - */ - getRdpFileContents(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param options The optional parameters - * @param callback The callback - */ - getRdpFileContents(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getRdpFileContents(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - labName, - name, - options - }, - getRdpFileContentsOperationSpec, - callback) as Promise; - } - - /** - * Lists the applicable start/stop schedules, if any. + * Lists all applicable schedules * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the virtual machine. @@ -291,46 +255,6 @@ export class VirtualMachines { callback) as Promise; } - /** - * Redeploy a virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - redeploy(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginRedeploy(resourceGroupName,labName,name,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Resize Virtual Machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param resizeLabVirtualMachineProperties Request body for resizing a virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - resize(resourceGroupName: string, labName: string, name: string, resizeLabVirtualMachineProperties: Models.ResizeLabVirtualMachineProperties, options?: msRest.RequestOptionsBase): Promise { - return this.beginResize(resourceGroupName,labName,name,resizeLabVirtualMachineProperties,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Restart a virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - restart(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginRestart(resourceGroupName,labName,name,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - /** * Start a virtual machine. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -357,33 +281,6 @@ export class VirtualMachines { .then(lroPoller => lroPoller.pollUntilFinished()); } - /** - * Transfers all data disks attached to the virtual machine to be owned by the current user. This - * operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - transferDisks(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginTransferDisks(resourceGroupName,labName,name,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Release ownership of an existing virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - unClaim(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginUnClaim(resourceGroupName,labName,name,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - /** * Create or replace an existing Virtual machine. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -514,68 +411,6 @@ export class VirtualMachines { options); } - /** - * Redeploy a virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - beginRedeploy(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - labName, - name, - options - }, - beginRedeployOperationSpec, - options); - } - - /** - * Resize Virtual Machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param resizeLabVirtualMachineProperties Request body for resizing a virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - beginResize(resourceGroupName: string, labName: string, name: string, resizeLabVirtualMachineProperties: Models.ResizeLabVirtualMachineProperties, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - labName, - name, - resizeLabVirtualMachineProperties, - options - }, - beginResizeOperationSpec, - options); - } - - /** - * Restart a virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - beginRestart(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - labName, - name, - options - }, - beginRestartOperationSpec, - options); - } - /** * Start a virtual machine. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -616,47 +451,6 @@ export class VirtualMachines { options); } - /** - * Transfers all data disks attached to the virtual machine to be owned by the current user. This - * operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - beginTransferDisks(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - labName, - name, - options - }, - beginTransferDisksOperationSpec, - options); - } - - /** - * Release ownership of an existing virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the virtual machine. - * @param [options] The optional parameters - * @returns Promise - */ - beginUnClaim(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - labName, - name, - options - }, - beginUnClaimOperationSpec, - options); - } - /** * List virtual machines in a given lab. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -668,14 +462,14 @@ export class VirtualMachines { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -708,7 +502,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.LabVirtualMachineList + bodyMapper: Mappers.ResponseWithContinuationLabVirtualMachine }, default: { bodyMapper: Mappers.CloudError @@ -777,32 +571,6 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; -const getRdpFileContentsOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/getRdpFileContents", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RdpConnection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const listApplicableSchedulesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules", @@ -881,7 +649,6 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: {}, 202: {}, 204: {}, default: { @@ -1012,88 +779,6 @@ const beginDetachDataDiskOperationSpec: msRest.OperationSpec = { serializer }; -const beginRedeployOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/redeploy", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginResizeOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/resize", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "resizeLabVirtualMachineProperties", - mapper: { - ...Mappers.ResizeLabVirtualMachineProperties, - required: true - } - }, - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginRestartOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/restart", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const beginStartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start", @@ -1144,56 +829,6 @@ const beginStopOperationSpec: msRest.OperationSpec = { serializer }; -const beginTransferDisksOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/transferDisks", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.name - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUnClaimOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/unClaim", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.labName, - Parameters.name - ], - 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", @@ -1206,7 +841,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.LabVirtualMachineList + bodyMapper: Mappers.ResponseWithContinuationLabVirtualMachine }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/virtualNetworks.ts b/packages/@azure/arm-devtestlabs/lib/operations/virtualNetworks.ts index 1349e2b5789d..bc22c11086a3 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/virtualNetworks.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/virtualNetworks.ts @@ -40,15 +40,15 @@ export class VirtualNetworks { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.VirtualNetworksListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.VirtualNetworksListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.VirtualNetworksListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.VirtualNetworksListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -215,14 +215,14 @@ export class VirtualNetworks { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -255,7 +255,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.VirtualNetworkList + bodyMapper: Mappers.ResponseWithContinuationVirtualNetwork }, default: { bodyMapper: Mappers.CloudError @@ -376,7 +376,6 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: {}, 202: {}, 204: {}, default: { @@ -398,7 +397,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.VirtualNetworkList + bodyMapper: Mappers.ResponseWithContinuationVirtualNetwork }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/package.json b/packages/@azure/arm-devtestlabs/package.json index 6e8499e00f87..0839dea5acc1 100644 --- a/packages/@azure/arm-devtestlabs/package.json +++ b/packages/@azure/arm-devtestlabs/package.json @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-devtestlabs.js.map'\" -o ./dist/arm-devtestlabs.min.js ./dist/arm-devtestlabs.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-hdinsight/LICENSE.txt b/packages/@azure/arm-hdinsight/LICENSE.txt index 5431ba98b936..a70e8cf66038 100644 --- a/packages/@azure/arm-hdinsight/LICENSE.txt +++ b/packages/@azure/arm-hdinsight/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-hdinsight/README.md b/packages/@azure/arm-hdinsight/README.md index 079d55d64e38..90f4333eb091 100644 --- a/packages/@azure/arm-hdinsight/README.md +++ b/packages/@azure/arm-hdinsight/README.md @@ -1,81 +1,81 @@ -# Azure HDInsightManagementClient SDK for JavaScript -This package contains an isomorphic SDK for HDInsightManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-hdinsight -``` - - -## How to use - -### nodejs - Authentication, client creation and get clusters as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { HDInsightManagementClient, HDInsightManagementModels, HDInsightManagementMappers } from "@azure/arm-hdinsight"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new HDInsightManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const clusterName = "testclusterName"; - client.clusters.get(resourceGroupName, clusterName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and get clusters as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-hdinsight sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure HDInsightManagementClient SDK for JavaScript +This package contains an isomorphic SDK for HDInsightManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-hdinsight +``` + + +## How to use + +### nodejs - Authentication, client creation and get clusters as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { HDInsightManagementClient, HDInsightManagementModels, HDInsightManagementMappers } from "@azure/arm-hdinsight"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new HDInsightManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const clusterName = "testclusterName"; + client.clusters.get(resourceGroupName, clusterName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and get clusters as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-hdinsight sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-hdinsight/lib/hDInsightManagementClientContext.ts b/packages/@azure/arm-hdinsight/lib/hDInsightManagementClientContext.ts index 1e8735107ed5..8d7647058236 100644 --- a/packages/@azure/arm-hdinsight/lib/hDInsightManagementClientContext.ts +++ b/packages/@azure/arm-hdinsight/lib/hDInsightManagementClientContext.ts @@ -16,9 +16,16 @@ const packageName = "@azure/arm-hdinsight"; const packageVersion = "1.0.0-preview"; export class HDInsightManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; - apiVersion?: string; + + apiVersion: string; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; /** * Initializes a new instance of the HDInsightManagementClient class. diff --git a/packages/@azure/arm-hdinsight/package.json b/packages/@azure/arm-hdinsight/package.json index 49f48dfc23ef..47880d0f7e2a 100644 --- a/packages/@azure/arm-hdinsight/package.json +++ b/packages/@azure/arm-hdinsight/package.json @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-hdinsight.js.map'\" -o ./dist/arm-hdinsight.min.js ./dist/arm-hdinsight.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-network/.npmignore b/packages/@azure/arm-network/.npmignore new file mode 100644 index 000000000000..a07a455ac10c --- /dev/null +++ b/packages/@azure/arm-network/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts index 72703a6ed692..ac27625bd398 100644 --- a/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts @@ -57,14 +57,12 @@ export { ApplicationGatewayBackendHttpSettings, ApplicationGatewayConnectionDraining, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayUrlPathMap, ApplicationGatewayPathRule, ApplicationGatewayRequestRoutingRule, ApplicationGatewayRedirectConfiguration, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, TagsObject, ApplicationGatewayListResult, @@ -116,10 +114,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts b/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts index c83b8c9bd1b0..15efaa40479b 100644 --- a/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts +++ b/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts b/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts index 6f7a417cab71..2c47b87b9b67 100644 --- a/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts +++ b/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts b/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts index 02340e549199..3acec4e1335f 100644 --- a/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts +++ b/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts b/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts index 0bca1842f92d..382804f5c297 100644 --- a/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts +++ b/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts @@ -64,7 +64,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -76,7 +75,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts b/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts index 22feb3feab0c..69ef6f6b4746 100644 --- a/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts +++ b/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts @@ -55,7 +55,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -67,7 +66,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -111,10 +109,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts b/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts index e514fd4c41f7..fc5b587e4e20 100644 --- a/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts +++ b/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts @@ -62,7 +62,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -74,7 +73,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -118,10 +116,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts b/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts index d311efa691b2..e18316959961 100644 --- a/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts +++ b/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts b/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts index 6f1b6da623d3..19ece5574234 100644 --- a/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts index 28b10e9daba5..522810f7e5ab 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts index 9925352030c8..45b22b84c909 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -108,10 +106,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts index 823df35663ae..439eab1fd931 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts @@ -61,7 +61,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -73,7 +72,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts index b5fc58fe2d7d..e9792a3c4b3b 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts @@ -72,7 +72,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -84,7 +83,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -116,10 +114,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts index 95c99cdddfd0..002c92b27281 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts @@ -55,7 +55,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -67,7 +66,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts index db80482962d0..6dc1130fc88b 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts @@ -62,7 +62,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -74,7 +73,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts index e1ce41edf69d..b4b1c1cc0daa 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts @@ -71,7 +71,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -83,7 +82,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -116,10 +114,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts index 96dbea83dfd8..1374f7b62c59 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts @@ -59,7 +59,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -71,7 +70,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteCrossConnectionPeering, ExpressRouteCrossConnection, ExpressRouteCircuitReference, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts index 5880412e35a7..bdba74264f14 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts @@ -55,7 +55,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -67,7 +66,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts index 9ff88de9ea0a..1d4b1a209e34 100644 --- a/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts @@ -55,7 +55,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -67,7 +66,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -111,10 +109,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts b/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts index 1e11a89cff07..787bfcadea78 100644 --- a/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/index.ts b/packages/@azure/arm-network/lib/models/index.ts index 279c2f5b88d0..7ea6812cc625 100644 --- a/packages/@azure/arm-network/lib/models/index.ts +++ b/packages/@azure/arm-network/lib/models/index.ts @@ -1992,26 +1992,6 @@ export interface ApplicationGatewayFrontendPort extends SubResource { type?: string; } -/** - * @interface - * An interface representing ApplicationGatewayCustomError. - * Customer error of an application gateway. - * - */ -export interface ApplicationGatewayCustomError { - /** - * @member {ApplicationGatewayCustomErrorStatusCode} [statusCode] Status code - * of the application gateway customer error. Possible values include: - * 'HttpStatus403', 'HttpStatus502' - */ - statusCode?: ApplicationGatewayCustomErrorStatusCode; - /** - * @member {string} [customErrorPageUrl] Error page URL of the application - * gateway customer error. - */ - customErrorPageUrl?: string; -} - /** * @interface * An interface representing ApplicationGatewayHttpListener. @@ -2056,11 +2036,6 @@ export interface ApplicationGatewayHttpListener extends SubResource { * 'Failed'. */ provisioningState?: string; - /** - * @member {ApplicationGatewayCustomError[]} [customErrorConfigurations] - * Custom error configurations of the HTTP listener. - */ - customErrorConfigurations?: ApplicationGatewayCustomError[]; /** * @member {string} [name] Name of the HTTP listener that is unique within an * Application Gateway. @@ -2416,31 +2391,6 @@ export interface ApplicationGatewayFirewallDisabledRuleGroup { rules?: number[]; } -/** - * @interface - * An interface representing ApplicationGatewayFirewallExclusion. - * Allow to exclude some variable satisfy the condition for the WAF check - * - */ -export interface ApplicationGatewayFirewallExclusion { - /** - * @member {string} matchVariable The variable to be excluded. - */ - matchVariable: string; - /** - * @member {string} selectorMatchOperator When matchVariable is a collection, - * operate on the selector to specify which elements in the collection this - * exclusion applies to. - */ - selectorMatchOperator: string; - /** - * @member {string} selector When matchVariable is a collection, operator - * used to specify which elements in the collection this exclusion applies - * to. - */ - selector: string; -} - /** * @interface * An interface representing ApplicationGatewayWebApplicationFirewallConfiguration. @@ -2481,21 +2431,6 @@ export interface ApplicationGatewayWebApplicationFirewallConfiguration { * @member {number} [maxRequestBodySize] Maxium request body size for WAF. */ maxRequestBodySize?: number; - /** - * @member {number} [maxRequestBodySizeInKb] Maxium request body size in Kb - * for WAF. - */ - maxRequestBodySizeInKb?: number; - /** - * @member {number} [fileUploadLimitInMb] Maxium file upload size in Mb for - * WAF. - */ - fileUploadLimitInMb?: number; - /** - * @member {ApplicationGatewayFirewallExclusion[]} [exclusions] The exclusion - * list. - */ - exclusions?: ApplicationGatewayFirewallExclusion[]; } /** @@ -2640,11 +2575,6 @@ export interface ApplicationGateway extends Resource { * 'Failed'. */ provisioningState?: string; - /** - * @member {ApplicationGatewayCustomError[]} [customErrorConfigurations] - * Custom error configurations of the application gateway resource. - */ - customErrorConfigurations?: ApplicationGatewayCustomError[]; /** * @member {string} [etag] A unique read-only string that changes whenever * the resource is updated. @@ -3770,8 +3700,8 @@ export interface ExpressRouteCircuitSku { name?: string; /** * @member {ExpressRouteCircuitSkuTier} [tier] The tier of the SKU. Possible - * values are 'Standard', 'Premium' or 'Basic'. Possible values include: - * 'Standard', 'Premium', 'Basic' + * values are 'Standard' and 'Premium'. Possible values include: 'Standard', + * 'Premium' */ tier?: ExpressRouteCircuitSkuTier; /** @@ -3854,24 +3784,6 @@ export interface ExpressRouteCircuit extends Resource { * [serviceProviderProperties] The ServiceProviderProperties. */ serviceProviderProperties?: ExpressRouteCircuitServiceProviderProperties; - /** - * @member {SubResource} [expressRoutePort] The reference to the - * ExpressRoutePort resource when the circuit is provisioned on an - * ExpressRoutePort resource. - */ - expressRoutePort?: SubResource; - /** - * @member {number} [bandwidthInGbps] The bandwidth of the circuit when the - * circuit is provisioned on an ExpressRoutePort resource. - */ - bandwidthInGbps?: number; - /** - * @member {number} [stag] The identifier of the circuit traffic. Outer tag - * for QinQ encapsulation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly stag?: number; /** * @member {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and @@ -4481,221 +4393,6 @@ export interface ExpressRouteConnectionList { value?: ExpressRouteConnection[]; } -/** - * @interface - * An interface representing ExpressRoutePortsLocationBandwidths. - * @summary ExpressRoutePorts Location Bandwidths - * - * Real-time inventory of available ExpressRoute port bandwidths. - * - */ -export interface ExpressRoutePortsLocationBandwidths { - /** - * @member {string} [offerName] Bandwidth descriptive name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly offerName?: string; - /** - * @member {number} [valueInGbps] Bandwidth value in Gbps - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly valueInGbps?: number; -} - -/** - * @interface - * An interface representing ExpressRoutePortsLocation. - * @summary ExpressRoutePorts Peering Location - * - * Definition of the ExpressRoutePorts peering location resource. - * - * @extends Resource - */ -export interface ExpressRoutePortsLocation extends Resource { - /** - * @member {string} [address] Address of peering location. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly address?: string; - /** - * @member {string} [contact] Contact details of peering locations. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly contact?: string; - /** - * @member {ExpressRoutePortsLocationBandwidths[]} [availableBandwidths] The - * inventory of available ExpressRoutePort bandwidths. - */ - availableBandwidths?: ExpressRoutePortsLocationBandwidths[]; - /** - * @member {string} [provisioningState] The provisioning state of the - * ExpressRoutePortLocation resource. Possible values are: 'Succeeded', - * 'Updating', 'Deleting', and 'Failed'. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; -} - -/** - * @interface - * An interface representing ExpressRouteLink. - * @summary ExpressRouteLink - * - * ExpressRouteLink child resource definition. - * - * @extends SubResource - */ -export interface ExpressRouteLink extends SubResource { - /** - * @member {string} [routerName] Name of Azure router associated with - * physical port. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly routerName?: string; - /** - * @member {string} [interfaceName] Name of Azure router interface. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly interfaceName?: string; - /** - * @member {string} [patchPanelId] Mapping between physical port to patch - * panel port. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly patchPanelId?: string; - /** - * @member {string} [rackId] Mapping of physical patch panel to rack. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly rackId?: string; - /** - * @member {ExpressRouteLinkConnectorType} [connectorType] Physical fiber - * port type. Possible values include: 'LC', 'SC' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly connectorType?: ExpressRouteLinkConnectorType; - /** - * @member {ExpressRouteLinkAdminState} [adminState] Administrative state of - * the physical port. Possible values include: 'Enabled', 'Disabled' - */ - adminState?: ExpressRouteLinkAdminState; - /** - * @member {string} [provisioningState] The provisioning state of the - * ExpressRouteLink resource. Possible values are: 'Succeeded', 'Updating', - * 'Deleting', and 'Failed'. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; - /** - * @member {string} [name] Name of child port resource that is unique among - * child port resources of the parent. - */ - name?: string; - /** - * @member {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly etag?: string; -} - -/** - * @interface - * An interface representing ExpressRoutePort. - * @summary ExpressRoute Port - * - * ExpressRoutePort resource definition. - * - * @extends Resource - */ -export interface ExpressRoutePort extends Resource { - /** - * @member {string} [peeringLocation] The name of the peering location that - * the ExpressRoutePort is mapped to physically. - */ - peeringLocation?: string; - /** - * @member {number} [bandwidthInGbps] Bandwidth of procured ports in Gbps - */ - bandwidthInGbps?: number; - /** - * @member {number} [provisionedBandwidthInGbps] Aggregate Gbps of associated - * circuit bandwidths. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisionedBandwidthInGbps?: number; - /** - * @member {string} [mtu] Maximum transmission unit of the physical port - * pair(s) - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly mtu?: string; - /** - * @member {ExpressRoutePortsEncapsulation} [encapsulation] Encapsulation - * method on physical ports. Possible values include: 'Dot1Q', 'QinQ' - */ - encapsulation?: ExpressRoutePortsEncapsulation; - /** - * @member {string} [etherType] Ethertype of the physical port. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly etherType?: string; - /** - * @member {string} [allocationDate] Date of the physical port allocation to - * be used in Letter of Authorization. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly allocationDate?: string; - /** - * @member {ExpressRouteLink[]} [links] ExpressRouteLink Sub-Resources. The - * set of physical links of the ExpressRoutePort resource - */ - links?: ExpressRouteLink[]; - /** - * @member {SubResource[]} [circuits] Reference the ExpressRoute circuit(s) - * that are provisioned on this ExpressRoutePort resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly circuits?: SubResource[]; - /** - * @member {string} [provisioningState] The provisioning state of the - * ExpressRoutePort resource. Possible values are: 'Succeeded', 'Updating', - * 'Deleting', and 'Failed'. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; - /** - * @member {string} [resourceGuid] The resource GUID property of the - * ExpressRoutePort resource. - */ - resourceGuid?: string; - /** - * @member {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly etag?: string; -} - /** * @interface * An interface representing LoadBalancerSku. @@ -7120,11 +6817,11 @@ export interface ConnectionMonitorQueryResult { /** * @interface - * An interface representing NetworkConfigurationDiagnosticProfile. + * An interface representing TrafficQuery. * Parameters to compare with network configuration. * */ -export interface NetworkConfigurationDiagnosticProfile { +export interface TrafficQuery { /** * @member {Direction} direction The direction of the traffic. Accepted * values are 'Inbound' and 'Outbound'. Possible values include: 'Inbound', @@ -7168,16 +6865,9 @@ export interface NetworkConfigurationDiagnosticParameters { */ targetResourceId: string; /** - * @member {VerbosityLevel} [verbosityLevel] Verbosity level. Accepted values - * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', - * 'Minimum', 'Full' - */ - verbosityLevel?: VerbosityLevel; - /** - * @member {NetworkConfigurationDiagnosticProfile[]} profiles List of network - * configuration diagnostic profiles. + * @member {TrafficQuery[]} queries List of traffic queries. */ - profiles: NetworkConfigurationDiagnosticProfile[]; + queries: TrafficQuery[]; } /** @@ -7247,11 +6937,6 @@ export interface EvaluatedNetworkSecurityGroup { * @member {string} [networkSecurityGroupId] Network security group ID. */ networkSecurityGroupId?: string; - /** - * @member {string} [appliedTo] Resource ID of nic or subnet to which network - * security group is applied. - */ - appliedTo?: string; /** * @member {MatchedRule} [matchedRule] */ @@ -7296,9 +6981,9 @@ export interface NetworkSecurityGroupResult { */ export interface NetworkConfigurationDiagnosticResult { /** - * @member {NetworkConfigurationDiagnosticProfile} [profile] + * @member {TrafficQuery} [trafficQuery] */ - profile?: NetworkConfigurationDiagnosticProfile; + trafficQuery?: TrafficQuery; /** * @member {NetworkSecurityGroupResult} [networkSecurityGroupResult] */ @@ -10064,6 +9749,20 @@ export interface VirtualNetworksGetOptionalParams extends msRest.RequestOptionsB expand?: string; } +/** + * @interface + * An interface representing VirtualNetworksCheckIPAddressAvailabilityOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface VirtualNetworksCheckIPAddressAvailabilityOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [ipAddress] The private IP address to be verified. + */ + ipAddress?: string; +} + /** * @interface * An interface representing SubnetsGetOptionalParams. @@ -10360,54 +10059,6 @@ export interface ExpressRouteCrossConnectionPeeringList extends Array - */ -export interface ExpressRoutePortsLocationListResult extends Array { - /** - * @member {string} [nextLink] The URL to get the next set of results. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the ExpressRoutePortListResult. - * @summary ExpressRoute Port List Result - * - * Response for ListExpressRoutePorts API service call. - * - * @extends Array - */ -export interface ExpressRoutePortListResult extends Array { - /** - * @member {string} [nextLink] The URL to get the next set of results. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the ExpressRouteLinkListResult. - * @summary ExpressRouteLink List Result - * - * Response for ListExpressRouteLinks API service call. - * - * @extends Array - */ -export interface ExpressRouteLinkListResult extends Array { - /** - * @member {string} [nextLink] The URL to get the next set of results. - */ - nextLink?: string; -} - /** * @interface * An interface representing the InterfaceEndpointListResult. @@ -10504,22 +10155,6 @@ export interface LoadBalancerLoadBalancingRuleListResult extends Array - */ -export interface LoadBalancerOutboundRuleListResult extends Array { - /** - * @member {string} [nextLink] The URL to get the next set of results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly nextLink?: string; -} - /** * @interface * An interface representing the NetworkInterfaceListResult. @@ -11429,22 +11064,6 @@ export enum ApplicationGatewaySslCipherSuite { TLSRSAWITH3DESEDECBCSHA = 'TLS_RSA_WITH_3DES_EDE_CBC_SHA', } -/** - * Defines values for ApplicationGatewayCustomErrorStatusCode. - * Possible values include: 'HttpStatus403', 'HttpStatus502' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ApplicationGatewayCustomErrorStatusCode = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum ApplicationGatewayCustomErrorStatusCode { - HttpStatus403 = 'HttpStatus403', - HttpStatus502 = 'HttpStatus502', -} - /** * Defines values for ApplicationGatewayRequestRoutingRuleType. * Possible values include: 'Basic', 'PathBasedRouting' @@ -11581,7 +11200,7 @@ export enum AzureFirewallNatRCActionType { /** * Defines values for AzureFirewallNetworkRuleProtocol. - * Possible values include: 'TCP', 'UDP', 'Any', 'ICMP' + * Possible values include: 'TCP', 'UDP', 'Any' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: @@ -11594,7 +11213,6 @@ export enum AzureFirewallNetworkRuleProtocol { TCP = 'TCP', UDP = 'UDP', Any = 'Any', - ICMP = 'ICMP', } /** @@ -11716,7 +11334,7 @@ export enum ExpressRouteCircuitPeeringState { /** * Defines values for ExpressRouteCircuitSkuTier. - * Possible values include: 'Standard', 'Premium', 'Basic' + * Possible values include: 'Standard', 'Premium' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: @@ -11728,7 +11346,6 @@ export enum ExpressRouteCircuitPeeringState { export enum ExpressRouteCircuitSkuTier { Standard = 'Standard', Premium = 'Premium', - Basic = 'Basic', } /** @@ -11767,56 +11384,8 @@ export enum ServiceProviderProvisioningState { } /** - * Defines values for ExpressRouteLinkConnectorType. - * Possible values include: 'LC', 'SC' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ExpressRouteLinkConnectorType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum ExpressRouteLinkConnectorType { - LC = 'LC', - SC = 'SC', -} - -/** - * Defines values for ExpressRouteLinkAdminState. - * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ExpressRouteLinkAdminState = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum ExpressRouteLinkAdminState { - Enabled = 'Enabled', - Disabled = 'Disabled', -} - -/** - * Defines values for ExpressRoutePortsEncapsulation. - * Possible values include: 'Dot1Q', 'QinQ' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ExpressRoutePortsEncapsulation = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum ExpressRoutePortsEncapsulation { - Dot1Q = 'Dot1Q', - QinQ = 'QinQ', -} - -/** - * Defines values for LoadBalancerSkuName. - * Possible values include: 'Basic', 'Standard' + * Defines values for LoadBalancerSkuName. + * Possible values include: 'Basic', 'Standard' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: @@ -12210,23 +11779,6 @@ export enum EvaluationState { Completed = 'Completed', } -/** - * Defines values for VerbosityLevel. - * Possible values include: 'Normal', 'Minimum', 'Full' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: VerbosityLevel = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum VerbosityLevel { - Normal = 'Normal', - Minimum = 'Minimum', - Full = 'Full', -} - /** * Defines values for PublicIPPrefixSkuName. * Possible values include: 'Standard' @@ -14778,291 +14330,6 @@ export type ExpressRouteConnectionsBeginCreateOrUpdateResponse = ExpressRouteCon }; }; -/** - * Contains response data for the list operation. - */ -export type ExpressRoutePortsLocationsListResponse = ExpressRoutePortsLocationListResult & { - /** - * 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: ExpressRoutePortsLocationListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ExpressRoutePortsLocationsGetResponse = ExpressRoutePortsLocation & { - /** - * 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: ExpressRoutePortsLocation; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type ExpressRoutePortsLocationsListNextResponse = ExpressRoutePortsLocationListResult & { - /** - * 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: ExpressRoutePortsLocationListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ExpressRoutePortsGetResponse = ExpressRoutePort & { - /** - * 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: ExpressRoutePort; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ExpressRoutePortsCreateOrUpdateResponse = ExpressRoutePort & { - /** - * 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: ExpressRoutePort; - }; -}; - -/** - * Contains response data for the updateTags operation. - */ -export type ExpressRoutePortsUpdateTagsResponse = ExpressRoutePort & { - /** - * 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: ExpressRoutePort; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type ExpressRoutePortsListByResourceGroupResponse = ExpressRoutePortListResult & { - /** - * 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: ExpressRoutePortListResult; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type ExpressRoutePortsListResponse = ExpressRoutePortListResult & { - /** - * 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: ExpressRoutePortListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ExpressRoutePortsBeginCreateOrUpdateResponse = ExpressRoutePort & { - /** - * 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: ExpressRoutePort; - }; -}; - -/** - * Contains response data for the beginUpdateTags operation. - */ -export type ExpressRoutePortsBeginUpdateTagsResponse = ExpressRoutePort & { - /** - * 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: ExpressRoutePort; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type ExpressRoutePortsListByResourceGroupNextResponse = ExpressRoutePortListResult & { - /** - * 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: ExpressRoutePortListResult; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type ExpressRoutePortsListNextResponse = ExpressRoutePortListResult & { - /** - * 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: ExpressRoutePortListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ExpressRouteLinksGetResponse = ExpressRouteLink & { - /** - * 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: ExpressRouteLink; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type ExpressRouteLinksListResponse = ExpressRouteLinkListResult & { - /** - * 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: ExpressRouteLinkListResult; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type ExpressRouteLinksListNextResponse = ExpressRouteLinkListResult & { - /** - * 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: ExpressRouteLinkListResult; - }; -}; - /** * Contains response data for the get operation. */ @@ -15633,63 +14900,6 @@ export type LoadBalancerLoadBalancingRulesListNextResponse = LoadBalancerLoadBal }; }; -/** - * Contains response data for the list operation. - */ -export type LoadBalancerOutboundRulesListResponse = LoadBalancerOutboundRuleListResult & { - /** - * 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: LoadBalancerOutboundRuleListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type LoadBalancerOutboundRulesGetResponse = OutboundRule & { - /** - * 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: OutboundRule; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type LoadBalancerOutboundRulesListNextResponse = LoadBalancerOutboundRuleListResult & { - /** - * 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: LoadBalancerOutboundRuleListResult; - }; -}; - /** * Contains response data for the list operation. */ diff --git a/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts b/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts index df10a912a858..35e15ce8ce87 100644 --- a/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts +++ b/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts index fd2bf21e6ded..405bf7b501b9 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts index 485ed18150d0..d548e17d0a28 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts index afcdfa293aa3..67914e1ee54e 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -110,10 +108,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, Probe, InboundNatPool, OutboundRule, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts index 3d13879ea246..f12d7a68eabf 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts index 30c734265c37..b78be22dd7ab 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -110,10 +108,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, InboundNatPool, OutboundRule, diff --git a/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts index 58fcf6253418..80756a94c71d 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts @@ -60,7 +60,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -72,7 +71,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -116,10 +114,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, ContainerNetworkInterfaceConfiguration, ContainerNetworkInterface, Container, diff --git a/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts index 1e5986d2a9de..50674894b631 100644 --- a/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts @@ -57,7 +57,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -69,7 +68,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -113,10 +111,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/mappers.ts b/packages/@azure/arm-network/lib/models/mappers.ts index fbaad053a663..24d5e46919c6 100644 --- a/packages/@azure/arm-network/lib/models/mappers.ts +++ b/packages/@azure/arm-network/lib/models/mappers.ts @@ -2614,28 +2614,6 @@ export const ApplicationGatewayFrontendPort: msRest.CompositeMapper = { } }; -export const ApplicationGatewayCustomError: msRest.CompositeMapper = { - serializedName: "ApplicationGatewayCustomError", - type: { - name: "Composite", - className: "ApplicationGatewayCustomError", - modelProperties: { - statusCode: { - serializedName: "statusCode", - type: { - name: "String" - } - }, - customErrorPageUrl: { - serializedName: "customErrorPageUrl", - type: { - name: "String" - } - } - } - } -}; - export const ApplicationGatewayHttpListener: msRest.CompositeMapper = { serializedName: "ApplicationGatewayHttpListener", type: { @@ -2688,18 +2666,6 @@ export const ApplicationGatewayHttpListener: msRest.CompositeMapper = { name: "String" } }, - customErrorConfigurations: { - serializedName: "properties.customErrorConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayCustomError" - } - } - } - }, name: { serializedName: "name", type: { @@ -3174,37 +3140,6 @@ export const ApplicationGatewayFirewallDisabledRuleGroup: msRest.CompositeMapper } }; -export const ApplicationGatewayFirewallExclusion: msRest.CompositeMapper = { - serializedName: "ApplicationGatewayFirewallExclusion", - type: { - name: "Composite", - className: "ApplicationGatewayFirewallExclusion", - modelProperties: { - matchVariable: { - required: true, - serializedName: "matchVariable", - type: { - name: "String" - } - }, - selectorMatchOperator: { - required: true, - serializedName: "selectorMatchOperator", - type: { - name: "String" - } - }, - selector: { - required: true, - serializedName: "selector", - type: { - name: "String" - } - } - } - } -}; - export const ApplicationGatewayWebApplicationFirewallConfiguration: msRest.CompositeMapper = { serializedName: "ApplicationGatewayWebApplicationFirewallConfiguration", type: { @@ -3266,38 +3201,6 @@ export const ApplicationGatewayWebApplicationFirewallConfiguration: msRest.Compo type: { name: "Number" } - }, - maxRequestBodySizeInKb: { - serializedName: "maxRequestBodySizeInKb", - constraints: { - InclusiveMaximum: 128, - InclusiveMinimum: 8 - }, - type: { - name: "Number" - } - }, - fileUploadLimitInMb: { - serializedName: "fileUploadLimitInMb", - constraints: { - InclusiveMaximum: 500, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - exclusions: { - serializedName: "exclusions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayFirewallExclusion" - } - } - } } } } @@ -3545,18 +3448,6 @@ export const ApplicationGateway: msRest.CompositeMapper = { name: "String" } }, - customErrorConfigurations: { - serializedName: "properties.customErrorConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayCustomError" - } - } - } - }, etag: { serializedName: "etag", type: { @@ -5230,26 +5121,6 @@ export const ExpressRouteCircuit: msRest.CompositeMapper = { className: "ExpressRouteCircuitServiceProviderProperties" } }, - expressRoutePort: { - serializedName: "properties.expressRoutePort", - type: { - name: "Composite", - className: "SubResource" - } - }, - bandwidthInGbps: { - serializedName: "properties.bandwidthInGbps", - type: { - name: "Number" - } - }, - stag: { - readOnly: true, - serializedName: "properties.stag", - type: { - name: "Number" - } - }, provisioningState: { serializedName: "properties.provisioningState", type: { @@ -6044,248 +5915,6 @@ export const ExpressRouteConnectionList: msRest.CompositeMapper = { } }; -export const ExpressRoutePortsLocationBandwidths: msRest.CompositeMapper = { - serializedName: "ExpressRoutePortsLocationBandwidths", - type: { - name: "Composite", - className: "ExpressRoutePortsLocationBandwidths", - modelProperties: { - offerName: { - readOnly: true, - serializedName: "offerName", - type: { - name: "String" - } - }, - valueInGbps: { - readOnly: true, - serializedName: "valueInGbps", - type: { - name: "Number" - } - } - } - } -}; - -export const ExpressRoutePortsLocation: msRest.CompositeMapper = { - serializedName: "ExpressRoutePortsLocation", - type: { - name: "Composite", - className: "ExpressRoutePortsLocation", - modelProperties: { - ...Resource.type.modelProperties, - address: { - readOnly: true, - serializedName: "properties.address", - type: { - name: "String" - } - }, - contact: { - readOnly: true, - serializedName: "properties.contact", - type: { - name: "String" - } - }, - availableBandwidths: { - serializedName: "properties.availableBandwidths", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRoutePortsLocationBandwidths" - } - } - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - } - } - } -}; - -export const ExpressRouteLink: msRest.CompositeMapper = { - serializedName: "ExpressRouteLink", - type: { - name: "Composite", - className: "ExpressRouteLink", - modelProperties: { - ...SubResource.type.modelProperties, - routerName: { - readOnly: true, - serializedName: "properties.routerName", - type: { - name: "String" - } - }, - interfaceName: { - readOnly: true, - serializedName: "properties.interfaceName", - type: { - name: "String" - } - }, - patchPanelId: { - readOnly: true, - serializedName: "properties.patchPanelId", - type: { - name: "String" - } - }, - rackId: { - readOnly: true, - serializedName: "properties.rackId", - type: { - name: "String" - } - }, - connectorType: { - readOnly: true, - serializedName: "properties.connectorType", - type: { - name: "String" - } - }, - adminState: { - serializedName: "properties.adminState", - type: { - name: "String" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - etag: { - readOnly: true, - serializedName: "etag", - type: { - name: "String" - } - } - } - } -}; - -export const ExpressRoutePort: msRest.CompositeMapper = { - serializedName: "ExpressRoutePort", - type: { - name: "Composite", - className: "ExpressRoutePort", - modelProperties: { - ...Resource.type.modelProperties, - peeringLocation: { - serializedName: "properties.peeringLocation", - type: { - name: "String" - } - }, - bandwidthInGbps: { - serializedName: "properties.bandwidthInGbps", - type: { - name: "Number" - } - }, - provisionedBandwidthInGbps: { - readOnly: true, - serializedName: "properties.provisionedBandwidthInGbps", - type: { - name: "Number" - } - }, - mtu: { - readOnly: true, - serializedName: "properties.mtu", - type: { - name: "String" - } - }, - encapsulation: { - serializedName: "properties.encapsulation", - type: { - name: "String" - } - }, - etherType: { - readOnly: true, - serializedName: "properties.etherType", - type: { - name: "String" - } - }, - allocationDate: { - readOnly: true, - serializedName: "properties.allocationDate", - type: { - name: "String" - } - }, - links: { - serializedName: "properties.links", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteLink" - } - } - } - }, - circuits: { - readOnly: true, - serializedName: "properties.circuits", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - type: { - name: "String" - } - }, - etag: { - readOnly: true, - serializedName: "etag", - type: { - name: "String" - } - } - } - } -}; - export const LoadBalancerSku: msRest.CompositeMapper = { serializedName: "LoadBalancerSku", type: { @@ -9577,11 +9206,11 @@ export const ConnectionMonitorQueryResult: msRest.CompositeMapper = { } }; -export const NetworkConfigurationDiagnosticProfile: msRest.CompositeMapper = { - serializedName: "NetworkConfigurationDiagnosticProfile", +export const TrafficQuery: msRest.CompositeMapper = { + serializedName: "TrafficQuery", type: { name: "Composite", - className: "NetworkConfigurationDiagnosticProfile", + className: "TrafficQuery", modelProperties: { direction: { required: true, @@ -9635,21 +9264,15 @@ export const NetworkConfigurationDiagnosticParameters: msRest.CompositeMapper = name: "String" } }, - verbosityLevel: { - serializedName: "verbosityLevel", - type: { - name: "String" - } - }, - profiles: { + queries: { required: true, - serializedName: "profiles", + serializedName: "queries", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkConfigurationDiagnosticProfile" + className: "TrafficQuery" } } } @@ -9738,12 +9361,6 @@ export const EvaluatedNetworkSecurityGroup: msRest.CompositeMapper = { name: "String" } }, - appliedTo: { - serializedName: "appliedTo", - type: { - name: "String" - } - }, matchedRule: { serializedName: "matchedRule", type: { @@ -9803,11 +9420,11 @@ export const NetworkConfigurationDiagnosticResult: msRest.CompositeMapper = { name: "Composite", className: "NetworkConfigurationDiagnosticResult", modelProperties: { - profile: { - serializedName: "profile", + trafficQuery: { + serializedName: "trafficQuery", type: { name: "Composite", - className: "NetworkConfigurationDiagnosticProfile" + className: "TrafficQuery" } }, networkSecurityGroupResult: { @@ -13465,90 +13082,6 @@ export const ExpressRouteCrossConnectionPeeringList: msRest.CompositeMapper = { } }; -export const ExpressRoutePortsLocationListResult: msRest.CompositeMapper = { - serializedName: "ExpressRoutePortsLocationListResult", - type: { - name: "Composite", - className: "ExpressRoutePortsLocationListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRoutePortsLocation" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ExpressRoutePortListResult: msRest.CompositeMapper = { - serializedName: "ExpressRoutePortListResult", - type: { - name: "Composite", - className: "ExpressRoutePortListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRoutePort" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ExpressRouteLinkListResult: msRest.CompositeMapper = { - serializedName: "ExpressRouteLinkListResult", - type: { - name: "Composite", - className: "ExpressRouteLinkListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteLink" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const InterfaceEndpointListResult: msRest.CompositeMapper = { serializedName: "InterfaceEndpointListResult", type: { @@ -13723,35 +13256,6 @@ export const LoadBalancerLoadBalancingRuleListResult: msRest.CompositeMapper = { } }; -export const LoadBalancerOutboundRuleListResult: msRest.CompositeMapper = { - serializedName: "LoadBalancerOutboundRuleListResult", - type: { - name: "Composite", - className: "LoadBalancerOutboundRuleListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutboundRule" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const NetworkInterfaceListResult: msRest.CompositeMapper = { serializedName: "NetworkInterfaceListResult", type: { diff --git a/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts index 344027e30b02..5baa0698ba4e 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts index ca7bd7b74463..d849bacf142c 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts @@ -59,7 +59,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -71,7 +70,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -115,10 +113,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, ContainerNetworkInterfaceConfiguration, ContainerNetworkInterface, Container, diff --git a/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts index 6fda7e232095..eb9577e6c6b9 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts index 3804dccf33e3..e66898bb453b 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts @@ -61,7 +61,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -73,7 +72,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -117,10 +115,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts b/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts index b35b177d21e6..33f625532b80 100644 --- a/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts @@ -59,7 +59,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -71,7 +70,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -115,10 +113,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts b/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts index 235d3464816b..59b78a500579 100644 --- a/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -110,10 +108,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts b/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts index e231e7a36d4d..600b1d506526 100644 --- a/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts @@ -64,7 +64,7 @@ export { AvailableProvidersListState, AvailableProvidersListCity, NetworkConfigurationDiagnosticParameters, - NetworkConfigurationDiagnosticProfile, + TrafficQuery, NetworkConfigurationDiagnosticResponse, NetworkConfigurationDiagnosticResult, NetworkSecurityGroupResult, @@ -108,7 +108,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -120,7 +119,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -164,10 +162,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts index a2ef1b02ef70..93a42e99e38f 100644 --- a/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts @@ -61,7 +61,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -73,7 +72,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -117,10 +115,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts index cefefe3f2694..0ea3cb8a4406 100644 --- a/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts @@ -60,7 +60,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -72,7 +71,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -116,10 +114,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/parameters.ts b/packages/@azure/arm-network/lib/models/parameters.ts index f74182279047..27c3aaec808d 100644 --- a/packages/@azure/arm-network/lib/models/parameters.ts +++ b/packages/@azure/arm-network/lib/models/parameters.ts @@ -196,16 +196,6 @@ export const expressRouteGatewayName: msRest.OperationURLParameter = { } } }; -export const expressRoutePortName: msRest.OperationURLParameter = { - parameterPath: "expressRoutePortName", - mapper: { - required: true, - serializedName: "expressRoutePortName", - type: { - name: "String" - } - } -}; export const frontendIPConfigurationName: msRest.OperationURLParameter = { parameterPath: "frontendIPConfigurationName", mapper: { @@ -259,9 +249,11 @@ export const interfaceEndpointName: msRest.OperationURLParameter = { } }; export const ipAddress: msRest.OperationQueryParameter = { - parameterPath: "ipAddress", + parameterPath: [ + "options", + "ipAddress" + ], mapper: { - required: true, serializedName: "ipAddress", type: { name: "String" @@ -278,16 +270,6 @@ export const ipConfigurationName: msRest.OperationURLParameter = { } } }; -export const linkName: msRest.OperationURLParameter = { - parameterPath: "linkName", - mapper: { - required: true, - serializedName: "linkName", - type: { - name: "String" - } - } -}; export const loadBalancerName: msRest.OperationURLParameter = { parameterPath: "loadBalancerName", mapper: { @@ -344,16 +326,6 @@ export const location1: msRest.OperationURLParameter = { } } }; -export const locationName: msRest.OperationURLParameter = { - parameterPath: "locationName", - mapper: { - required: true, - serializedName: "locationName", - type: { - name: "String" - } - } -}; export const networkInterfaceName: msRest.OperationURLParameter = { parameterPath: "networkInterfaceName", mapper: { @@ -405,16 +377,6 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; -export const outboundRuleName: msRest.OperationURLParameter = { - parameterPath: "outboundRuleName", - mapper: { - required: true, - serializedName: "outboundRuleName", - type: { - name: "String" - } - } -}; export const p2SVpnServerConfigurationName: msRest.OperationURLParameter = { parameterPath: "p2SVpnServerConfigurationName", mapper: { @@ -637,6 +599,16 @@ export const virtualHubName: msRest.OperationURLParameter = { } } }; +export const virtualmachineIndex: msRest.OperationURLParameter = { + parameterPath: "virtualmachineIndex", + mapper: { + required: true, + serializedName: "virtualmachineIndex", + type: { + name: "String" + } + } +}; export const virtualMachineScaleSetName: msRest.OperationURLParameter = { parameterPath: "virtualMachineScaleSetName", mapper: { @@ -687,41 +659,31 @@ export const virtualNetworkPeeringName: msRest.OperationURLParameter = { } } }; -export const virtualWANName0: msRest.OperationURLParameter = { - parameterPath: "virtualWANName", +export const virtualWanName: msRest.OperationURLParameter = { + parameterPath: "virtualWanName", mapper: { required: true, - serializedName: "virtualWANName", + serializedName: "virtualWanName", type: { name: "String" } } }; -export const virtualWANName1: msRest.OperationURLParameter = { +export const virtualWANName0: msRest.OperationURLParameter = { parameterPath: "virtualWANName", mapper: { required: true, - serializedName: "VirtualWANName", - type: { - name: "String" - } - } -}; -export const virtualWanName: msRest.OperationURLParameter = { - parameterPath: "virtualWanName", - mapper: { - required: true, - serializedName: "virtualWanName", + serializedName: "virtualWANName", type: { name: "String" } } }; -export const virtualmachineIndex: msRest.OperationURLParameter = { - parameterPath: "virtualmachineIndex", +export const virtualWANName1: msRest.OperationURLParameter = { + parameterPath: "virtualWANName", mapper: { required: true, - serializedName: "virtualmachineIndex", + serializedName: "VirtualWANName", type: { name: "String" } diff --git a/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts b/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts index 216322ad2dfb..ae0b843b9e9d 100644 --- a/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts +++ b/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -110,10 +108,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts b/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts index e24ea81e48a2..f3415ab9761f 100644 --- a/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts +++ b/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts @@ -57,7 +57,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -69,7 +68,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -113,10 +111,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts b/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts index a011ff65a87f..0332bdd075f0 100644 --- a/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts @@ -55,7 +55,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -67,7 +66,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -110,10 +108,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts b/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts index af6c903ea7ba..c27355f4bd4f 100644 --- a/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts @@ -62,7 +62,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -74,7 +73,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -110,10 +108,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/routeTablesMappers.ts b/packages/@azure/arm-network/lib/models/routeTablesMappers.ts index 37c23bfc68c9..c4996c44f818 100644 --- a/packages/@azure/arm-network/lib/models/routeTablesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeTablesMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -110,10 +108,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/routesMappers.ts b/packages/@azure/arm-network/lib/models/routesMappers.ts index d0df9cb83a13..ad9e8640aee9 100644 --- a/packages/@azure/arm-network/lib/models/routesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routesMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/securityRulesMappers.ts b/packages/@azure/arm-network/lib/models/securityRulesMappers.ts index 3562a31faf7b..833cf45221ff 100644 --- a/packages/@azure/arm-network/lib/models/securityRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/securityRulesMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts b/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts index 7a27cf228057..2577866a4e02 100644 --- a/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts +++ b/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -110,10 +108,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts b/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts index c5a5ef77399a..e7c207a63e57 100644 --- a/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/subnetsMappers.ts b/packages/@azure/arm-network/lib/models/subnetsMappers.ts index 6bc7344da403..5998a68b3995 100644 --- a/packages/@azure/arm-network/lib/models/subnetsMappers.ts +++ b/packages/@azure/arm-network/lib/models/subnetsMappers.ts @@ -53,7 +53,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,7 +64,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,10 +107,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts b/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts index 98159313f293..a60d80935e1b 100644 --- a/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts @@ -59,7 +59,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -71,7 +70,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -115,10 +113,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts index 4261fd73b1c3..36c76cc10fe4 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts @@ -68,7 +68,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -80,7 +79,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -124,10 +122,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts index 898893037d45..c161cdaf6f51 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts @@ -74,7 +74,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -86,7 +85,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -130,10 +128,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts index 5290d870c507..b73870b9d6d0 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts @@ -55,7 +55,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -67,7 +66,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -111,10 +109,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts index c44120a674f3..4ddc6e51ca97 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts @@ -54,7 +54,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,7 +65,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -110,10 +108,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts index 9b017c355191..70b32752b2c4 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts @@ -62,7 +62,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -74,7 +73,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -118,10 +116,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualWansMappers.ts b/packages/@azure/arm-network/lib/models/virtualWansMappers.ts index 1a2bad1525d9..38fed399ec85 100644 --- a/packages/@azure/arm-network/lib/models/virtualWansMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualWansMappers.ts @@ -62,7 +62,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -74,7 +73,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -118,10 +116,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts index f5fb6561282d..47efff0fb67c 100644 --- a/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts @@ -56,7 +56,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -68,7 +67,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -112,10 +110,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts index 86322d21de5d..58ce57cef511 100644 --- a/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts @@ -59,7 +59,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -71,7 +70,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -115,10 +113,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts b/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts index 6c476893ef60..8893f5a1fa17 100644 --- a/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts @@ -59,7 +59,6 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, - ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -71,7 +70,6 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, - ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -115,10 +113,6 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, - ExpressRoutePortsLocation, - ExpressRoutePortsLocationBandwidths, - ExpressRouteLink, - ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/networkManagementClient.ts b/packages/@azure/arm-network/lib/networkManagementClient.ts index c9ce79173fe7..533477e48e95 100644 --- a/packages/@azure/arm-network/lib/networkManagementClient.ts +++ b/packages/@azure/arm-network/lib/networkManagementClient.ts @@ -35,16 +35,12 @@ class NetworkManagementClient extends NetworkManagementClientContext { expressRouteCrossConnectionPeerings: operations.ExpressRouteCrossConnectionPeerings; expressRouteGateways: operations.ExpressRouteGateways; expressRouteConnections: operations.ExpressRouteConnections; - expressRoutePortsLocations: operations.ExpressRoutePortsLocations; - expressRoutePorts: operations.ExpressRoutePorts; - expressRouteLinks: operations.ExpressRouteLinks; interfaceEndpoints: operations.InterfaceEndpoints; loadBalancers: operations.LoadBalancers; loadBalancerBackendAddressPools: operations.LoadBalancerBackendAddressPools; loadBalancerFrontendIPConfigurations: operations.LoadBalancerFrontendIPConfigurations; inboundNatRules: operations.InboundNatRules; loadBalancerLoadBalancingRules: operations.LoadBalancerLoadBalancingRules; - loadBalancerOutboundRules: operations.LoadBalancerOutboundRules; loadBalancerNetworkInterfaces: operations.LoadBalancerNetworkInterfaces; loadBalancerProbes: operations.LoadBalancerProbes; networkInterfaces: operations.NetworkInterfaces; @@ -112,16 +108,12 @@ class NetworkManagementClient extends NetworkManagementClientContext { this.expressRouteCrossConnectionPeerings = new operations.ExpressRouteCrossConnectionPeerings(this); this.expressRouteGateways = new operations.ExpressRouteGateways(this); this.expressRouteConnections = new operations.ExpressRouteConnections(this); - this.expressRoutePortsLocations = new operations.ExpressRoutePortsLocations(this); - this.expressRoutePorts = new operations.ExpressRoutePorts(this); - this.expressRouteLinks = new operations.ExpressRouteLinks(this); this.interfaceEndpoints = new operations.InterfaceEndpoints(this); this.loadBalancers = new operations.LoadBalancers(this); this.loadBalancerBackendAddressPools = new operations.LoadBalancerBackendAddressPools(this); this.loadBalancerFrontendIPConfigurations = new operations.LoadBalancerFrontendIPConfigurations(this); this.inboundNatRules = new operations.InboundNatRules(this); this.loadBalancerLoadBalancingRules = new operations.LoadBalancerLoadBalancingRules(this); - this.loadBalancerOutboundRules = new operations.LoadBalancerOutboundRules(this); this.loadBalancerNetworkInterfaces = new operations.LoadBalancerNetworkInterfaces(this); this.loadBalancerProbes = new operations.LoadBalancerProbes(this); this.networkInterfaces = new operations.NetworkInterfaces(this); diff --git a/packages/@azure/arm-network/lib/networkManagementClientContext.ts b/packages/@azure/arm-network/lib/networkManagementClientContext.ts index 699c941d9b30..d47314229d76 100644 --- a/packages/@azure/arm-network/lib/networkManagementClientContext.ts +++ b/packages/@azure/arm-network/lib/networkManagementClientContext.ts @@ -16,9 +16,15 @@ const packageName = "@azure/arm-network"; const packageVersion = "1.0.0"; export class NetworkManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + /** * Initializes a new instance of the NetworkManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. diff --git a/packages/@azure/arm-network/lib/operations/index.ts b/packages/@azure/arm-network/lib/operations/index.ts index aac883cb909b..2fba54a3fc3e 100644 --- a/packages/@azure/arm-network/lib/operations/index.ts +++ b/packages/@azure/arm-network/lib/operations/index.ts @@ -25,16 +25,12 @@ export * from "./expressRouteCrossConnections"; export * from "./expressRouteCrossConnectionPeerings"; export * from "./expressRouteGateways"; export * from "./expressRouteConnections"; -export * from "./expressRoutePortsLocations"; -export * from "./expressRoutePorts"; -export * from "./expressRouteLinks"; export * from "./interfaceEndpoints"; export * from "./loadBalancers"; export * from "./loadBalancerBackendAddressPools"; export * from "./loadBalancerFrontendIPConfigurations"; export * from "./inboundNatRules"; export * from "./loadBalancerLoadBalancingRules"; -export * from "./loadBalancerOutboundRules"; export * from "./loadBalancerNetworkInterfaces"; export * from "./loadBalancerProbes"; export * from "./networkInterfaces"; diff --git a/packages/@azure/arm-network/lib/operations/virtualNetworks.ts b/packages/@azure/arm-network/lib/operations/virtualNetworks.ts index 7950a2364313..ce1743845be3 100644 --- a/packages/@azure/arm-network/lib/operations/virtualNetworks.ts +++ b/packages/@azure/arm-network/lib/operations/virtualNetworks.ts @@ -153,32 +153,28 @@ export class VirtualNetworks { * Checks whether a private IP address is available for use. * @param resourceGroupName The name of the resource group. * @param virtualNetworkName The name of the virtual network. - * @param ipAddress The private IP address to be verified. * @param [options] The optional parameters * @returns Promise */ - checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: msRest.RequestOptionsBase): Promise; + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, options?: Models.VirtualNetworksCheckIPAddressAvailabilityOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param virtualNetworkName The name of the virtual network. - * @param ipAddress The private IP address to be verified. * @param callback The callback */ - checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, callback: msRest.ServiceCallback): void; + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param virtualNetworkName The name of the virtual network. - * @param ipAddress The private IP address to be verified. * @param options The optional parameters * @param callback The callback */ - checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, options: Models.VirtualNetworksCheckIPAddressAvailabilityOptionalParams, callback: msRest.ServiceCallback): void; + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, options?: Models.VirtualNetworksCheckIPAddressAvailabilityOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualNetworkName, - ipAddress, options }, checkIPAddressAvailabilityOperationSpec, diff --git a/packages/@azure/arm-network/package.json b/packages/@azure/arm-network/package.json index 4e73774ec287..af51b0cf4f72 100644 --- a/packages/@azure/arm-network/package.json +++ b/packages/@azure/arm-network/package.json @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-network.js.map'\" -o ./dist/arm-network.min.js ./dist/arm-network.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-sql/README.md b/packages/@azure/arm-sql/README.md index 53d21b390613..fd114bf7f2b5 100644 --- a/packages/@azure/arm-sql/README.md +++ b/packages/@azure/arm-sql/README.md @@ -1,83 +1,83 @@ -# Azure SqlManagementClient SDK for JavaScript -This package contains an isomorphic SDK for SqlManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-sql -``` - - -## How to use - -### nodejs - Authentication, client creation and get recoverableDatabases as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { SqlManagementClient, SqlManagementModels, SqlManagementMappers } from "@azure/arm-sql"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SqlManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const serverName = "testserverName"; - const databaseName = "testdatabaseName"; - client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and get recoverableDatabases as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-sql sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure SqlManagementClient SDK for JavaScript +This package contains an isomorphic SDK for SqlManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-sql +``` + + +## How to use + +### nodejs - Authentication, client creation and get recoverableDatabases as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { SqlManagementClient, SqlManagementModels, SqlManagementMappers } from "@azure/arm-sql"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new SqlManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const serverName = "testserverName"; + const databaseName = "testdatabaseName"; + client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and get recoverableDatabases as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-sql sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts index d3613306eb3f..77fbde5f43b3 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts @@ -15,7 +15,6 @@ export { BaseResource, VulnerabilityAssessmentRecurringScansProperties, CloudError, - DatabaseVulnerabilityAssessmentListResult, RecoverableDatabase, RestorableDroppedDatabase, TrackedResource, diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index d97795b5192f..540a9d64f83b 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -3143,7 +3143,7 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { predicateExpression?: string; /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are + * If state is Enabled, storageEndpoint and storageAccountAccessKey are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -3155,13 +3155,13 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled and storageEndpoint is - * specified, storageAccountAccessKey is required. + * the auditing storage account. If state is Enabled, storageAccountAccessKey + * is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs in the storage account. + * the audit logs. */ retentionDays?: number; /** @@ -3249,27 +3249,6 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; - /** - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit - * events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' - * and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with - * 'SQLSecurityAuditEvents' diagnostic logs category on the database should - * be also created. - * Note that for server level audit you should use the 'master' database as - * . - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - */ - isAzureMonitorTargetEnabled?: boolean; } /** @@ -3287,7 +3266,7 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { predicateExpression?: string; /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are + * If state is Enabled, storageEndpoint and storageAccountAccessKey are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -3299,13 +3278,13 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled and storageEndpoint is - * specified, storageAccountAccessKey is required. + * the auditing storage account. If state is Enabled, storageAccountAccessKey + * is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs in the storage account. + * the audit logs. */ retentionDays?: number; /** @@ -3393,27 +3372,6 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; - /** - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit - * events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' - * and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with - * 'SQLSecurityAuditEvents' diagnostic logs category on the database should - * be also created. - * Note that for server level audit you should use the 'master' database as - * . - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - */ - isAzureMonitorTargetEnabled?: boolean; } /** @@ -3426,7 +3384,7 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { export interface ServerBlobAuditingPolicy extends ProxyResource { /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are + * If state is Enabled, storageEndpoint and storageAccountAccessKey are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -3438,13 +3396,13 @@ export interface ServerBlobAuditingPolicy extends ProxyResource { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled and storageEndpoint is - * specified, storageAccountAccessKey is required. + * the auditing storage account. If state is Enabled, storageAccountAccessKey + * is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs in the storage account. + * the audit logs. */ retentionDays?: number; /** @@ -3532,27 +3490,6 @@ export interface ServerBlobAuditingPolicy extends ProxyResource { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; - /** - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit - * events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' - * and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with - * 'SQLSecurityAuditEvents' diagnostic logs category on the database should - * be also created. - * Note that for server level audit you should use the 'master' database as - * . - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - */ - isAzureMonitorTargetEnabled?: boolean; } /** @@ -3571,7 +3508,7 @@ export interface DatabaseBlobAuditingPolicy extends ProxyResource { readonly kind?: string; /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are + * If state is Enabled, storageEndpoint and storageAccountAccessKey are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -3583,13 +3520,13 @@ export interface DatabaseBlobAuditingPolicy extends ProxyResource { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled and storageEndpoint is - * specified, storageAccountAccessKey is required. + * the auditing storage account. If state is Enabled, storageAccountAccessKey + * is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs in the storage account. + * the audit logs. */ retentionDays?: number; /** @@ -3677,27 +3614,6 @@ export interface DatabaseBlobAuditingPolicy extends ProxyResource { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; - /** - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit - * events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' - * and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with - * 'SQLSecurityAuditEvents' diagnostic logs category on the database should - * be also created. - * Note that for server level audit you should use the 'master' database as - * . - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - */ - isAzureMonitorTargetEnabled?: boolean; } /** @@ -3762,12 +3678,11 @@ export interface VulnerabilityAssessmentRecurringScansProperties { */ export interface DatabaseVulnerabilityAssessment extends ProxyResource { /** - * @member {string} [storageContainerPath] A blob storage container path to + * @member {string} storageContainerPath A blob storage container path to * hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if - * server level vulnerability assessment policy doesn't set + * https://myStorage.blob.core.windows.net/VaScans/). */ - storageContainerPath?: string; + storageContainerPath: string; /** * @member {string} [storageContainerSasKey] A shared access signature (SAS * Key) that has write access to the blob container specified in @@ -3777,9 +3692,8 @@ export interface DatabaseVulnerabilityAssessment extends ProxyResource { storageContainerSasKey?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the storage account for vulnerability assessment scan results. If - * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is - * required. + * the vulnerability assessment storage account. If 'StorageContainerSasKey' + * isn't specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** @@ -7308,22 +7222,6 @@ export interface VirtualNetworkRuleListResult extends Array readonly nextLink?: string; } -/** - * @interface - * An interface representing the DatabaseVulnerabilityAssessmentListResult. - * A list of the database's vulnerability assessments. - * - * @extends Array - */ -export interface DatabaseVulnerabilityAssessmentListResult extends Array { - /** - * @member {string} [nextLink] Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly nextLink?: string; -} - /** * @interface * An interface representing the JobAgentListResult. @@ -12176,44 +12074,6 @@ export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVul }; }; -/** - * Contains response data for the listByDatabase operation. - */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { - /** - * 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: DatabaseVulnerabilityAssessmentListResult; - }; -}; - -/** - * Contains response data for the listByDatabaseNext operation. - */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { - /** - * 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: DatabaseVulnerabilityAssessmentListResult; - }; -}; - /** * Contains response data for the listByServer operation. */ @@ -14019,44 +13879,6 @@ export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = Data }; }; -/** - * Contains response data for the listByDatabase operation. - */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { - /** - * 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: DatabaseVulnerabilityAssessmentListResult; - }; -}; - -/** - * Contains response data for the listByDatabaseNext operation. - */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { - /** - * 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: DatabaseVulnerabilityAssessmentListResult; - }; -}; - /** * Contains response data for the get operation. */ diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts index d3613306eb3f..77fbde5f43b3 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts @@ -15,7 +15,6 @@ export { BaseResource, VulnerabilityAssessmentRecurringScansProperties, CloudError, - DatabaseVulnerabilityAssessmentListResult, RecoverableDatabase, RestorableDroppedDatabase, TrackedResource, diff --git a/packages/@azure/arm-sql/lib/models/mappers.ts b/packages/@azure/arm-sql/lib/models/mappers.ts index fe6bdb437e26..1209800c98d2 100644 --- a/packages/@azure/arm-sql/lib/models/mappers.ts +++ b/packages/@azure/arm-sql/lib/models/mappers.ts @@ -3838,12 +3838,6 @@ export const ExtendedDatabaseBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } } } } @@ -3913,12 +3907,6 @@ export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } } } } @@ -3982,12 +3970,6 @@ export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } } } } @@ -4058,12 +4040,6 @@ export const DatabaseBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } } } } @@ -4157,6 +4133,7 @@ export const DatabaseVulnerabilityAssessment: msRest.CompositeMapper = { modelProperties: { ...ProxyResource.type.modelProperties, storageContainerPath: { + required: true, serializedName: "properties.storageContainerPath", type: { name: "String" @@ -8364,36 +8341,6 @@ export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { } }; -export const DatabaseVulnerabilityAssessmentListResult: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentListResult", - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessment" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const JobAgentListResult: msRest.CompositeMapper = { serializedName: "JobAgentListResult", type: { diff --git a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts index 4cc14b598567..40519a05d735 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts @@ -146,76 +146,6 @@ export class DatabaseVulnerabilityAssessments { deleteMethodOperationSpec, callback); } - - /** - * Lists the vulnerability assessment policies associated with a database. - * @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 serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment policies are - * defined. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: 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 serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment policies are - * defined. - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: 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 serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment policies are - * defined. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Lists the vulnerability assessment policies associated with a database. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(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 - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -308,50 +238,3 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts index e750987e8fc4..e3f16e6df7c5 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts @@ -146,73 +146,6 @@ export class ManagedDatabaseVulnerabilityAssessments { deleteMethodOperationSpec, callback); } - - /** - * Lists the vulnerability assessments of a managed database. - * @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 managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: 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 managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: 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 managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Lists the vulnerability assessments of a managed database. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(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 - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -305,50 +238,3 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts index 90e0186f833f..3b7dd7021f73 100644 --- a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts +++ b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts @@ -16,9 +16,15 @@ const packageName = "@azure/arm-sql"; const packageVersion = "1.0.0-preview"; export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + /** * Initializes a new instance of the SqlManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. diff --git a/packages/@azure/arm-storage/.npmignore b/packages/@azure/arm-storage/.npmignore new file mode 100644 index 000000000000..3b46bc6202d8 --- /dev/null +++ b/packages/@azure/arm-storage/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-storage/README.md b/packages/@azure/arm-storage/README.md index 7e4ffefa24c4..3ec0faccedfe 100644 --- a/packages/@azure/arm-storage/README.md +++ b/packages/@azure/arm-storage/README.md @@ -62,7 +62,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log("An error occurred:"); + console.log('An error occurred:'); console.error(err); }); }); diff --git a/packages/@azure/arm-storage/lib/models/blobContainersMappers.ts b/packages/@azure/arm-storage/lib/models/blobContainersMappers.ts index 02ac7441ffca..ecf091ad7c17 100644 --- a/packages/@azure/arm-storage/lib/models/blobContainersMappers.ts +++ b/packages/@azure/arm-storage/lib/models/blobContainersMappers.ts @@ -29,10 +29,6 @@ export { BlobContainersExtendImmutabilityPolicyHeaders, ProxyResource, TrackedResource, - BlobServiceProperties, - CorsRules, - CorsRule, - DeleteRetentionPolicy, StorageAccountManagementPolicies, StorageAccount, Sku, diff --git a/packages/@azure/arm-storage/lib/models/index.ts b/packages/@azure/arm-storage/lib/models/index.ts index e1a99b5055bf..69e0c36a2773 100644 --- a/packages/@azure/arm-storage/lib/models/index.ts +++ b/packages/@azure/arm-storage/lib/models/index.ts @@ -1626,106 +1626,6 @@ export interface ListContainerItems { value?: ListContainerItem[]; } -/** - * @interface - * An interface representing CorsRule. - * Specifies a CORS rule for the Blob service. - * - */ -export interface CorsRule { - /** - * @member {string[]} allowedOrigins Required if CorsRule element is present. - * A list of origin domains that will be allowed via CORS, or "*" to allow - * all domains - */ - allowedOrigins: string[]; - /** - * @member {string[]} allowedMethods Required if CorsRule element is present. - * A list of HTTP methods that are allowed to be executed by the origin. - */ - allowedMethods: string[]; - /** - * @member {number} maxAgeInSeconds Required if CorsRule element is present. - * The number of seconds that the client/browser should cache a preflight - * response. - */ - maxAgeInSeconds: number; - /** - * @member {string[]} exposedHeaders Required if CorsRule element is present. - * A list of response headers to expose to CORS clients. - */ - exposedHeaders: string[]; - /** - * @member {string[]} allowedHeaders Required if CorsRule element is present. - * A list of headers allowed to be part of the cross-origin request. - */ - allowedHeaders: string[]; -} - -/** - * @interface - * An interface representing CorsRules. - * Sets the CORS rules. You can include up to five CorsRule elements in the - * request. - * - */ -export interface CorsRules { - /** - * @member {CorsRule[]} [corsRules] The List of CORS rules. You can include - * up to five CorsRule elements in the request. - */ - corsRules?: CorsRule[]; -} - -/** - * @interface - * An interface representing DeleteRetentionPolicy. - * The blob service properties for soft delete. - * - */ -export interface DeleteRetentionPolicy { - /** - * @member {boolean} [enabled] Indicates whether DeleteRetentionPolicy is - * enabled for the Blob service. - */ - enabled?: boolean; - /** - * @member {number} [days] Indicates the number of days that the deleted blob - * should be retained. The minimum specified value can be 1 and the maximum - * value can be 365. - */ - days?: number; -} - -/** - * @interface - * An interface representing BlobServiceProperties. - * The properties of a storage account’s Blob service. - * - * @extends Resource - */ -export interface BlobServiceProperties extends Resource { - /** - * @member {CorsRules} [cors] Specifies CORS rules for the Blob service. You - * can include up to five CorsRule elements in the request. If no CorsRule - * elements are included in the request body, all CORS rules will be deleted, - * and CORS will be disabled for the Blob service. - */ - cors?: CorsRules; - /** - * @member {string} [defaultServiceVersion] DefaultServiceVersion indicates - * the default version to use for requests to the Blob service if an incoming - * request’s version is not specified. Possible values include version - * 2008-10-27 and all more recent versions. - */ - defaultServiceVersion?: string; - /** - * @member {DeleteRetentionPolicy} [deleteRetentionPolicy] The blob service - * properties for soft delete. - */ - deleteRetentionPolicy?: DeleteRetentionPolicy; -} - /** * @interface * An interface representing StorageAccountManagementPolicies. @@ -2636,44 +2536,6 @@ export type UsagesListByLocationResponse = UsageListResult & { }; }; -/** - * Contains response data for the setServiceProperties operation. - */ -export type BlobServicesSetServicePropertiesResponse = BlobServiceProperties & { - /** - * 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: BlobServiceProperties; - }; -}; - -/** - * Contains response data for the getServiceProperties operation. - */ -export type BlobServicesGetServicePropertiesResponse = BlobServiceProperties & { - /** - * 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: BlobServiceProperties; - }; -}; - /** * Contains response data for the list operation. */ diff --git a/packages/@azure/arm-storage/lib/models/managementPoliciesMappers.ts b/packages/@azure/arm-storage/lib/models/managementPoliciesMappers.ts index 87035d9f663a..45681a471395 100644 --- a/packages/@azure/arm-storage/lib/models/managementPoliciesMappers.ts +++ b/packages/@azure/arm-storage/lib/models/managementPoliciesMappers.ts @@ -24,10 +24,6 @@ export { TagProperty, ImmutabilityPolicy, ListContainerItem, - BlobServiceProperties, - CorsRules, - CorsRule, - DeleteRetentionPolicy, StorageAccount, Sku, SKUCapability, diff --git a/packages/@azure/arm-storage/lib/models/mappers.ts b/packages/@azure/arm-storage/lib/models/mappers.ts index 08bb747f0fb1..d17794b6f334 100644 --- a/packages/@azure/arm-storage/lib/models/mappers.ts +++ b/packages/@azure/arm-storage/lib/models/mappers.ts @@ -2020,150 +2020,6 @@ export const ListContainerItems: msRest.CompositeMapper = { } }; -export const CorsRule: msRest.CompositeMapper = { - serializedName: "CorsRule", - type: { - name: "Composite", - className: "CorsRule", - modelProperties: { - allowedOrigins: { - required: true, - serializedName: "allowedOrigins", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - allowedMethods: { - required: true, - serializedName: "allowedMethods", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - maxAgeInSeconds: { - required: true, - serializedName: "maxAgeInSeconds", - type: { - name: "Number" - } - }, - exposedHeaders: { - required: true, - serializedName: "exposedHeaders", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - allowedHeaders: { - required: true, - serializedName: "allowedHeaders", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const CorsRules: msRest.CompositeMapper = { - serializedName: "CorsRules", - type: { - name: "Composite", - className: "CorsRules", - modelProperties: { - corsRules: { - serializedName: "corsRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CorsRule" - } - } - } - } - } - } -}; - -export const DeleteRetentionPolicy: msRest.CompositeMapper = { - serializedName: "DeleteRetentionPolicy", - type: { - name: "Composite", - className: "DeleteRetentionPolicy", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - }, - days: { - serializedName: "days", - constraints: { - InclusiveMaximum: 365, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - } - } - } -}; - -export const BlobServiceProperties: msRest.CompositeMapper = { - serializedName: "BlobServiceProperties", - type: { - name: "Composite", - className: "BlobServiceProperties", - modelProperties: { - ...Resource.type.modelProperties, - cors: { - serializedName: "properties.cors", - type: { - name: "Composite", - className: "CorsRules" - } - }, - defaultServiceVersion: { - serializedName: "properties.defaultServiceVersion", - type: { - name: "String" - } - }, - deleteRetentionPolicy: { - serializedName: "properties.deleteRetentionPolicy", - type: { - name: "Composite", - className: "DeleteRetentionPolicy" - } - } - } - } -}; - export const StorageAccountManagementPolicies: msRest.CompositeMapper = { serializedName: "StorageAccountManagementPolicies", type: { diff --git a/packages/@azure/arm-storage/lib/models/parameters.ts b/packages/@azure/arm-storage/lib/models/parameters.ts index dfd46ced604f..38399d0c043a 100644 --- a/packages/@azure/arm-storage/lib/models/parameters.ts +++ b/packages/@azure/arm-storage/lib/models/parameters.ts @@ -64,18 +64,6 @@ export const apiVersion1: msRest.OperationQueryParameter = { } } }; -export const blobServicesName: msRest.OperationURLParameter = { - parameterPath: "blobServicesName", - mapper: { - required: true, - isConstant: true, - serializedName: "BlobServicesName", - defaultValue: 'default', - type: { - name: "String" - } - } -}; export const containerName: msRest.OperationURLParameter = { parameterPath: "containerName", mapper: { diff --git a/packages/@azure/arm-storage/lib/models/storageAccountsMappers.ts b/packages/@azure/arm-storage/lib/models/storageAccountsMappers.ts index 4b1d9870be49..0bbda624db1a 100644 --- a/packages/@azure/arm-storage/lib/models/storageAccountsMappers.ts +++ b/packages/@azure/arm-storage/lib/models/storageAccountsMappers.ts @@ -48,10 +48,6 @@ export { TagProperty, ImmutabilityPolicy, ListContainerItem, - BlobServiceProperties, - CorsRules, - CorsRule, - DeleteRetentionPolicy, StorageAccountManagementPolicies } from "../models/mappers"; diff --git a/packages/@azure/arm-storage/lib/operations/index.ts b/packages/@azure/arm-storage/lib/operations/index.ts index f2550d352ee2..63564cfbb271 100644 --- a/packages/@azure/arm-storage/lib/operations/index.ts +++ b/packages/@azure/arm-storage/lib/operations/index.ts @@ -12,6 +12,5 @@ export * from "./operations"; export * from "./skus"; export * from "./storageAccounts"; export * from "./usages"; -export * from "./blobServices"; export * from "./blobContainers"; export * from "./managementPolicies"; diff --git a/packages/@azure/arm-storage/lib/storageManagementClient.ts b/packages/@azure/arm-storage/lib/storageManagementClient.ts index 5b16c605cc07..3587b701d226 100644 --- a/packages/@azure/arm-storage/lib/storageManagementClient.ts +++ b/packages/@azure/arm-storage/lib/storageManagementClient.ts @@ -21,7 +21,6 @@ class StorageManagementClient extends StorageManagementClientContext { skus: operations.Skus; storageAccounts: operations.StorageAccounts; usages: operations.Usages; - blobServices: operations.BlobServices; blobContainers: operations.BlobContainers; managementPolicies: operations.ManagementPolicies; @@ -37,7 +36,6 @@ class StorageManagementClient extends StorageManagementClientContext { this.skus = new operations.Skus(this); this.storageAccounts = new operations.StorageAccounts(this); this.usages = new operations.Usages(this); - this.blobServices = new operations.BlobServices(this); this.blobContainers = new operations.BlobContainers(this); this.managementPolicies = new operations.ManagementPolicies(this); } diff --git a/packages/@azure/arm-storage/lib/storageManagementClientContext.ts b/packages/@azure/arm-storage/lib/storageManagementClientContext.ts index 1e77a264d69d..e4a8897e0fbd 100644 --- a/packages/@azure/arm-storage/lib/storageManagementClientContext.ts +++ b/packages/@azure/arm-storage/lib/storageManagementClientContext.ts @@ -16,9 +16,15 @@ const packageName = "@azure/arm-storage"; const packageVersion = "1.0.0-preview"; export class StorageManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + /** * Initializes a new instance of the StorageManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. diff --git a/packages/@azure/arm-storage/package.json b/packages/@azure/arm-storage/package.json index 164e5950417a..46fd1513ef84 100644 --- a/packages/@azure/arm-storage/package.json +++ b/packages/@azure/arm-storage/package.json @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-storage.js.map'\" -o ./dist/arm-storage.min.js ./dist/arm-storage.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/graph/.npmignore b/packages/@azure/graph/.npmignore new file mode 100644 index 000000000000..3b46bc6202d8 --- /dev/null +++ b/packages/@azure/graph/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/graph/README.md b/packages/@azure/graph/README.md index 960e011a3112..3fceeaa2479d 100644 --- a/packages/@azure/graph/README.md +++ b/packages/@azure/graph/README.md @@ -62,7 +62,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log("An error occurred:"); + console.log('An error occurred:'); console.error(err); }); }); diff --git a/packages/@azure/graph/lib/graphRbacManagementClientContext.ts b/packages/@azure/graph/lib/graphRbacManagementClientContext.ts index 1426fb2421ed..2e08d61f79c7 100644 --- a/packages/@azure/graph/lib/graphRbacManagementClientContext.ts +++ b/packages/@azure/graph/lib/graphRbacManagementClientContext.ts @@ -16,10 +16,17 @@ const packageName = "@azure/graph"; const packageVersion = "1.0.0"; export class GraphRbacManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; - apiVersion?: string; + + apiVersion: string; + tenantID: string; + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + /** * Initializes a new instance of the GraphRbacManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. diff --git a/packages/@azure/graph/lib/models/deletedApplicationsMappers.ts b/packages/@azure/graph/lib/models/deletedApplicationsMappers.ts index 8f257066e9f6..9c1e66573d1a 100644 --- a/packages/@azure/graph/lib/models/deletedApplicationsMappers.ts +++ b/packages/@azure/graph/lib/models/deletedApplicationsMappers.ts @@ -13,8 +13,6 @@ export { Application, DirectoryObject, AppRole, - RequiredResourceAccess, - ResourceAccess, GraphError, ApplicationListResult, ADGroup, diff --git a/packages/@azure/graph/lib/models/groupsMappers.ts b/packages/@azure/graph/lib/models/groupsMappers.ts index 3d00ed56ed4c..41148eb95f9a 100644 --- a/packages/@azure/graph/lib/models/groupsMappers.ts +++ b/packages/@azure/graph/lib/models/groupsMappers.ts @@ -24,8 +24,6 @@ export { AddOwnerParameters, Application, AppRole, - RequiredResourceAccess, - ResourceAccess, ServicePrincipal, User, SignInName diff --git a/packages/@azure/graph/lib/models/index.ts b/packages/@azure/graph/lib/models/index.ts index 0a272387705a..4dac26b305a9 100644 --- a/packages/@azure/graph/lib/models/index.ts +++ b/packages/@azure/graph/lib/models/index.ts @@ -436,14 +436,6 @@ export interface Application { * grant flow for OAuth2 */ oauth2AllowImplicitFlow?: boolean; - /** - * @member {RequiredResourceAccess[]} [requiredResourceAccess] Specifies - * resources that this application requires access to and the set of OAuth - * permission scopes and application roles that it needs under each of those - * resources. This pre-configuration of required resource access drives the - * consent experience. - */ - requiredResourceAccess?: RequiredResourceAccess[]; } /** diff --git a/packages/@azure/graph/lib/models/mappers.ts b/packages/@azure/graph/lib/models/mappers.ts index d3c85f8f8f40..1e045553ec1f 100644 --- a/packages/@azure/graph/lib/models/mappers.ts +++ b/packages/@azure/graph/lib/models/mappers.ts @@ -625,23 +625,6 @@ export const Application: msRest.CompositeMapper = { type: { name: "Boolean" } - }, - requiredResourceAccess: { - serializedName: "requiredResourceAccess", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RequiredResourceAccess", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } } }, additionalProperties: DirectoryObject.type.additionalProperties diff --git a/packages/@azure/graph/lib/models/objectsMappers.ts b/packages/@azure/graph/lib/models/objectsMappers.ts index 48ec347b8ac6..31053b267d56 100644 --- a/packages/@azure/graph/lib/models/objectsMappers.ts +++ b/packages/@azure/graph/lib/models/objectsMappers.ts @@ -16,8 +16,6 @@ export { CloudError, Application, AppRole, - RequiredResourceAccess, - ResourceAccess, ADGroup, ServicePrincipal, User, diff --git a/packages/@azure/graph/lib/models/servicePrincipalsMappers.ts b/packages/@azure/graph/lib/models/servicePrincipalsMappers.ts index 8d81554f24cd..25e5110eed1b 100644 --- a/packages/@azure/graph/lib/models/servicePrincipalsMappers.ts +++ b/packages/@azure/graph/lib/models/servicePrincipalsMappers.ts @@ -25,8 +25,6 @@ export { PasswordCredentialListResult, PasswordCredentialsUpdateParameters, Application, - RequiredResourceAccess, - ResourceAccess, ADGroup, User, SignInName diff --git a/packages/@azure/graph/lib/models/signedInUserMappers.ts b/packages/@azure/graph/lib/models/signedInUserMappers.ts index 8b06f0505013..46091acfb367 100644 --- a/packages/@azure/graph/lib/models/signedInUserMappers.ts +++ b/packages/@azure/graph/lib/models/signedInUserMappers.ts @@ -17,8 +17,6 @@ export { DirectoryObjectListResult, Application, AppRole, - RequiredResourceAccess, - ResourceAccess, ADGroup, ServicePrincipal } from "../models/mappers"; diff --git a/packages/@azure/graph/lib/models/usersMappers.ts b/packages/@azure/graph/lib/models/usersMappers.ts index b5a83a95b4c9..e5dc4c474429 100644 --- a/packages/@azure/graph/lib/models/usersMappers.ts +++ b/packages/@azure/graph/lib/models/usersMappers.ts @@ -23,8 +23,6 @@ export { UserGetMemberGroupsResult, Application, AppRole, - RequiredResourceAccess, - ResourceAccess, ADGroup, ServicePrincipal } from "../models/mappers"; diff --git a/packages/@azure/graph/package.json b/packages/@azure/graph/package.json index 301cc12f396a..87a6895793ff 100644 --- a/packages/@azure/graph/package.json +++ b/packages/@azure/graph/package.json @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/graph.js.map'\" -o ./dist/graph.min.js ./dist/graph.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/loganalytics/.npmignore b/packages/@azure/loganalytics/.npmignore index a07a455ac10c..3b46bc6202d8 100644 --- a/packages/@azure/loganalytics/.npmignore +++ b/packages/@azure/loganalytics/.npmignore @@ -1,35 +1,35 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/loganalytics/LICENSE.txt b/packages/@azure/loganalytics/LICENSE.txt index 5431ba98b936..a70e8cf66038 100644 --- a/packages/@azure/loganalytics/LICENSE.txt +++ b/packages/@azure/loganalytics/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/tsconfig.json b/tsconfig.json index fe9da71502c1..b67725f7e3c4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,59 +1,5 @@ { - "compilerOptions": { - /* Basic Options */ - "target": "ES2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - // "lib": [], /* Specify library files to be included in the compilation. */ - // "allowJs": true, /* Allow javascript files to be compiled. */ - // "checkJs": true, /* Report errors in .js files. */ - // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - // "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ - // "outFile": "./", /* Concatenate and emit output to single file. */ - // "outDir": "./", /* Redirect output structure to the directory. */ - // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ - // "composite": true, /* Enable project compilation */ - // "removeComments": true, /* Do not emit comments to output. */ - // "noEmit": true, /* Do not emit outputs. */ - "importHelpers": true, /* Import emit helpers from 'tslib'. */ - // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ - // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ - - /* Strict Type-Checking Options */ - "strict": true, /* Enable all strict type-checking options. */ - "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ - "strictNullChecks": true, /* Enable strict null checks. */ - "strictFunctionTypes": true, /* Enable strict checking of function types. */ - "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ - "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ - "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ - - /* Additional Checks */ - "noUnusedLocals": true, /* Report errors on unused locals. */ - "noUnusedParameters": true, /* Report errors on unused parameters. */ - "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ - "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - - /* Module Resolution Options */ - // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ - // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ - // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ - // "typeRoots": [], /* List of folders to include type definitions from. */ - // "types": [], /* Type declaration files to be included in compilation. */ - // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ - "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ - - /* Source Map Options */ - // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ - // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ - - /* Experimental Options */ - // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ - // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ - } -} \ No newline at end of file + "compilerOptions": { + "lib": [ "es2015" ] + } +} From 7296812c3f4be6e2dfee43d1dc753a49fee80d7c Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 2 Nov 2018 18:42:24 +0000 Subject: [PATCH 09/21] Regenerated "@azure/arm-datamigration/lib/models" SDK. From c83d4c9db3406cf31dd70c391ffa7f1226523cfc Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 2 Nov 2018 18:43:15 +0000 Subject: [PATCH 10/21] Reset to master --- .scripts/commandLine.ts | 26 +- .scripts/common.ts | 12 +- .scripts/git.ts | 32 +- .scripts/github.ts | 25 +- .scripts/gulp.ts | 48 +- .scripts/logger.ts | 26 +- .scripts/packages.ts | 94 +- .scripts/readme.ts | 51 +- gulpfile.ts | 140 +- package.json | 2 + packages/@azure/arm-cosmosdb/LICENSE.txt | 42 +- packages/@azure/arm-cosmosdb/README.md | 162 +- .../lib/cosmosDBManagementClientContext.ts | 9 +- .../@azure/arm-cosmosdb/lib/models/index.ts | 5 + .../@azure/arm-cosmosdb/lib/models/mappers.ts | 6 + packages/@azure/arm-cosmosdb/package.json | 15 +- .../lib/models/filesMappers.ts | 5 - .../arm-datamigration/lib/models/index.ts | 128 +- .../arm-datamigration/lib/models/mappers.ts | 99 +- .../lib/models/projectsMappers.ts | 5 - .../lib/models/servicesMappers.ts | 5 - .../lib/models/tasksMappers.ts | 5 - packages/@azure/arm-devtestlabs/LICENSE.txt | 42 +- packages/@azure/arm-devtestlabs/README.md | 154 +- .../arm-devtestlabs/lib/devTestLabsClient.ts | 4 + .../lib/devTestLabsClientContext.ts | 11 +- .../lib/models/armTemplatesMappers.ts | 49 +- .../lib/models/artifactSourcesMappers.ts | 57 +- .../lib/models/artifactsMappers.ts | 49 +- .../lib/models/costsMappers.ts | 47 +- .../lib/models/customImagesMappers.ts | 57 +- .../lib/models/disksMappers.ts | 57 +- .../lib/models/environmentsMappers.ts | 57 +- .../lib/models/formulasMappers.ts | 63 +- .../lib/models/galleryImagesMappers.ts | 49 +- .../lib/models/globalSchedulesMappers.ts | 57 +- .../arm-devtestlabs/lib/models/index.ts | 6602 +++++++++++------ .../arm-devtestlabs/lib/models/labsMappers.ts | 64 +- .../arm-devtestlabs/lib/models/mappers.ts | 2724 +++++-- .../lib/models/notificationChannelsMappers.ts | 57 +- .../arm-devtestlabs/lib/models/parameters.ts | 12 +- .../lib/models/policiesMappers.ts | 57 +- .../lib/models/schedulesMappers.ts | 57 +- .../lib/models/secretsMappers.ts | 57 +- .../lib/models/serviceRunnersMappers.ts | 49 +- .../lib/models/usersMappers.ts | 57 +- .../models/virtualMachineSchedulesMappers.ts | 57 +- .../lib/models/virtualMachinesMappers.ts | 45 +- .../lib/models/virtualNetworksMappers.ts | 57 +- .../lib/operations/armTemplates.ts | 16 +- .../lib/operations/artifactSources.ts | 16 +- .../lib/operations/artifacts.ts | 16 +- .../lib/operations/customImages.ts | 90 +- .../arm-devtestlabs/lib/operations/disks.ts | 95 +- .../lib/operations/environments.ts | 95 +- .../lib/operations/formulas.ts | 89 +- .../lib/operations/galleryImages.ts | 16 +- .../lib/operations/globalSchedules.ts | 32 +- .../arm-devtestlabs/lib/operations/index.ts | 2 + .../arm-devtestlabs/lib/operations/labs.ts | 115 +- .../lib/operations/notificationChannels.ts | 16 +- .../lib/operations/policies.ts | 16 +- .../lib/operations/schedules.ts | 32 +- .../arm-devtestlabs/lib/operations/secrets.ts | 146 +- .../lib/operations/serviceRunners.ts | 16 +- .../arm-devtestlabs/lib/operations/users.ts | 91 +- .../lib/operations/virtualMachineSchedules.ts | 16 +- .../lib/operations/virtualMachines.ts | 383 +- .../lib/operations/virtualNetworks.ts | 17 +- packages/@azure/arm-devtestlabs/package.json | 15 +- packages/@azure/arm-hdinsight/LICENSE.txt | 42 +- packages/@azure/arm-hdinsight/README.md | 162 +- .../lib/hDInsightManagementClientContext.ts | 9 +- packages/@azure/arm-hdinsight/package.json | 15 +- .../lib/models/applicationGatewaysMappers.ts | 6 + .../applicationSecurityGroupsMappers.ts | 6 + .../availableEndpointServicesMappers.ts | 6 + .../models/azureFirewallFqdnTagsMappers.ts | 6 + .../lib/models/azureFirewallsMappers.ts | 6 + .../models/bgpServiceCommunitiesMappers.ts | 6 + .../lib/models/connectionMonitorsMappers.ts | 6 + .../lib/models/ddosProtectionPlansMappers.ts | 6 + .../lib/models/defaultSecurityRulesMappers.ts | 6 + ...xpressRouteCircuitAuthorizationsMappers.ts | 6 + .../expressRouteCircuitConnectionsMappers.ts | 6 + .../expressRouteCircuitPeeringsMappers.ts | 6 + .../lib/models/expressRouteCircuitsMappers.ts | 6 + .../models/expressRouteConnectionsMappers.ts | 6 + ...ressRouteCrossConnectionPeeringsMappers.ts | 6 + .../expressRouteCrossConnectionsMappers.ts | 6 + .../lib/models/expressRouteGatewaysMappers.ts | 6 + .../expressRouteServiceProvidersMappers.ts | 6 + .../hubVirtualNetworkConnectionsMappers.ts | 6 + .../lib/models/inboundNatRulesMappers.ts | 6 + .../@azure/arm-network/lib/models/index.ts | 842 ++- .../lib/models/interfaceEndpointsMappers.ts | 6 + .../loadBalancerBackendAddressPoolsMappers.ts | 6 + ...BalancerFrontendIPConfigurationsMappers.ts | 6 + .../loadBalancerLoadBalancingRulesMappers.ts | 6 + .../loadBalancerNetworkInterfacesMappers.ts | 6 + .../lib/models/loadBalancerProbesMappers.ts | 6 + .../lib/models/loadBalancersMappers.ts | 6 + .../lib/models/localNetworkGatewaysMappers.ts | 6 + .../@azure/arm-network/lib/models/mappers.ts | 514 +- ...networkInterfaceIPConfigurationsMappers.ts | 6 + .../networkInterfaceLoadBalancersMappers.ts | 6 + ...etworkInterfaceTapConfigurationsMappers.ts | 6 + .../lib/models/networkInterfacesMappers.ts | 6 + .../lib/models/networkProfilesMappers.ts | 6 + .../models/networkSecurityGroupsMappers.ts | 6 + .../lib/models/networkWatchersMappers.ts | 8 +- .../lib/models/p2sVpnGatewaysMappers.ts | 6 + .../p2sVpnServerConfigurationsMappers.ts | 6 + .../arm-network/lib/models/parameters.ts | 82 +- .../lib/models/publicIPAddressesMappers.ts | 6 + .../lib/models/publicIPPrefixesMappers.ts | 6 + .../lib/models/routeFilterRulesMappers.ts | 6 + .../lib/models/routeFiltersMappers.ts | 6 + .../lib/models/routeTablesMappers.ts | 6 + .../arm-network/lib/models/routesMappers.ts | 6 + .../lib/models/securityRulesMappers.ts | 6 + .../models/serviceEndpointPoliciesMappers.ts | 6 + ...serviceEndpointPolicyDefinitionsMappers.ts | 6 + .../arm-network/lib/models/subnetsMappers.ts | 6 + .../lib/models/virtualHubsMappers.ts | 6 + ...virtualNetworkGatewayConnectionsMappers.ts | 6 + .../models/virtualNetworkGatewaysMappers.ts | 6 + .../models/virtualNetworkPeeringsMappers.ts | 6 + .../lib/models/virtualNetworkTapsMappers.ts | 6 + .../lib/models/virtualNetworksMappers.ts | 6 + .../lib/models/virtualWansMappers.ts | 6 + .../lib/models/vpnConnectionsMappers.ts | 6 + .../lib/models/vpnGatewaysMappers.ts | 6 + .../arm-network/lib/models/vpnSitesMappers.ts | 6 + .../lib/networkManagementClient.ts | 8 + .../lib/networkManagementClientContext.ts | 6 - .../arm-network/lib/operations/index.ts | 4 + .../lib/operations/virtualNetworks.ts | 12 +- packages/@azure/arm-network/package.json | 15 +- packages/@azure/arm-sql/README.md | 166 +- ...databaseVulnerabilityAssessmentsMappers.ts | 1 + packages/@azure/arm-sql/lib/models/index.ts | 220 +- ...DatabaseVulnerabilityAssessmentsMappers.ts | 1 + packages/@azure/arm-sql/lib/models/mappers.ts | 55 +- .../databaseVulnerabilityAssessments.ts | 117 + ...managedDatabaseVulnerabilityAssessments.ts | 114 + .../arm-sql/lib/sqlManagementClientContext.ts | 6 - packages/@azure/arm-storage/README.md | 2 +- .../lib/models/blobContainersMappers.ts | 4 + .../@azure/arm-storage/lib/models/index.ts | 138 + .../lib/models/managementPoliciesMappers.ts | 4 + .../@azure/arm-storage/lib/models/mappers.ts | 144 + .../arm-storage/lib/models/parameters.ts | 12 + .../lib/models/storageAccountsMappers.ts | 4 + .../arm-storage/lib/operations/index.ts | 1 + .../lib/storageManagementClient.ts | 2 + .../lib/storageManagementClientContext.ts | 6 - packages/@azure/arm-storage/package.json | 15 +- packages/@azure/graph/README.md | 2 +- .../lib/graphRbacManagementClientContext.ts | 9 +- .../lib/models/deletedApplicationsMappers.ts | 2 + .../@azure/graph/lib/models/groupsMappers.ts | 2 + packages/@azure/graph/lib/models/index.ts | 8 + packages/@azure/graph/lib/models/mappers.ts | 17 + .../@azure/graph/lib/models/objectsMappers.ts | 2 + .../lib/models/servicePrincipalsMappers.ts | 2 + .../graph/lib/models/signedInUserMappers.ts | 2 + .../@azure/graph/lib/models/usersMappers.ts | 2 + packages/@azure/graph/package.json | 15 +- packages/@azure/loganalytics/.npmignore | 70 +- packages/@azure/loganalytics/LICENSE.txt | 42 +- tsconfig.json | 62 +- 172 files changed, 11461 insertions(+), 4763 deletions(-) diff --git a/.scripts/commandLine.ts b/.scripts/commandLine.ts index bc7f84aa2379..867e5639adbe 100644 --- a/.scripts/commandLine.ts +++ b/.scripts/commandLine.ts @@ -4,11 +4,11 @@ * license information. */ -import * as minimist from "minimist"; +import minimist from "minimist"; import * as path from "path"; -import { arrayContains, findAzureRestApiSpecsRepositoryPathSync } from "./common"; -import { Options } from "yargs"; import * as yargs from "yargs"; +import { Options } from "yargs"; +import { arrayContains, findAzureRestApiSpecsRepositoryPathSync } from "./common"; export type YargsMapping = { [key: string]: Options }; @@ -74,7 +74,7 @@ export module Argv { loggingLevel: yargs.options(Argv.Options.Common).argv["logging-level"], } - const combine = (...configs: YargsMapping[]): YargsMapping => { + export function combine(...configs: YargsMapping[]): YargsMapping { let result = Options.Common; for (const config of configs) { result = { ...result, ...config }; @@ -82,9 +82,9 @@ export module Argv { return result; } - export const construct = (...configs: YargsMapping[]) => { - const mergedOption = combine(...configs); - const args = yargs.options(mergedOption) + export function construct(...configs: YargsMapping[]): yargs.Argv { + const mergedOption: YargsMapping = combine(...configs); + const args: yargs.Argv = yargs.options(mergedOption) .strict() .help("?") .showHelpOnFail(true, "Invalid usage. Run with -? to see help.") @@ -97,7 +97,7 @@ export module Argv { return args; } - export const print = () => { + export function print(): String { return process.argv.slice(2).join(", "); } } @@ -117,7 +117,7 @@ export interface CommandLineOptions extends minimist.ParsedArgs { getSdkType(): SdkType; } -export const commandLineConfiguration = { +export const commandLineConfiguration: minimist.Opts = { string: ["azure-sdk-for-js-repo-root", "azure-rest-api-specs-root", "logging-level", "package", "type"], boolean: ["debugger", "use", "skip-sdk", "skip-spec", "verbose", "whatif"], alias: { @@ -143,8 +143,8 @@ export function getCommandLineOptions(): CommandLineOptions { } function createCommandLineParameters(): CommandLineOptions { - const args = minimist(process.argv.slice(2), commandLineConfiguration) as CommandLineOptions; - args.getSdkType = getSdkType; + const args: CommandLineOptions = minimist(process.argv.slice(2), commandLineConfiguration) as CommandLineOptions; + args.getSdkType = () => parseSdkType(args.type); return args; } @@ -164,7 +164,3 @@ export function parseSdkType(str: string): SdkType { return SdkType.Unknown; } } - -function getSdkType(): SdkType { - return parseSdkType(this.type); -} diff --git a/.scripts/common.ts b/.scripts/common.ts index 4c84b99d368c..6503abc6a537 100644 --- a/.scripts/common.ts +++ b/.scripts/common.ts @@ -4,10 +4,10 @@ * license information. */ +import { execSync } from "child_process"; import * as fssync from "fs"; -import * as path from "path"; import { promises as fs } from "fs"; -import { execSync } from "child_process"; +import * as path from "path"; export function arrayContains(array: T[], el: T): boolean { return array.indexOf(el) != -1 @@ -23,7 +23,7 @@ export async function isDirectory(directoryPath: string): Promise { } export async function pathExists(path: string): Promise { - return new Promise((resolve, reject) => { + return new Promise((resolve) => { fssync.exists(path, exists => { resolve(exists); }); @@ -31,11 +31,11 @@ export async function pathExists(path: string): Promise { } export function startsWith(value: string, prefix: string): boolean { - return value && prefix && value.indexOf(prefix) === 0; + return !!(value && prefix && value.indexOf(prefix) === 0); } export function endsWith(value: string, suffix: string): boolean { - return value && suffix && value.length >= suffix.length && value.lastIndexOf(suffix) === value.length - suffix.length; + return !!(value && suffix && value.length >= suffix.length && value.lastIndexOf(suffix) === value.length - suffix.length); } export function contains(values: string[], searchString: string): boolean { @@ -69,7 +69,7 @@ export async function getChildDirectories(parent: string): Promise { return childDirectories; } -export function findAzureRestApiSpecsRepositoryPathSync(): string { +export function findAzureRestApiSpecsRepositoryPathSync(): string | undefined { const repositoryName = "azure-rest-api-specs"; let currentDirectory = __dirname; const pathData = path.parse(currentDirectory); diff --git a/.scripts/git.ts b/.scripts/git.ts index 977878c376b5..d06be1615c31 100644 --- a/.scripts/git.ts +++ b/.scripts/git.ts @@ -4,7 +4,7 @@ * license information. */ -import { Repository, Signature, Merge, Oid, Reference, Cred, StatusFile, Reset, Index } from "nodegit"; +import { Cred, Index, Merge, Oid, Reference, Repository, Reset, Signature, StatusFile } from "nodegit"; import { Logger } from "./logger"; export type ValidateFunction = (statuses: StatusFile[]) => boolean; @@ -66,11 +66,10 @@ export class Branch { } const _logger = Logger.get(); -const _lockMap = {} +const _lockMap: { [key: string]: boolean } = {} -function isLocked(repositoryPath: string) { - const isLocked = _lockMap[repositoryPath]; - return isLocked || false; +function isLocked(repositoryPath: string): boolean { + return !!_lockMap[repositoryPath]; } function lock(repositoryPath: string) { @@ -78,13 +77,13 @@ function lock(repositoryPath: string) { } function unlock(repositoryPath: string) { - _lockMap[repositoryPath] = true; + _lockMap[repositoryPath] = false; } async function waitUntilUnlocked(repositoryPath: string): Promise { _logger.logTrace("Waiting for the repository to be unlocked"); - return new Promise((resolve, reject) => { + return new Promise((resolve) => { const wait = () => { setTimeout(() => { _logger.logTrace(`Repository is ${isLocked(repositoryPath) ? "locked" : "unlocked"}`); @@ -155,7 +154,7 @@ export async function mergeMasterIntoBranch(repository: Repository, toBranch: Br return mergeBranch(repository, toBranch, Branch.RemoteMaster); } -export async function pullBranch(repository: Repository, localBranch: Branch): Promise { +export async function pullBranch(repository: Repository, localBranch: Branch): Promise { _logger.logTrace(`Pulling "${localBranch.fullName()}" branch in ${repository.path()} repository`); await repository.fetchAll(); @@ -170,10 +169,9 @@ export async function pullBranch(repository: Repository, localBranch: Branch): P } _logger.logTrace(`Merged "${remoteBranch.fullName()}" to "${localBranch.fullName()}" successfully without any conflicts`); - return undefined; } -export async function pullMaster(repository: Repository): Promise { +export async function pullMaster(repository: Repository): Promise { return pullBranch(repository, Branch.LocalMaster); } @@ -213,13 +211,13 @@ export async function checkoutRemoteBranch(repository: Repository, remoteBranch: return branchRef; } -export async function rebaseBranch(repository: Repository, localBranch: Branch) { +export async function rebaseBranch(repository: Repository, localBranch: Branch): Promise { return repository.rebaseBranches( localBranch.name, Branch.RemoteMaster.shorthand(), - undefined, + "", repository.defaultSignature(), - _ => {}); + (_: any) => {}); } function getCurrentDateSuffix(): string { @@ -259,7 +257,7 @@ export async function commitChanges(repository: Repository, commitMessage: strin const index = await repository.refreshIndex(); if (typeof validateEach === "string") { const folderName = validateEach; - validateEach = (path, pattern) => { + validateEach = (path) => { return path.startsWith(folderName) ? 0 : 1; } } @@ -283,7 +281,7 @@ export async function pushBranch(repository: Repository, localBranch: Branch, fo return new Promise((resolve, reject) => { remote.push([refSpec], { callbacks: { - credentials: function (url, userName) { + credentials: () => { return Cred.userpassPlaintextNew(getToken(), "x-oauth-basic"); } } @@ -296,13 +294,13 @@ export async function pushBranch(repository: Repository, localBranch: Branch, fo }); } -export async function commitAndPush(repository: Repository, localBranch: Branch, commitMessage: string, validate?: ValidateFunction, validateEach?: string | ValidateEachFunction, forcePush?: boolean) { +export async function commitAndPush(repository: Repository, localBranch: Branch, commitMessage: string, validate?: ValidateFunction, validateEach?: string | ValidateEachFunction, forcePush?: boolean): Promise { await commitChanges(repository, commitMessage, validate, validateEach); await pushBranch(repository, localBranch, forcePush); } export function getToken(): string { - const token = process.env.SDK_GEN_GITHUB_TOKEN; + const token: string = process.env.SDK_GEN_GITHUB_TOKEN || ""; _validatePersonalAccessToken(token); return token; diff --git a/.scripts/github.ts b/.scripts/github.ts index 6db4f2e2af51..5ecbfd017835 100644 --- a/.scripts/github.ts +++ b/.scripts/github.ts @@ -4,11 +4,10 @@ * license information. */ -import * as Octokit from '@octokit/rest' -import { PullRequestsCreateParams, Response, PullRequestsCreateReviewRequestParams, PullRequestsCreateReviewRequestResponse, PullRequestsGetParams, PullRequestsGetAllParams, PullRequestsGetAllResponse, PullRequestsGetAllResponseItem, PullRequestsUpdateParams } from '@octokit/rest'; -import { getToken, createNewUniqueBranch, commitChanges, pushBranch,ValidateFunction, ValidateEachFunction, Branch } from './git'; +import Octokit, { PullRequestsCreateParams, PullRequestsCreateReviewRequestParams, PullRequestsCreateReviewRequestResponse, PullRequestsGetAllParams, PullRequestsGetAllResponse, PullRequestsGetAllResponseItem, PullRequestsGetParams, PullRequestsUpdateParams, Response } from '@octokit/rest'; +import { Reference, Repository } from 'nodegit'; +import { Branch, commitChanges, createNewUniqueBranch, getToken, pushBranch, ValidateEachFunction, ValidateFunction } from './git'; import { Logger } from './logger'; -import { Repository, Reference } from 'nodegit'; const _repositoryOwner = "Azure"; const _logger = Logger.get(); @@ -60,7 +59,7 @@ export async function listPullRequests(repositoryName: string, state?: "open" | }); } -export async function findPullRequest(repositoryName: string, branchName: string, state?: "open" | "closed" | "all"): Promise { +export async function findPullRequest(repositoryName: string, branchName: string, state?: "open" | "closed" | "all"): Promise { const allPullRequests = await listPullRequests(repositoryName, state); return allPullRequests.data.find(el => el.head.ref === branchName); } @@ -113,14 +112,14 @@ export async function commitAndCreatePullRequest( return reviewResponse.data.html_url; } -export async function getDataFromPullRequest(pullRequestUrl: string): Promise<{ packageName: string, branchName: string, prId: number }> { - const octokit = getAuthenticatedClient(); - const params = parsePullRequestUrl(pullRequestUrl); - const pullRequest = await octokit.pullRequests.get(params); - const branchName = pullRequest.data.head.ref; - const files = await octokit.pullRequests.getFiles(params); - const path = getRootFolder(files.data.map(i => i.filename)); - const packageName = getPackageNameFromPath(path); +export async function getDataFromPullRequest(pullRequestUrl: string): Promise<{ packageName: string | undefined, branchName: string, prId: number }> { + const octokit: Octokit = getAuthenticatedClient(); + const params: Octokit.PullRequestsGetParams = parsePullRequestUrl(pullRequestUrl); + const pullRequest: Octokit.Response = await octokit.pullRequests.get(params); + const branchName: string = pullRequest.data.head.ref; + const files: Octokit.Response = await octokit.pullRequests.getFiles(params); + const path: string = getRootFolder(files.data.map(i => i.filename)); + const packageName: string | undefined = getPackageNameFromPath(path); _logger.logTrace(`Found "${packageName}" package name and ${branchName} branch name`) return { packageName: packageName, branchName: branchName, prId: params.number }; diff --git a/.scripts/gulp.ts b/.scripts/gulp.ts index 0515bda733c9..7f11e035e7f7 100644 --- a/.scripts/gulp.ts +++ b/.scripts/gulp.ts @@ -4,27 +4,28 @@ * license information. */ -import { SdkType } from "./commandLine"; -import { findSdkDirectory, saveContentToFile, findMissingSdks } from "./packages"; -import { copyExistingNodeJsReadme, updateTypeScriptReadmeFile, findReadmeTypeScriptMdFilePaths, getPackageNamesFromReadmeTypeScriptMdFileContents, getAbsolutePackageFolderPathFromReadmeFileContents, updateMainReadmeFile, getSinglePackageName } from "./readme"; -import * as fs from "fs"; +import { PullRequestsGetAllResponseItem } from "@octokit/rest"; +import { execSync } from "child_process"; +import fs from "fs"; import * as path from "path"; -import { Version } from "./version"; +import { SdkType } from "./commandLine"; import { contains, npmInstall } from "./common"; -import { execSync } from "child_process"; +import { Branch, BranchLocation, checkoutRemoteBranch, commitAndPush, getValidatedRepository, mergeMasterIntoBranch, refreshRepository, unlockGitRepository, ValidateFunction, waitAndLockGitRepository } from "./git"; +import { commitAndCreatePullRequest, findPullRequest, forcePrDiffRefresh, requestPullRequestReview } from "./github"; import { Logger } from "./logger"; -import { refreshRepository, getValidatedRepository, waitAndLockGitRepository, unlockGitRepository, ValidateFunction, ValidateEachFunction, checkoutBranch, pullBranch, mergeBranch, mergeMasterIntoBranch, commitAndPush, checkoutRemoteBranch, Branch, BranchLocation, rebaseBranch } from "./git"; -import { commitAndCreatePullRequest, findPullRequest, requestPullRequestReview, forcePrDiffRefresh } from "./github"; +import { findMissingSdks, findSdkDirectory, saveContentToFile } from "./packages"; +import { copyExistingNodeJsReadme, findReadmeTypeScriptMdFilePaths, getAbsolutePackageFolderPathFromReadmeFileContents, getPackageNamesFromReadmeTypeScriptMdFileContents, getSinglePackageName, updateMainReadmeFile, updateTypeScriptReadmeFile } from "./readme"; +import { Version } from "./version"; const _logger = Logger.get(); function containsPackageName(packageNames: string[], packageName: string): boolean { const result = contains(packageNames, packageName) || - contains(packageNames, `@azure/${packageName}`) || - contains(packageNames, `"${packageName}"`) || - contains(packageNames, `"@azure/${packageName}"`) || - contains(packageNames, `'${packageName}'`) || - contains(packageNames, `'@azure/${packageName}'`); + contains(packageNames, `@azure/${packageName}`) || + contains(packageNames, `"${packageName}"`) || + contains(packageNames, `"@azure/${packageName}"`) || + contains(packageNames, `'${packageName}'`) || + contains(packageNames, `'@azure/${packageName}'`); _logger.logTrace(`Comparing package name "${packageName}" to ${JSON.stringify(packageNames)} - Result: ${result}`); return result; } @@ -69,8 +70,13 @@ export async function generateSdk(azureRestAPISpecsRoot: string, azureSDKForJSRe _logger.log(commandOutput); _logger.log('Installing dependencies...'); - const packageFolderPath: string = getAbsolutePackageFolderPathFromReadmeFileContents(azureSDKForJSRepoRoot, typeScriptReadmeFileContents); - npmInstall(packageFolderPath); + const packageFolderPath: string | undefined = getAbsolutePackageFolderPathFromReadmeFileContents(azureSDKForJSRepoRoot, typeScriptReadmeFileContents); + if (!packageFolderPath) { + _logger.log('Error:'); + _logger.log(`Could not determine the generated package folder's path from ${typeScriptReadmeFilePath}.`); + } else { + npmInstall(packageFolderPath); + } } catch (err) { _logger.log('Error:'); _logger.log(`An error occurred while generating client for packages: "${packageNamesString}":\nErr: ${err}\nStderr: "${err.stderr}"`); @@ -85,7 +91,7 @@ export async function generateSdk(azureRestAPISpecsRoot: string, azureSDKForJSRe export async function generateTsReadme(packageName: string, sdkType: SdkType, azureRestApiSpecsRepositoryPath: string, specDirectory?: string, skipSpecificationGeneration?: boolean): Promise<{ pullRequestUrl?: string, typescriptReadmePath?: string }> { if (skipSpecificationGeneration) { _logger.log(`Skipping spec generation`); - return { }; + return {}; } const azureRestApiSpecRepository = await getValidatedRepository(azureRestApiSpecsRepositoryPath); @@ -147,7 +153,7 @@ export async function generateMissingSdk(azureSdkForJsRepoPath: string, packageN const pullRequestTitle = `Generate ${packageName} package`; const pullRequestDescription = - `Auto generated. Matching specification pull request - ${readmeGenerationResult.pullRequestUrl}\n\n\n + `Auto generated. Matching specification pull request - ${readmeGenerationResult.pullRequestUrl}\n\n\n \`\`\` ${_logger.getCapturedText()} \`\`\`` @@ -174,7 +180,7 @@ export async function generateAllMissingSdks(azureSdkForJsRepoPath: string, azur } } -export async function regenerate(branchName: string, packageName: string, azureSdkForJsRepoPath: string, azureRestAPISpecsPath: string, pullRequestId?: number, skipVersionBump?: boolean, requestReview?: boolean) { +export async function regenerate(branchName: string, packageName: string, azureSdkForJsRepoPath: string, azureRestAPISpecsPath: string, pullRequestId: number, skipVersionBump?: boolean, requestReview?: boolean) { const azureSdkForJsRepository = await getValidatedRepository(azureSdkForJsRepoPath); await refreshRepository(azureSdkForJsRepository); _logger.log(`Refreshed ${azureSdkForJsRepository.path()} repository successfully`); @@ -209,8 +215,10 @@ export async function regenerate(branchName: string, packageName: string, azureS if (requestReview) { if (!pullRequestId) { - const pullRequest = await findPullRequest("azure-sdk-for-js", branchName, "open"); - pullRequestId = pullRequest.id; + const pullRequest: PullRequestsGetAllResponseItem | undefined = await findPullRequest("azure-sdk-for-js", branchName, "open"); + if (pullRequest) { + pullRequestId = pullRequest.id; + } } await requestPullRequestReview("azure-sdk-for-js", pullRequestId); _logger.log(`Requested review on PR ${pullRequestId} successfully`); diff --git a/.scripts/logger.ts b/.scripts/logger.ts index 605c83d81662..4652bb386477 100644 --- a/.scripts/logger.ts +++ b/.scripts/logger.ts @@ -39,13 +39,13 @@ export class Logger { constructor(loggingLevel: string) { const lowerCaseLevel = loggingLevel.toLowerCase(); const capitalizedLevel = lowerCaseLevel.charAt(0).toUpperCase() + lowerCaseLevel.slice(1); - this._loggingLevel = LoggingLevel[capitalizedLevel]; + this._loggingLevel = LoggingLevel[capitalizedLevel as any] as any; this._cache = []; } log(text?: string): void { - console.log(text || ""); - this._capture(text); + console.log(text); + this._capture(text || ""); } clearCapturedText(): void { @@ -56,45 +56,45 @@ export class Logger { return this._cache.join("\n"); } - private _capture(text?: string): void { + private _capture(text: string): void { this._cache.push(text); } - logInfo(text?: string) { + logInfo(text: string): void { this.log(text.info); } - logRed(text?: string): void { + logRed(text: string): void { this.log(text.red); } - logGreen(text?: string): void { + logGreen(text: string): void { this.log(text.green); } - logError(text?: string): void { + logError(text: string): void { this.log(text.bgRed); } - logWarn(text?: string): void { + logWarn(text: string): void { if (this._loggingLevel <= LoggingLevel.Warn) { this.log(text.bgYellow.black); } } - logDebug(text?: string): void { + logDebug(text: string): void { if (this._loggingLevel <= LoggingLevel.Debug) { this.log(text); } } - logWithDebugDetails(text?: string, details?: string): void { + logWithDebugDetails(text: string, details?: string): void { const greyDetails = `(${details})`.grey; const textToLog = (this._loggingLevel <= LoggingLevel.Debug) ? `${text} ${greyDetails}` : (text); this.log(textToLog); } - logTrace(text?: string) { + logTrace(text: string): void { if (this._loggingLevel <= LoggingLevel.Trace) { this.log(text.gray); } @@ -104,7 +104,7 @@ export class Logger { console.log(`[${path}]> ${message}`); } - static get() { + static get(): Logger { return new Logger(Argv.Global.loggingLevel); } } diff --git a/.scripts/packages.ts b/.scripts/packages.ts index c0c7fc8601a7..070899dc8166 100644 --- a/.scripts/packages.ts +++ b/.scripts/packages.ts @@ -4,14 +4,14 @@ * license information. */ +import { exec, ExecException } from "child_process"; import * as fssync from "fs"; import { promises as fs } from "fs"; import * as path from "path"; -import { SdkType, parseSdkType } from "./commandLine"; -import { pathExists, isDirectory, arrayContains, getChildDirectories } from "./common"; +import { parseSdkType, SdkType } from "./commandLine"; +import { arrayContains, getChildDirectories, isDirectory, pathExists } from "./common"; import { Logger } from "./logger"; import { doesReadmeMdFileSpecifiesTypescriptSdk, findReadmeTypeScriptMdFilePaths, getAbsolutePackageFolderPathFromReadmeFileContents, getPackageNamesFromReadmeTypeScriptMdFileContents } from "./readme"; -import { exec, ExecException } from "child_process"; export type SdkInfo = { sdkName: string; sdkType: SdkType }; export type PackageInfo = { @@ -88,7 +88,7 @@ async function findChildDirectoriesRecursively(directoryPath: string): Promise /^readme/.test(file)); - const fullSpecName = `${serviceDirectory} [${sdkTypeDirectory}]` - const sdk = { sdkName: serviceDirectory, sdkType: parseSdkType(sdkTypeDirectory) }; - - if (readmeFiles.length <= 0) { - // No readme.md - return undefined; - } else if (arrayContains(readmeFiles, "readme.nodejs.md")) { - if (!arrayContains(readmeFiles, "readme.typescript.md")) { - _logger.logWithDebugDetails(`${fullSpecName}`.negative, "readme.nodejs.md exists but no matching readme.typescript.md"); - return sdk; - } else { - _logger.logDebug(fullSpecName.positive); - } - } else if (arrayContains(readmeFiles, "readme.md")) { - const readmeMdPath = path.resolve(fullSdkPath, "readme.md"); - if (await doesReadmeMdFileSpecifiesTypescriptSdk(readmeMdPath)) { - _logger.logWithDebugDetails(`${fullSpecName}`.negative, "typescript mentioned in readme.md but no readme.typescript.md exists"); - return sdk; - } else { - _logger.logDebug(fullSpecName.positive); + } else { + const readmeFiles = (await fs.readdir(fullSdkPath)).filter(file => /^readme/.test(file)); + const fullSpecName = `${serviceDirectory} [${sdkTypeDirectory}]` + const sdk = { sdkName: serviceDirectory, sdkType: parseSdkType(sdkTypeDirectory) }; + + if (readmeFiles.length <= 0) { + // No readme.md + } else if (arrayContains(readmeFiles, "readme.nodejs.md")) { + if (!arrayContains(readmeFiles, "readme.typescript.md")) { + _logger.logWithDebugDetails(`${fullSpecName}`.negative, "readme.nodejs.md exists but no matching readme.typescript.md"); + return sdk; + } else { + _logger.logDebug(fullSpecName.positive); + } + } else if (arrayContains(readmeFiles, "readme.md")) { + const readmeMdPath = path.resolve(fullSdkPath, "readme.md"); + if (await doesReadmeMdFileSpecifiesTypescriptSdk(readmeMdPath)) { + _logger.logWithDebugDetails(`${fullSpecName}`.negative, "typescript mentioned in readme.md but no readme.typescript.md exists"); + return sdk; + } else { + _logger.logDebug(fullSpecName.positive); + } } } + + return undefined; } export async function saveContentToFile(filePath: string, content: string): Promise { @@ -151,7 +151,7 @@ async function findPackagesWithIncorrectOutput(packageInfos: PackageInfo[]): Pro const incorrectPackages: PackageFault[] = []; for (const packageInfo of packageInfos) { - if (!fssync.existsSync(packageInfo.outputPath)) { + if (packageInfo.outputPath && !fssync.existsSync(packageInfo.outputPath)) { incorrectPackages.push({ package: packageInfo, message: "Output path in azure-sdk-for-js repository doesn't exists. Hint: try regenerating the package." @@ -234,35 +234,33 @@ async function getPackageInformationFromReadmeFiles(azureRestApiSpecsRoot: strin } async function getPackageMetadataFromReadmeFile(azureSdkForJsRoot: string, azureRestApiSpecsRoot: string, tsReadmePath: string): Promise { - const readmeBuffer = await fs.readFile(tsReadmePath); - const readmeContent = readmeBuffer.toString() - const absoluteOutputPath = getAbsolutePackageFolderPathFromReadmeFileContents(azureSdkForJsRoot, readmeContent); - const packageNames = getPackageNamesFromReadmeTypeScriptMdFileContents(readmeContent); - const packageName = packageNames.length == 1 ? packageNames[0] : JSON.stringify(packageNames); - - const packageInfos = packageNames.map(name => { + const readmeBuffer: Buffer = await fs.readFile(tsReadmePath); + const readmeContent: string = readmeBuffer.toString() + const absoluteOutputPath: string | undefined = getAbsolutePackageFolderPathFromReadmeFileContents(azureSdkForJsRoot, readmeContent); + const packageNames: string[] = getPackageNamesFromReadmeTypeScriptMdFileContents(readmeContent); + return packageNames.map((name: string) => { return { name: name, outputPath: absoluteOutputPath, readmePath: tsReadmePath.replace(azureRestApiSpecsRoot, "") } }); - - return packageInfos; } async function getPackagesWithBuildErrors(azureSdkForJsRoot: string, jsonPackageInfos: PackageInfo[]): Promise { const faultyPackages: PackageFault[] = []; for (const packageInfo of jsonPackageInfos) { - const packagePath = path.resolve(azureSdkForJsRoot, packageInfo.outputPath); - _logger.logTrace(`Building ${packagePath} directory.`); - const error = await buildAndGetErrorOutput(packagePath); - if (error) { - faultyPackages.push({ - package: packageInfo, - message: "Package doesn't build correctly. Look into details property to see build failures", - details: error - }); + if (packageInfo.outputPath) { + const packagePath: string = path.resolve(azureSdkForJsRoot, packageInfo.outputPath); + _logger.logTrace(`Building ${packagePath} directory.`); + const error: string | undefined = await buildAndGetErrorOutput(packagePath); + if (error) { + faultyPackages.push({ + package: packageInfo, + message: "Package doesn't build correctly. Look into details property to see build failures", + details: error + }); + } } } @@ -272,7 +270,7 @@ async function getPackagesWithBuildErrors(azureSdkForJsRoot: string, jsonPackage async function buildAndGetErrorOutput(packagePath: string): Promise { return new Promise((resolve) => { - exec("npm install && npm run build", { cwd: packagePath }, (error: ExecException, stdout: string) => { + exec("npm install && npm run build", { cwd: packagePath }, (error: ExecException | null, stdout: string) => { if (error) { resolve(`Status code: ${error.code}\n\tOutput: ${stdout}\n\tMessage: ${error.message}`); } else { diff --git a/.scripts/readme.ts b/.scripts/readme.ts index 7d86e60d64d4..45568c4d4123 100644 --- a/.scripts/readme.ts +++ b/.scripts/readme.ts @@ -4,12 +4,12 @@ * license information. */ -import { pathExists, startsWith, contains } from "./common"; import { promises as fs } from "fs"; import * as glob from "glob"; -import * as path from "path"; import * as yaml from "js-yaml"; +import * as path from "path"; import { SdkType } from "./commandLine"; +import { contains, pathExists, startsWith } from "./common"; import { Logger } from "./logger"; const _logger = Logger.get(); @@ -107,24 +107,28 @@ export async function getSinglePackageName(typescriptReadmePath: string): Promis } async function updatePackageName(settings: ReadmeSettings, sdkType: SdkType): Promise { - let packageName = settings.nodejs["package-name"] - if (packageName.startsWith("azure-")) { - packageName = packageName.replace("azure-", ""); - } + if (settings.nodejs) { + let packageName: string = settings.nodejs["package-name"] + if (packageName.startsWith("azure-")) { + packageName = packageName.replace("azure-", ""); + } - if (sdkType == SdkType.ResourceManager && !packageName.startsWith("arm-")) { - packageName = `arm-${packageName}` - } + if (sdkType == SdkType.ResourceManager && !packageName.startsWith("arm-")) { + packageName = `arm-${packageName}` + } - settings.nodejs["package-name"] = `"@azure/${packageName}"` + settings.nodejs["package-name"] = `"@azure/${packageName}"` + } return settings; } async function updateMetadataFields(settings: ReadmeSettings): Promise { - settings.nodejs["generate-metadata"] = true; - delete settings.nodejs["generate-license-txt"] - delete settings.nodejs["generate-package-json"] - delete settings.nodejs["generate-readme-md"]; + if (settings.nodejs) { + settings.nodejs["generate-metadata"] = true; + delete settings.nodejs["generate-license-txt"] + delete settings.nodejs["generate-package-json"] + delete settings.nodejs["generate-readme-md"]; + } return settings; } @@ -134,13 +138,15 @@ function stripExtraQuotes(text: string): string { } async function updateOutputFolder(settings: ReadmeSettings): Promise { - const outputName = settings.nodejs["package-name"].replace(/"/g, ""); - settings.nodejs["output-folder"] = `"$(typescript-sdks-folder)/packages/${outputName}"`; + if (settings.nodejs) { + const outputName: string = settings.nodejs["package-name"].replace(/"/g, ""); + settings.nodejs["output-folder"] = `"$(typescript-sdks-folder)/packages/${outputName}"`; + } return settings; } async function updateYamlSection(sectionText: string, sdkType: SdkType): Promise { - const section = yaml.safeLoad(sectionText); + const section: any = yaml.safeLoad(sectionText); await updatePackageName(section, sdkType); await updateMetadataFields(section); await updateOutputFolder(section); @@ -230,14 +236,15 @@ export function findReadmeTypeScriptMdFilePaths(azureRestAPISpecsRoot: string): return readmeTypeScriptMdFilePaths; } -export function getOutputFolderFromReadmeTypeScriptMdFileContents(readmeTypeScriptMdFileContents: string): string { - return readmeTypeScriptMdFileContents.match(/output-folder: (\S*)/)[1].replace(/\"/g, ""); +export function getOutputFolderFromReadmeTypeScriptMdFileContents(readmeTypeScriptMdFileContents: string): string | undefined { + const regExpMatch: RegExpMatchArray | null = readmeTypeScriptMdFileContents.match(/output-folder: (\S*)/); + return regExpMatch && regExpMatch.length >= 1 ? regExpMatch[1].replace(/\"/g, "") : undefined; } export function getAbsolutePackageFolderPathFromReadmeFileContents( azureSDKForJSRepoRoot: string, typeScriptReadmeFileContents: string, -): string { - const outputFolderPath: string = getOutputFolderFromReadmeTypeScriptMdFileContents(typeScriptReadmeFileContents); - return outputFolderPath.replace("$(typescript-sdks-folder)", azureSDKForJSRepoRoot); +): string | undefined { + const outputFolderPath: string | undefined = getOutputFolderFromReadmeTypeScriptMdFileContents(typeScriptReadmeFileContents); + return !outputFolderPath ? outputFolderPath : outputFolderPath.replace("$(typescript-sdks-folder)", azureSDKForJSRepoRoot); } diff --git a/gulpfile.ts b/gulpfile.ts index 77ed042af336..310fc86e0b65 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -4,26 +4,22 @@ * license information. */ -import { getCommandLineOptions, Argv } from "./.scripts/commandLine"; -import { endsWith, npmInstall, npmRunBuild } from "./.scripts/common"; -import { findMissingSdks, findWrongPackages } from "./.scripts/packages"; -import { generateTsReadme, generateMissingSdk, generateAllMissingSdks, regenerate, generateSdk } from "./.scripts/gulp"; -import { - findReadmeTypeScriptMdFilePaths, - getAbsolutePackageFolderPathFromReadmeFileContents, - getPackageFolderPathFromPackageArgument, -} from "./.scripts/readme"; -import { Logger } from "./.scripts/logger"; +import { execSync } from "child_process"; import * as fs from "fs"; -import * as gulp from "gulp"; +import gulp from "gulp"; import * as path from "path"; -import { execSync } from "child_process"; +import { Argv, CommandLineOptions, getCommandLineOptions } from "./.scripts/commandLine"; +import { endsWith, npmInstall, npmRunBuild } from "./.scripts/common"; import { getDataFromPullRequest } from "./.scripts/github"; +import { generateAllMissingSdks, generateMissingSdk, generateSdk, generateTsReadme, regenerate } from "./.scripts/gulp"; +import { Logger } from "./.scripts/logger"; +import { findMissingSdks, findWrongPackages } from "./.scripts/packages"; +import { findReadmeTypeScriptMdFilePaths, getAbsolutePackageFolderPathFromReadmeFileContents, getPackageFolderPathFromPackageArgument } from "./.scripts/readme"; -const args = getCommandLineOptions(); -const _logger = Logger.get(); -const azureSDKForJSRepoRoot: string = process.argv["azure-sdk-for-js-repo-root"] || __dirname; -const azureRestAPISpecsRoot: string = process.argv["azure-rest-api-specs-root"] || path.resolve(azureSDKForJSRepoRoot, '..', 'azure-rest-api-specs'); +const args: CommandLineOptions = getCommandLineOptions(); +const _logger: Logger = Logger.get(); +const azureSDKForJSRepoRoot: string = args["azure-sdk-for-js-repo-root"] || __dirname; +const azureRestAPISpecsRoot: string = args["azure-rest-api-specs-root"] || path.resolve(azureSDKForJSRepoRoot, '..', 'azure-rest-api-specs'); gulp.task('default', () => { _logger.log('gulp build --package '); @@ -122,64 +118,69 @@ const createPackages = (type: CreatePackageType = "pack") => { _logger.logTrace(`INFO: Processing ${typeScriptReadmeFilePath}`); const typeScriptReadmeFileContents: string = fs.readFileSync(typeScriptReadmeFilePath, 'utf8'); - const packageFolderPath: string = getAbsolutePackageFolderPathFromReadmeFileContents( + const packageFolderPath: string | undefined = getAbsolutePackageFolderPathFromReadmeFileContents( azureSDKForJSRepoRoot, typeScriptReadmeFileContents ); - if (!fs.existsSync(packageFolderPath)) { - _logger.log(`ERROR: Package folder ${packageFolderPath} has not been generated.`); + if (!packageFolderPath) { + _logger.log(`ERROR: No output-path property specified in ${typeScriptReadmeFileContents}.`); errorPackages++; - } - else { - const packageJsonFilePath: string = `${packageFolderPath}/package.json`; - if (!fs.existsSync(packageJsonFilePath)) { - _logger.log(`ERROR: Package folder ${packageFolderPath} is missing its package.json file.`); + } else { + if (!fs.existsSync(packageFolderPath)) { + _logger.log(`ERROR: Package folder ${packageFolderPath} has not been generated.`); errorPackages++; } else { - const packageJson: { [propertyName: string]: any } = require(packageJsonFilePath); - const packageName: string = packageJson.name; - - if (!args.package || args.package === packageName || endsWith(packageName, `-${args.package}`)) { - const localPackageVersion: string = packageJson.version; - if (!localPackageVersion) { - _logger.log(`ERROR: "${packageJsonFilePath}" doesn't have a version specified.`); - errorPackages++; - } - else { - let npmPackageVersion: string; - try { - const npmViewResult: { [propertyName: string]: any } = JSON.parse( - execSync(`npm view ${packageName} --json`, { stdio: ['pipe', 'pipe', 'ignore'] }).toString() - ); - npmPackageVersion = npmViewResult['dist-tags']['latest']; - } - catch (error) { - // This happens if the package doesn't exist in NPM. - } - - if (localPackageVersion === npmPackageVersion) { - upToDatePackages++; + const packageJsonFilePath: string = `${packageFolderPath}/package.json`; + if (!fs.existsSync(packageJsonFilePath)) { + _logger.log(`ERROR: Package folder ${packageFolderPath} is missing its package.json file.`); + errorPackages++; + } + else { + const packageJson: { [propertyName: string]: any } = require(packageJsonFilePath); + const packageName: string = packageJson.name; + + if (!args.package || args.package === packageName || endsWith(packageName, `-${args.package}`)) { + const localPackageVersion: string = packageJson.version; + if (!localPackageVersion) { + _logger.log(`ERROR: "${packageJsonFilePath}" doesn't have a version specified.`); + errorPackages++; } else { - _logger.log(`Packing package "${packageName}" with version "${localPackageVersion}"...${args.whatif ? " (SKIPPED)" : ""}`); - if (!args.whatif) { - try { - npmInstall(packageFolderPath); - // TODO: `npm install` should be removed after we regenerate all packages. - execSync("npm install", { cwd: packageFolderPath }); - execSync(`npm ${type}`, { cwd: packageFolderPath }); - const packFileName = `${packageName.replace("/", "-").replace("@", "")}-${localPackageVersion}.tgz` - const packFilePath = path.join(packageFolderPath, packFileName); - fs.renameSync(packFilePath, path.join(packPath, packFileName)); - console.log(`Filename: ${packFileName}`); - publishedPackages++; - } - catch (error) { - errorPackages++; + let npmPackageVersion: string | undefined; + try { + const npmViewResult: { [propertyName: string]: any } = JSON.parse( + execSync(`npm view ${packageName} --json`, { stdio: ['pipe', 'pipe', 'ignore'] }).toString() + ); + npmPackageVersion = npmViewResult['dist-tags']['latest']; + } + catch (error) { + // This happens if the package doesn't exist in NPM. + } + + if (localPackageVersion === npmPackageVersion) { + upToDatePackages++; + } + else { + _logger.log(`Packing package "${packageName}" with version "${localPackageVersion}"...${args.whatif ? " (SKIPPED)" : ""}`); + if (!args.whatif) { + try { + npmInstall(packageFolderPath); + // TODO: `npm install` should be removed after we regenerate all packages. + execSync("npm install", { cwd: packageFolderPath }); + execSync(`npm ${type}`, { cwd: packageFolderPath }); + const packFileName = `${packageName.replace("/", "-").replace("@", "")}-${localPackageVersion}.tgz` + const packFilePath = path.join(packageFolderPath, packFileName); + fs.renameSync(packFilePath, path.join(packPath, packFileName)); + console.log(`Filename: ${packFileName}`); + publishedPackages++; + } + catch (error) { + errorPackages++; + } + } else { + publishedPackagesSkipped++; } - } else { - publishedPackagesSkipped++; } } } @@ -292,10 +293,15 @@ gulp.task("regenerate", async () => { }).usage("Example: gulp regenerate --branch 'restapi_auto_daschult/sql'").argv; try { - const pullRequestUrl = argv["pull-request"]; - let pullRequestData; + const pullRequestUrl: string | undefined = argv["pull-request"]; + + let pullRequestData: { packageName: string | undefined; branchName: string; prId: number; } | undefined; if (pullRequestUrl) { - pullRequestData = await getDataFromPullRequest(argv["pull-request"]); + pullRequestData = await getDataFromPullRequest(pullRequestUrl); + } + + if (!pullRequestData) { + throw new Error(`Could not get pull request data for pull request "${pullRequestUrl}".`); } const branchName = argv.branch || pullRequestData.branchName; diff --git a/package.json b/package.json index 879b24a20e53..40a37e6e742e 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,8 @@ }, "devDependencies": { "@octokit/rest": "^15.13.0", + "@types/glob": "^7.1.1", + "@types/gulp": "^4.0.5", "@types/js-yaml": "^3.11.2", "@types/minimist": "^1.2.0", "@types/node": "^10.11.4", diff --git a/packages/@azure/arm-cosmosdb/LICENSE.txt b/packages/@azure/arm-cosmosdb/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-cosmosdb/LICENSE.txt +++ b/packages/@azure/arm-cosmosdb/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-cosmosdb/README.md b/packages/@azure/arm-cosmosdb/README.md index 4eb339a4e3f7..f62862c2c657 100644 --- a/packages/@azure/arm-cosmosdb/README.md +++ b/packages/@azure/arm-cosmosdb/README.md @@ -1,81 +1,81 @@ -# Azure CosmosDBManagementClient SDK for JavaScript -This package contains an isomorphic SDK for CosmosDBManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-cosmosdb -``` - - -## How to use - -### nodejs - Authentication, client creation and get databaseAccounts as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { CosmosDBManagementClient, CosmosDBManagementModels, CosmosDBManagementMappers } from "@azure/arm-cosmosdb"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new CosmosDBManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const accountName = "testaccountName"; - client.databaseAccounts.get(resourceGroupName, accountName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and get databaseAccounts as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-cosmosdb sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure CosmosDBManagementClient SDK for JavaScript +This package contains an isomorphic SDK for CosmosDBManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-cosmosdb +``` + + +## How to use + +### nodejs - Authentication, client creation and get databaseAccounts as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { CosmosDBManagementClient, CosmosDBManagementModels, CosmosDBManagementMappers } from "@azure/arm-cosmosdb"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new CosmosDBManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const accountName = "testaccountName"; + client.databaseAccounts.get(resourceGroupName, accountName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and get databaseAccounts as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-cosmosdb sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-cosmosdb/lib/cosmosDBManagementClientContext.ts b/packages/@azure/arm-cosmosdb/lib/cosmosDBManagementClientContext.ts index a35db2ec8921..8d2bd6bf53b6 100644 --- a/packages/@azure/arm-cosmosdb/lib/cosmosDBManagementClientContext.ts +++ b/packages/@azure/arm-cosmosdb/lib/cosmosDBManagementClientContext.ts @@ -16,16 +16,9 @@ const packageName = "@azure/arm-cosmosdb"; const packageVersion = "1.0.0"; export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - - apiVersion: string; - - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; + apiVersion?: string; /** * Initializes a new instance of the CosmosDBManagementClient class. diff --git a/packages/@azure/arm-cosmosdb/lib/models/index.ts b/packages/@azure/arm-cosmosdb/lib/models/index.ts index de40e60f6654..94bcc01dded9 100644 --- a/packages/@azure/arm-cosmosdb/lib/models/index.ts +++ b/packages/@azure/arm-cosmosdb/lib/models/index.ts @@ -142,6 +142,11 @@ export interface VirtualNetworkRule { * /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. */ id?: string; + /** + * @member {boolean} [ignoreMissingVNetServiceEndpoint] Create firewall rule + * before the virtual network has vnet service endpoint enabled. + */ + ignoreMissingVNetServiceEndpoint?: boolean; } /** diff --git a/packages/@azure/arm-cosmosdb/lib/models/mappers.ts b/packages/@azure/arm-cosmosdb/lib/models/mappers.ts index d5a81393dbf6..b1fa92fd418b 100644 --- a/packages/@azure/arm-cosmosdb/lib/models/mappers.ts +++ b/packages/@azure/arm-cosmosdb/lib/models/mappers.ts @@ -162,6 +162,12 @@ export const VirtualNetworkRule: msRest.CompositeMapper = { type: { name: "String" } + }, + ignoreMissingVNetServiceEndpoint: { + serializedName: "ignoreMissingVNetServiceEndpoint", + type: { + name: "Boolean" + } } } } diff --git a/packages/@azure/arm-cosmosdb/package.json b/packages/@azure/arm-cosmosdb/package.json index 80b03610273f..f0f88273d508 100644 --- a/packages/@azure/arm-cosmosdb/package.json +++ b/packages/@azure/arm-cosmosdb/package.json @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-cosmosdb.js.map'\" -o ./dist/arm-cosmosdb.min.js ./dist/arm-cosmosdb.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts index 46ceb3913e71..5a4756b2d0a3 100644 --- a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts @@ -44,11 +44,6 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, - MongoDbCancelCommand, - MongoDbCommandInput, - MongoDbFinishCommandInput, - MongoDbFinishCommand, - MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index 308b8d96c728..df4cb4215707 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -206,7 +206,7 @@ export interface MigrateSyncCompleteCommandInput { /** * Contains the possible cases for CommandProperties. */ -export type CommandPropertiesUnion = CommandProperties | MigrateSyncCompleteCommandProperties | MongoDbCancelCommand | MongoDbFinishCommand | MongoDbRestartCommand; +export type CommandPropertiesUnion = CommandProperties | MigrateSyncCompleteCommandProperties; /** * @interface @@ -6521,132 +6521,6 @@ export interface MigrateSchemaSqlTaskOutputError { readonly error?: ReportableException; } -/** - * @interface - * An interface representing MongoDbCommandInput. - * Describes the input to the 'cancel' and 'restart' MongoDB migration commands - * - */ -export interface MongoDbCommandInput { - /** - * @member {string} [objectName] The qualified name of a database or - * collection to act upon, or null to act upon the entire migration - */ - objectName?: string; -} - -/** - * @interface - * An interface representing MongoDbCancelCommand. - * Properties for the command that cancels a migration in whole or in part - * - */ -export interface MongoDbCancelCommand { - /** - * @member {string} commandType Polymorphic Discriminator - */ - commandType: "cancel"; - /** - * @member {ODataError[]} [errors] Array of errors. This is ignored if - * submitted. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errors?: ODataError[]; - /** - * @member {CommandState} [state] The state of the command. This is ignored - * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', - * 'Succeeded', 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: CommandState; - /** - * @member {MongoDbCommandInput} [input] Command input - */ - input?: MongoDbCommandInput; -} - -/** - * @interface - * An interface representing MongoDbFinishCommandInput. - * Describes the input to the 'finish' MongoDB migration command - * - * @extends MongoDbCommandInput - */ -export interface MongoDbFinishCommandInput extends MongoDbCommandInput { - /** - * @member {boolean} immediate If true, replication for the affected objects - * will be stopped immediately. If false, the migrator will finish replaying - * queued events before finishing the replication. - */ - immediate: boolean; -} - -/** - * @interface - * An interface representing MongoDbFinishCommand. - * Properties for the command that finishes a migration in whole or in part - * - */ -export interface MongoDbFinishCommand { - /** - * @member {string} commandType Polymorphic Discriminator - */ - commandType: "finish"; - /** - * @member {ODataError[]} [errors] Array of errors. This is ignored if - * submitted. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errors?: ODataError[]; - /** - * @member {CommandState} [state] The state of the command. This is ignored - * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', - * 'Succeeded', 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: CommandState; - /** - * @member {MongoDbFinishCommandInput} [input] Command input - */ - input?: MongoDbFinishCommandInput; -} - -/** - * @interface - * An interface representing MongoDbRestartCommand. - * Properties for the command that restarts a migration in whole or in part - * - */ -export interface MongoDbRestartCommand { - /** - * @member {string} commandType Polymorphic Discriminator - */ - commandType: "restart"; - /** - * @member {ODataError[]} [errors] Array of errors. This is ignored if - * submitted. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errors?: ODataError[]; - /** - * @member {CommandState} [state] The state of the command. This is ignored - * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', - * 'Succeeded', 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: CommandState; - /** - * @member {MongoDbCommandInput} [input] Command input - */ - input?: MongoDbCommandInput; -} - /** * @interface * An interface representing Database. diff --git a/packages/@azure/arm-datamigration/lib/models/mappers.ts b/packages/@azure/arm-datamigration/lib/models/mappers.ts index 4e0f01e7cc4d..93a282240460 100644 --- a/packages/@azure/arm-datamigration/lib/models/mappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/mappers.ts @@ -7539,100 +7539,6 @@ export const MigrateSchemaSqlTaskOutputError: msRest.CompositeMapper = { } }; -export const MongoDbCommandInput: msRest.CompositeMapper = { - serializedName: "MongoDbCommandInput", - type: { - name: "Composite", - className: "MongoDbCommandInput", - modelProperties: { - objectName: { - serializedName: "objectName", - type: { - name: "String" - } - } - } - } -}; - -export const MongoDbCancelCommand: msRest.CompositeMapper = { - serializedName: "cancel", - type: { - name: "Composite", - polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, - uberParent: "CommandProperties", - className: "MongoDbCancelCommand", - modelProperties: { - ...CommandProperties.type.modelProperties, - input: { - serializedName: "input", - type: { - name: "Composite", - className: "MongoDbCommandInput" - } - } - } - } -}; - -export const MongoDbFinishCommandInput: msRest.CompositeMapper = { - serializedName: "MongoDbFinishCommandInput", - type: { - name: "Composite", - className: "MongoDbFinishCommandInput", - modelProperties: { - ...MongoDbCommandInput.type.modelProperties, - immediate: { - required: true, - serializedName: "immediate", - type: { - name: "Boolean" - } - } - } - } -}; - -export const MongoDbFinishCommand: msRest.CompositeMapper = { - serializedName: "finish", - type: { - name: "Composite", - polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, - uberParent: "CommandProperties", - className: "MongoDbFinishCommand", - modelProperties: { - ...CommandProperties.type.modelProperties, - input: { - serializedName: "input", - type: { - name: "Composite", - className: "MongoDbFinishCommandInput" - } - } - } - } -}; - -export const MongoDbRestartCommand: msRest.CompositeMapper = { - serializedName: "restart", - type: { - name: "Composite", - polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, - uberParent: "CommandProperties", - className: "MongoDbRestartCommand", - modelProperties: { - ...CommandProperties.type.modelProperties, - input: { - serializedName: "input", - type: { - name: "Composite", - className: "MongoDbCommandInput" - } - } - } - } -}; - export const Database: msRest.CompositeMapper = { serializedName: "Database", type: { @@ -8505,8 +8411,5 @@ export const discriminators = { 'MigrateSchemaSqlServerSqlDbTaskOutput.MigrationLevelOutput' : MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, 'MigrateSchemaSqlServerSqlDbTaskOutput.DatabaseLevelOutput' : MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, 'MigrateSchemaSqlServerSqlDbTaskOutput.SchemaErrorOutput' : MigrateSchemaSqlServerSqlDbTaskOutputError, - 'MigrateSchemaSqlServerSqlDbTaskOutput.ErrorOutput' : MigrateSchemaSqlTaskOutputError, - 'CommandProperties.cancel' : MongoDbCancelCommand, - 'CommandProperties.finish' : MongoDbFinishCommand, - 'CommandProperties.restart' : MongoDbRestartCommand + 'MigrateSchemaSqlServerSqlDbTaskOutput.ErrorOutput' : MigrateSchemaSqlTaskOutputError }; diff --git a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts index 631f9113b591..ceb2f581d846 100644 --- a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts @@ -45,11 +45,6 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, - MongoDbCancelCommand, - MongoDbCommandInput, - MongoDbFinishCommandInput, - MongoDbFinishCommand, - MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts index 321ade207068..79838c59b053 100644 --- a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts @@ -50,11 +50,6 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, - MongoDbCancelCommand, - MongoDbCommandInput, - MongoDbFinishCommandInput, - MongoDbFinishCommand, - MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts index c4d10a034385..ae230665f672 100644 --- a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts @@ -123,11 +123,6 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, - MongoDbCancelCommand, - MongoDbCommandInput, - MongoDbFinishCommandInput, - MongoDbFinishCommand, - MongoDbRestartCommand, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, SyncMigrationDatabaseErrorEvent, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, diff --git a/packages/@azure/arm-devtestlabs/LICENSE.txt b/packages/@azure/arm-devtestlabs/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-devtestlabs/LICENSE.txt +++ b/packages/@azure/arm-devtestlabs/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-devtestlabs/README.md b/packages/@azure/arm-devtestlabs/README.md index d35500d9c12d..403d1d8e0f2a 100644 --- a/packages/@azure/arm-devtestlabs/README.md +++ b/packages/@azure/arm-devtestlabs/README.md @@ -1,77 +1,77 @@ -# Azure DevTestLabsClient SDK for JavaScript -This package contains an isomorphic SDK for DevTestLabsClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-devtestlabs -``` - - -## How to use - -### nodejs - Authentication, client creation and list providerOperations as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { DevTestLabsClient, DevTestLabsModels, DevTestLabsMappers } from "@azure/arm-devtestlabs"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new DevTestLabsClient(creds, subscriptionId); - client.providerOperations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list providerOperations as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-devtestlabs sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure DevTestLabsClient SDK for JavaScript +This package contains an isomorphic SDK for DevTestLabsClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-devtestlabs +``` + + +## How to use + +### nodejs - Authentication, client creation and list providerOperations as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { DevTestLabsClient, DevTestLabsModels, DevTestLabsMappers } from "@azure/arm-devtestlabs"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DevTestLabsClient(creds, subscriptionId); + client.providerOperations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list providerOperations as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-devtestlabs sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-devtestlabs/lib/devTestLabsClient.ts b/packages/@azure/arm-devtestlabs/lib/devTestLabsClient.ts index 54a08374ac25..faa5adc60bce 100644 --- a/packages/@azure/arm-devtestlabs/lib/devTestLabsClient.ts +++ b/packages/@azure/arm-devtestlabs/lib/devTestLabsClient.ts @@ -37,6 +37,8 @@ class DevTestLabsClient extends DevTestLabsClientContext { disks: operations.Disks; environments: operations.Environments; secrets: operations.Secrets; + serviceFabrics: operations.ServiceFabrics; + serviceFabricSchedules: operations.ServiceFabricSchedules; virtualMachines: operations.VirtualMachines; virtualMachineSchedules: operations.VirtualMachineSchedules; virtualNetworks: operations.VirtualNetworks; @@ -69,6 +71,8 @@ class DevTestLabsClient extends DevTestLabsClientContext { this.disks = new operations.Disks(this); this.environments = new operations.Environments(this); this.secrets = new operations.Secrets(this); + this.serviceFabrics = new operations.ServiceFabrics(this); + this.serviceFabricSchedules = new operations.ServiceFabricSchedules(this); this.virtualMachines = new operations.VirtualMachines(this); this.virtualMachineSchedules = new operations.VirtualMachineSchedules(this); this.virtualNetworks = new operations.VirtualNetworks(this); diff --git a/packages/@azure/arm-devtestlabs/lib/devTestLabsClientContext.ts b/packages/@azure/arm-devtestlabs/lib/devTestLabsClientContext.ts index b5903594421f..b0c21d0d4507 100644 --- a/packages/@azure/arm-devtestlabs/lib/devTestLabsClientContext.ts +++ b/packages/@azure/arm-devtestlabs/lib/devTestLabsClientContext.ts @@ -16,17 +16,10 @@ const packageName = "@azure/arm-devtestlabs"; const packageVersion = "1.0.0"; export class DevTestLabsClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - - apiVersion: string; - + apiVersion?: string; subscriptionId: string; - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; - /** * Initializes a new instance of the DevTestLabsClient class. * @param credentials Credentials needed for the client to connect to Azure. @@ -46,7 +39,7 @@ export class DevTestLabsClientContext extends msRestAzure.AzureServiceClient { } super(credentials, options); - this.apiVersion = '2016-05-15'; + this.apiVersion = '2018-09-15'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/armTemplatesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/armTemplatesMappers.ts index 0acdac0d7345..91425d55d31b 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/armTemplatesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/armTemplatesMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationArmTemplate, + ArmTemplateList, ArmTemplate, Resource, BaseResource, @@ -21,20 +21,15 @@ export { HourDetails, NotificationSettings, ApplicableSchedule, - ScheduleFragment, - WeekDetailsFragment, - DayDetailsFragment, - HourDetailsFragment, - NotificationSettingsFragment, - ApplicableScheduleFragment, Artifact, ArtifactSource, - ArtifactSourceFragment, CustomImage, CustomImagePropertiesFromVm, WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, Disk, DtlEnvironment, EnvironmentDeploymentProperties, @@ -46,15 +41,17 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -62,45 +59,25 @@ export { LabCostSummaryProperties, LabCostDetailsProperties, LabResourceCostProperties, - LabFragment, LabVirtualMachine, - LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NotificationChannel, Event, - NotificationChannelFragment, - EventFragment, Policy, - PolicyFragment, Secret, + ServiceFabric, ServiceRunner, IdentityProperties, User, UserIdentity, UserSecretStore, - UserFragment, - UserIdentityFragment, - UserSecretStoreFragment, VirtualNetwork, Subnet, ExternalSubnet, SubnetOverride, SubnetSharedPublicIpAddressConfiguration, - Port, - VirtualNetworkFragment, - SubnetFragment, - ExternalSubnetFragment, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfigurationFragment, - PortFragment + Port } from "../models/mappers"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/artifactSourcesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/artifactSourcesMappers.ts index b65dfb333d89..e884eb08617b 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/artifactSourcesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/artifactSourcesMappers.ts @@ -9,12 +9,13 @@ */ export { - ResponseWithContinuationArtifactSource, + ArtifactSourceList, ArtifactSource, Resource, BaseResource, CloudError, ArtifactSourceFragment, + UpdateResource, Schedule, WeekDetails, DayDetails, @@ -35,10 +36,23 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -46,15 +60,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -63,18 +93,13 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -82,6 +107,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -98,7 +126,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/artifactsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/artifactsMappers.ts index 380355d9e641..cff99460cf7f 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/artifactsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/artifactsMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationArtifact, + ArtifactList, Artifact, Resource, BaseResource, @@ -23,21 +23,16 @@ export { HourDetails, NotificationSettings, ApplicableSchedule, - ScheduleFragment, - WeekDetailsFragment, - DayDetailsFragment, - HourDetailsFragment, - NotificationSettingsFragment, - ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, ArtifactSource, - ArtifactSourceFragment, CustomImage, CustomImagePropertiesFromVm, WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, Disk, DtlEnvironment, EnvironmentDeploymentProperties, @@ -49,15 +44,17 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -65,45 +62,25 @@ export { LabCostSummaryProperties, LabCostDetailsProperties, LabResourceCostProperties, - LabFragment, LabVirtualMachine, - LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NotificationChannel, Event, - NotificationChannelFragment, - EventFragment, Policy, - PolicyFragment, Secret, + ServiceFabric, ServiceRunner, IdentityProperties, User, UserIdentity, UserSecretStore, - UserFragment, - UserIdentityFragment, - UserSecretStoreFragment, VirtualNetwork, Subnet, ExternalSubnet, SubnetOverride, SubnetSharedPublicIpAddressConfiguration, - Port, - VirtualNetworkFragment, - SubnetFragment, - ExternalSubnetFragment, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfigurationFragment, - PortFragment + Port } from "../models/mappers"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/costsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/costsMappers.ts index 65cb41e69c2e..d4cf682570fb 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/costsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/costsMappers.ts @@ -25,22 +25,17 @@ export { HourDetails, NotificationSettings, ApplicableSchedule, - ScheduleFragment, - WeekDetailsFragment, - DayDetailsFragment, - HourDetailsFragment, - NotificationSettingsFragment, - ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, Artifact, ArtifactSource, - ArtifactSourceFragment, CustomImage, CustomImagePropertiesFromVm, WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, Disk, DtlEnvironment, EnvironmentDeploymentProperties, @@ -52,54 +47,36 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, GalleryImage, Lab, - LabFragment, + LabAnnouncementProperties, + LabSupportProperties, LabVirtualMachine, - LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NotificationChannel, Event, - NotificationChannelFragment, - EventFragment, Policy, - PolicyFragment, Secret, + ServiceFabric, ServiceRunner, IdentityProperties, User, UserIdentity, UserSecretStore, - UserFragment, - UserIdentityFragment, - UserSecretStoreFragment, VirtualNetwork, Subnet, ExternalSubnet, SubnetOverride, SubnetSharedPublicIpAddressConfiguration, - Port, - VirtualNetworkFragment, - SubnetFragment, - ExternalSubnetFragment, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfigurationFragment, - PortFragment + Port } from "../models/mappers"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/customImagesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/customImagesMappers.ts index 7961f628a92b..c7f6b26524d8 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/customImagesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/customImagesMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationCustomImage, + CustomImageList, CustomImage, Resource, BaseResource, @@ -17,7 +17,17 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, CloudError, + CustomImageFragment, + UpdateResource, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Schedule, WeekDetails, DayDetails, @@ -36,9 +46,13 @@ export { ArtifactSource, ArtifactSourceFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -46,15 +60,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -63,18 +93,13 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -82,6 +107,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -98,7 +126,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/disksMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/disksMappers.ts index 72dfc8164430..402cfdcf0ca9 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/disksMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/disksMappers.ts @@ -9,11 +9,13 @@ */ export { - ResponseWithContinuationDisk, + DiskList, Disk, Resource, BaseResource, CloudError, + DiskFragment, + UpdateResource, AttachDiskProperties, DetachDiskProperties, Schedule, @@ -38,9 +40,21 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -48,15 +62,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -65,18 +95,13 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -84,6 +109,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -100,7 +128,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/environmentsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/environmentsMappers.ts index 2cb7a2af81d2..40b565441255 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/environmentsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/environmentsMappers.ts @@ -9,13 +9,17 @@ */ export { - ResponseWithContinuationDtlEnvironment, + DtlEnvironmentList, DtlEnvironment, Resource, BaseResource, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, CloudError, + DtlEnvironmentFragment, + UpdateResource, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Schedule, WeekDetails, DayDetails, @@ -38,7 +42,17 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -46,15 +60,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -63,18 +93,13 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -82,6 +107,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -98,7 +126,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/formulasMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/formulasMappers.ts index 3dce22911286..b52a9e3e01a0 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/formulasMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/formulasMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationFormula, + FormulaList, Formula, Resource, BaseResource, @@ -19,25 +19,40 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - ApplicableSchedule, - Schedule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, WeekDetails, DayDetails, HourDetails, NotificationSettings, FormulaPropertiesFromVm, CloudError, - ScheduleFragment, + FormulaFragment, + UpdateResource, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, WeekDetailsFragment, DayDetailsFragment, HourDetailsFragment, NotificationSettingsFragment, + FormulaPropertiesFromVmFragment, + Schedule, + ApplicableSchedule, + ScheduleFragment, ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, @@ -49,12 +64,27 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -63,18 +93,13 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -82,6 +107,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -98,7 +126,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/galleryImagesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/galleryImagesMappers.ts index 9d41c1bec00b..def381265b6f 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/galleryImagesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/galleryImagesMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationGalleryImage, + GalleryImageList, GalleryImage, Resource, BaseResource, @@ -21,22 +21,17 @@ export { HourDetails, NotificationSettings, ApplicableSchedule, - ScheduleFragment, - WeekDetailsFragment, - DayDetailsFragment, - HourDetailsFragment, - NotificationSettingsFragment, - ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, Artifact, ArtifactSource, - ArtifactSourceFragment, CustomImage, CustomImagePropertiesFromVm, WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, Disk, DtlEnvironment, EnvironmentDeploymentProperties, @@ -47,14 +42,16 @@ export { ArtifactInstallProperties, ArtifactParameterProperties, ArtifactDeploymentStatusProperties, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -62,45 +59,25 @@ export { LabCostSummaryProperties, LabCostDetailsProperties, LabResourceCostProperties, - LabFragment, LabVirtualMachine, - LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NotificationChannel, Event, - NotificationChannelFragment, - EventFragment, Policy, - PolicyFragment, Secret, + ServiceFabric, ServiceRunner, IdentityProperties, User, UserIdentity, UserSecretStore, - UserFragment, - UserIdentityFragment, - UserSecretStoreFragment, VirtualNetwork, Subnet, ExternalSubnet, SubnetOverride, SubnetSharedPublicIpAddressConfiguration, - Port, - VirtualNetworkFragment, - SubnetFragment, - ExternalSubnetFragment, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfigurationFragment, - PortFragment + Port } from "../models/mappers"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/globalSchedulesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/globalSchedulesMappers.ts index 31ac6e75b4ab..339a8e8f3e63 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/globalSchedulesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/globalSchedulesMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationSchedule, + ScheduleList, Schedule, Resource, BaseResource, @@ -19,6 +19,7 @@ export { NotificationSettings, CloudError, ScheduleFragment, + UpdateResource, WeekDetailsFragment, DayDetailsFragment, HourDetailsFragment, @@ -36,10 +37,23 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -47,15 +61,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -64,18 +94,13 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -83,6 +108,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -99,7 +127,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/index.ts b/packages/@azure/arm-devtestlabs/lib/models/index.ts index 64289ad66f57..dc06546081d4 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/index.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/index.ts @@ -66,11 +66,11 @@ export interface HourDetails { */ export interface NotificationSettings { /** - * @member {NotificationStatus} [status] If notifications are enabled for - * this schedule (i.e. Enabled, Disabled). Possible values include: - * 'Disabled', 'Enabled' + * @member {EnableStatus} [status] If notifications are enabled for this + * schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled' */ - status?: NotificationStatus; + status?: EnableStatus; /** * @member {number} [timeInMinutes] Time in minutes before event at which * notification will be sent. @@ -81,6 +81,16 @@ export interface NotificationSettings { * will be sent. */ webhookUrl?: string; + /** + * @member {string} [emailRecipient] The email recipient to send + * notifications to (can be a list of semi-colon seperated email addresses). + */ + emailRecipient?: string; + /** + * @member {string} [notificationLocale] The locale to use when sending a + * notification (fallback for unsupported languages is EN). + */ + notificationLocale?: string; } /** @@ -177,13 +187,17 @@ export interface Schedule extends Resource { /** * @member {string} [provisioningState] The provisioning status of the * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - provisioningState?: string; + readonly provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - uniqueIdentifier?: string; + readonly uniqueIdentifier?: string; } /** @@ -259,11 +273,11 @@ export interface HourDetailsFragment { */ export interface NotificationSettingsFragment { /** - * @member {NotificationStatus} [status] If notifications are enabled for - * this schedule (i.e. Enabled, Disabled). Possible values include: - * 'Disabled', 'Enabled' + * @member {EnableStatus} [status] If notifications are enabled for this + * schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled' */ - status?: NotificationStatus; + status?: EnableStatus; /** * @member {number} [timeInMinutes] Time in minutes before event at which * notification will be sent. @@ -274,6 +288,30 @@ export interface NotificationSettingsFragment { * will be sent. */ webhookUrl?: string; + /** + * @member {string} [emailRecipient] The email recipient to send + * notifications to (can be a list of semi-colon seperated email addresses). + */ + emailRecipient?: string; + /** + * @member {string} [notificationLocale] The locale to use when sending a + * notification (fallback for unsupported languages is EN). + */ + notificationLocale?: string; +} + +/** + * @interface + * An interface representing UpdateResource. + * Represents an update resource + * + */ +export interface UpdateResource { + /** + * @member {{ [propertyName: string]: string }} [tags] The tags of the + * resource. + */ + tags?: { [propertyName: string]: string }; } /** @@ -281,9 +319,9 @@ export interface NotificationSettingsFragment { * An interface representing ScheduleFragment. * A schedule. * - * @extends Resource + * @extends UpdateResource */ -export interface ScheduleFragment extends Resource { +export interface ScheduleFragment extends UpdateResource { /** * @member {EnableStatus} [status] The status of the schedule (i.e. Enabled, * Disabled). Possible values include: 'Enabled', 'Disabled' @@ -324,16 +362,6 @@ export interface ScheduleFragment extends Resource { * belongs */ targetResourceId?: string; - /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - */ - provisioningState?: string; - /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). - */ - uniqueIdentifier?: string; } /** @@ -342,9 +370,9 @@ export interface ScheduleFragment extends Resource { * Schedules applicable to a virtual machine. The schedules may have been * defined on a VM or on lab level. * - * @extends Resource + * @extends UpdateResource */ -export interface ApplicableScheduleFragment extends Resource { +export interface ApplicableScheduleFragment extends UpdateResource { /** * @member {ScheduleFragment} [labVmsShutdown] The auto-shutdown schedule, if * one has been set at the lab or lab resource level. @@ -385,6 +413,10 @@ export interface ArtifactInstallProperties { * @member {string} [artifactId] The artifact's identifier. */ artifactId?: string; + /** + * @member {string} [artifactTitle] The artifact's title. + */ + artifactTitle?: string; /** * @member {ArtifactParameterProperties[]} [parameters] The parameters of the * artifact. @@ -494,6 +526,13 @@ export interface ArmTemplate extends Resource { * the server.** */ readonly parametersValueFilesInfo?: ParametersValueFileInfo[]; + /** + * @member {boolean} [enabled] Whether or not ARM template is enabled for use + * by lab user. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly enabled?: boolean; } /** @@ -530,6 +569,23 @@ export interface ArmTemplateParameterProperties { value?: string; } +/** + * @interface + * An interface representing ArmTemplateParameterPropertiesFragment. + * Properties of an Azure Resource Manager template parameter. + * + */ +export interface ArmTemplateParameterPropertiesFragment { + /** + * @member {string} [name] The name of the template parameter. + */ + name?: string; + /** + * @member {string} [value] The value of the template parameter. + */ + value?: string; +} + /** * @interface * An interface representing Artifact. @@ -662,6 +718,10 @@ export interface ArtifactInstallPropertiesFragment { * @member {string} [artifactId] The artifact's identifier. */ artifactId?: string; + /** + * @member {string} [artifactTitle] The artifact's title. + */ + artifactTitle?: string; /** * @member {ArtifactParameterPropertiesFragment[]} [parameters] The * parameters of the artifact. @@ -742,13 +802,17 @@ export interface ArtifactSource extends Resource { /** * @member {string} [provisioningState] The provisioning status of the * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - provisioningState?: string; + readonly provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - uniqueIdentifier?: string; + readonly uniqueIdentifier?: string; } /** @@ -756,9 +820,9 @@ export interface ArtifactSource extends Resource { * An interface representing ArtifactSourceFragment. * Properties of an artifact source. * - * @extends Resource + * @extends UpdateResource */ -export interface ArtifactSourceFragment extends Resource { +export interface ArtifactSourceFragment extends UpdateResource { /** * @member {string} [displayName] The artifact source's display name. */ @@ -796,16 +860,6 @@ export interface ArtifactSourceFragment extends Resource { * 'Disabled' */ status?: EnableStatus; - /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - */ - provisioningState?: string; - /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). - */ - uniqueIdentifier?: string; } /** @@ -845,6 +899,29 @@ export interface AttachNewDataDiskOptions { diskType?: StorageType; } +/** + * @interface + * An interface representing AttachNewDataDiskOptionsFragment. + * Properties to attach new disk to the Virtual Machine. + * + */ +export interface AttachNewDataDiskOptionsFragment { + /** + * @member {number} [diskSizeGiB] Size of the disk to be attached in + * GibiBytes. + */ + diskSizeGiB?: number; + /** + * @member {string} [diskName] The name of the disk to be attached. + */ + diskName?: string; + /** + * @member {StorageType} [diskType] The storage type for the disk (i.e. + * Standard, Premium). Possible values include: 'Standard', 'Premium' + */ + diskType?: StorageType; +} + /** * @interface * An interface representing BulkCreationParameters. @@ -859,6 +936,20 @@ export interface BulkCreationParameters { instanceCount?: number; } +/** + * @interface + * An interface representing BulkCreationParametersFragment. + * Parameters for creating multiple virtual machines as a single action. + * + */ +export interface BulkCreationParametersFragment { + /** + * @member {number} [instanceCount] The number of virtual machine instances + * to create. + */ + instanceCount?: number; +} + /** * @interface * An interface representing ComputeDataDisk. @@ -1163,6 +1254,47 @@ export interface CustomImagePropertiesCustom { osType: CustomImageOsType; } +/** + * @interface + * An interface representing DataDiskStorageTypeInfo. + * Storage information about the data disks present in the custom image + * + */ +export interface DataDiskStorageTypeInfo { + /** + * @member {string} [lun] Disk Lun + */ + lun?: string; + /** + * @member {StorageType} [storageType] Disk Storage Type. Possible values + * include: 'Standard', 'Premium' + */ + storageType?: StorageType; +} + +/** + * @interface + * An interface representing CustomImagePropertiesFromPlan. + * Properties for plan on a custom image. + * + */ +export interface CustomImagePropertiesFromPlan { + /** + * @member {string} [id] The id of the plan, equivalent to name of the plan + */ + id?: string; + /** + * @member {string} [publisher] The publisher for the plan from the + * marketplace image the custom image is derived from + */ + publisher?: string; + /** + * @member {string} [offer] The offer for the plan from the marketplace image + * the custom image is derived from + */ + offer?: string; +} + /** * @interface * An interface representing CustomImage. @@ -1200,141 +1332,409 @@ export interface CustomImage extends Resource { * image. */ managedImageId?: string; + /** + * @member {string} [managedSnapshotId] The Managed Snapshot Id backing the + * custom image. + */ + managedSnapshotId?: string; + /** + * @member {DataDiskStorageTypeInfo[]} [dataDiskStorageInfo] Storage + * information about the data disks present in the custom image + */ + dataDiskStorageInfo?: DataDiskStorageTypeInfo[]; + /** + * @member {CustomImagePropertiesFromPlan} [customImagePlan] Storage + * information about the plan related to this custom image + */ + customImagePlan?: CustomImagePropertiesFromPlan; + /** + * @member {boolean} [isPlanAuthorized] Whether or not the custom images + * underlying offer/plan has been enabled for programmatic deployment + */ + isPlanAuthorized?: boolean; /** * @member {string} [provisioningState] The provisioning status of the * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - provisioningState?: string; + readonly provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - uniqueIdentifier?: string; + readonly uniqueIdentifier?: string; } /** * @interface - * An interface representing DataDiskProperties. - * Request body for adding a new or existing data disk to a virtual machine. + * An interface representing WindowsOsInfoFragment. + * Information about a Windows OS. * */ -export interface DataDiskProperties { - /** - * @member {AttachNewDataDiskOptions} [attachNewDataDiskOptions] Specifies - * options to attach a new disk to the virtual machine. - */ - attachNewDataDiskOptions?: AttachNewDataDiskOptions; - /** - * @member {string} [existingLabDiskId] Specifies the existing lab disk id to - * attach to virtual machine. - */ - existingLabDiskId?: string; +export interface WindowsOsInfoFragment { /** - * @member {HostCachingOptions} [hostCaching] Caching option for a data disk - * (i.e. None, ReadOnly, ReadWrite). Possible values include: 'None', - * 'ReadOnly', 'ReadWrite' + * @member {WindowsOsState} [windowsOsState] The state of the Windows OS + * (i.e. NonSysprepped, SysprepRequested, SysprepApplied). Possible values + * include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' */ - hostCaching?: HostCachingOptions; + windowsOsState?: WindowsOsState; } /** * @interface - * An interface representing DetachDataDiskProperties. - * Request body for detaching data disk from a virtual machine. + * An interface representing LinuxOsInfoFragment. + * Information about a Linux OS. * */ -export interface DetachDataDiskProperties { +export interface LinuxOsInfoFragment { /** - * @member {string} [existingLabDiskId] Specifies the disk resource ID to - * detach from virtual machine. + * @member {LinuxOsState} [linuxOsState] The state of the Linux OS (i.e. + * NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). Possible + * values include: 'NonDeprovisioned', 'DeprovisionRequested', + * 'DeprovisionApplied' */ - existingLabDiskId?: string; + linuxOsState?: LinuxOsState; } /** * @interface - * An interface representing DetachDiskProperties. - * Properties of the disk to detach. + * An interface representing CustomImagePropertiesFromVmFragment. + * Properties for creating a custom image from a virtual machine. * */ -export interface DetachDiskProperties { +export interface CustomImagePropertiesFromVmFragment { /** - * @member {string} [leasedByLabVmId] The resource ID of the Lab VM to which - * the disk is attached. + * @member {string} [sourceVmId] The source vm identifier. */ - leasedByLabVmId?: string; + sourceVmId?: string; + /** + * @member {WindowsOsInfoFragment} [windowsOsInfo] The Windows OS information + * of the VM. + */ + windowsOsInfo?: WindowsOsInfoFragment; + /** + * @member {LinuxOsInfoFragment} [linuxOsInfo] The Linux OS information of + * the VM. + */ + linuxOsInfo?: LinuxOsInfoFragment; } /** * @interface - * An interface representing Disk. - * A Disk. + * An interface representing CustomImagePropertiesCustomFragment. + * Properties for creating a custom image from a VHD. * - * @extends Resource */ -export interface Disk extends Resource { - /** - * @member {StorageType} [diskType] The storage type for the disk (i.e. - * Standard, Premium). Possible values include: 'Standard', 'Premium' - */ - diskType?: StorageType; - /** - * @member {number} [diskSizeGiB] The size of the disk in GibiBytes. - */ - diskSizeGiB?: number; +export interface CustomImagePropertiesCustomFragment { /** - * @member {string} [leasedByLabVmId] The resource ID of the VM to which this - * disk is leased. + * @member {string} [imageName] The image name. */ - leasedByLabVmId?: string; + imageName?: string; /** - * @member {string} [diskBlobName] When backed by a blob, the name of the VHD - * blob without extension. + * @member {boolean} [sysPrep] Indicates whether sysprep has been run on the + * VHD. */ - diskBlobName?: string; + sysPrep?: boolean; /** - * @member {string} [diskUri] When backed by a blob, the URI of underlying - * blob. + * @member {CustomImageOsType} [osType] The OS type of the custom image (i.e. + * Windows, Linux). Possible values include: 'Windows', 'Linux', 'None' */ - diskUri?: string; + osType?: CustomImageOsType; +} + +/** + * @interface + * An interface representing DataDiskStorageTypeInfoFragment. + * Storage information about the data disks present in the custom image + * + */ +export interface DataDiskStorageTypeInfoFragment { /** - * @member {Date} [createdDate] The creation date of the disk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [lun] Disk Lun */ - readonly createdDate?: Date; + lun?: string; /** - * @member {string} [hostCaching] The host caching policy of the disk (i.e. - * None, ReadOnly, ReadWrite). + * @member {StorageType} [storageType] Disk Storage Type. Possible values + * include: 'Standard', 'Premium' */ - hostCaching?: string; + storageType?: StorageType; +} + +/** + * @interface + * An interface representing CustomImagePropertiesFromPlanFragment. + * Properties for plan on a custom image. + * + */ +export interface CustomImagePropertiesFromPlanFragment { /** - * @member {string} [managedDiskId] When backed by managed disk, this is the - * ID of the compute disk resource. + * @member {string} [id] The id of the plan, equivalent to name of the plan */ - managedDiskId?: string; + id?: string; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {string} [publisher] The publisher for the plan from the + * marketplace image the custom image is derived from */ - provisioningState?: string; + publisher?: string; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {string} [offer] The offer for the plan from the marketplace image + * the custom image is derived from */ - uniqueIdentifier?: string; + offer?: string; } /** * @interface - * An interface representing EnvironmentDeploymentProperties. - * Properties of an environment deployment. + * An interface representing CustomImageFragment. + * A custom image. * + * @extends UpdateResource */ -export interface EnvironmentDeploymentProperties { +export interface CustomImageFragment extends UpdateResource { /** - * @member {string} [armTemplateId] The Azure Resource Manager template's - * identifier. + * @member {CustomImagePropertiesFromVmFragment} [vm] The virtual machine + * from which the image is to be created. + */ + vm?: CustomImagePropertiesFromVmFragment; + /** + * @member {CustomImagePropertiesCustomFragment} [vhd] The VHD from which the + * image is to be created. + */ + vhd?: CustomImagePropertiesCustomFragment; + /** + * @member {string} [description] The description of the custom image. + */ + description?: string; + /** + * @member {string} [author] The author of the custom image. + */ + author?: string; + /** + * @member {string} [managedImageId] The Managed Image Id backing the custom + * image. + */ + managedImageId?: string; + /** + * @member {string} [managedSnapshotId] The Managed Snapshot Id backing the + * custom image. + */ + managedSnapshotId?: string; + /** + * @member {DataDiskStorageTypeInfoFragment[]} [dataDiskStorageInfo] Storage + * information about the data disks present in the custom image + */ + dataDiskStorageInfo?: DataDiskStorageTypeInfoFragment[]; + /** + * @member {CustomImagePropertiesFromPlanFragment} [customImagePlan] Storage + * information about the plan related to this custom image + */ + customImagePlan?: CustomImagePropertiesFromPlanFragment; + /** + * @member {boolean} [isPlanAuthorized] Whether or not the custom images + * underlying offer/plan has been enabled for programmatic deployment + */ + isPlanAuthorized?: boolean; +} + +/** + * @interface + * An interface representing DataDiskProperties. + * Request body for adding a new or existing data disk to a virtual machine. + * + */ +export interface DataDiskProperties { + /** + * @member {AttachNewDataDiskOptions} [attachNewDataDiskOptions] Specifies + * options to attach a new disk to the virtual machine. + */ + attachNewDataDiskOptions?: AttachNewDataDiskOptions; + /** + * @member {string} [existingLabDiskId] Specifies the existing lab disk id to + * attach to virtual machine. + */ + existingLabDiskId?: string; + /** + * @member {HostCachingOptions} [hostCaching] Caching option for a data disk + * (i.e. None, ReadOnly, ReadWrite). Possible values include: 'None', + * 'ReadOnly', 'ReadWrite' + */ + hostCaching?: HostCachingOptions; +} + +/** + * @interface + * An interface representing DataDiskPropertiesFragment. + * Request body for adding a new or existing data disk to a virtual machine. + * + */ +export interface DataDiskPropertiesFragment { + /** + * @member {AttachNewDataDiskOptionsFragment} [attachNewDataDiskOptions] + * Specifies options to attach a new disk to the virtual machine. + */ + attachNewDataDiskOptions?: AttachNewDataDiskOptionsFragment; + /** + * @member {string} [existingLabDiskId] Specifies the existing lab disk id to + * attach to virtual machine. + */ + existingLabDiskId?: string; + /** + * @member {HostCachingOptions} [hostCaching] Caching option for a data disk + * (i.e. None, ReadOnly, ReadWrite). Possible values include: 'None', + * 'ReadOnly', 'ReadWrite' + */ + hostCaching?: HostCachingOptions; +} + +/** + * @interface + * An interface representing DetachDataDiskProperties. + * Request body for detaching data disk from a virtual machine. + * + */ +export interface DetachDataDiskProperties { + /** + * @member {string} [existingLabDiskId] Specifies the disk resource ID to + * detach from virtual machine. + */ + existingLabDiskId?: string; +} + +/** + * @interface + * An interface representing DetachDiskProperties. + * Properties of the disk to detach. + * + */ +export interface DetachDiskProperties { + /** + * @member {string} [leasedByLabVmId] The resource ID of the Lab VM to which + * the disk is attached. + */ + leasedByLabVmId?: string; +} + +/** + * @interface + * An interface representing Disk. + * A Disk. + * + * @extends Resource + */ +export interface Disk extends Resource { + /** + * @member {StorageType} [diskType] The storage type for the disk (i.e. + * Standard, Premium). Possible values include: 'Standard', 'Premium' + */ + diskType?: StorageType; + /** + * @member {number} [diskSizeGiB] The size of the disk in GibiBytes. + */ + diskSizeGiB?: number; + /** + * @member {string} [leasedByLabVmId] The resource ID of the VM to which this + * disk is leased. + */ + leasedByLabVmId?: string; + /** + * @member {string} [diskBlobName] When backed by a blob, the name of the VHD + * blob without extension. + */ + diskBlobName?: string; + /** + * @member {string} [diskUri] When backed by a blob, the URI of underlying + * blob. + */ + diskUri?: string; + /** + * @member {Date} [createdDate] The creation date of the disk. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly createdDate?: Date; + /** + * @member {string} [hostCaching] The host caching policy of the disk (i.e. + * None, ReadOnly, ReadWrite). + */ + hostCaching?: string; + /** + * @member {string} [managedDiskId] When backed by managed disk, this is the + * ID of the compute disk resource. + */ + managedDiskId?: string; + /** + * @member {string} [provisioningState] The provisioning status of the + * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly uniqueIdentifier?: string; +} + +/** + * @interface + * An interface representing DiskFragment. + * A Disk. + * + * @extends UpdateResource + */ +export interface DiskFragment extends UpdateResource { + /** + * @member {StorageType} [diskType] The storage type for the disk (i.e. + * Standard, Premium). Possible values include: 'Standard', 'Premium' + */ + diskType?: StorageType; + /** + * @member {number} [diskSizeGiB] The size of the disk in GibiBytes. + */ + diskSizeGiB?: number; + /** + * @member {string} [leasedByLabVmId] The resource ID of the VM to which this + * disk is leased. + */ + leasedByLabVmId?: string; + /** + * @member {string} [diskBlobName] When backed by a blob, the name of the VHD + * blob without extension. + */ + diskBlobName?: string; + /** + * @member {string} [diskUri] When backed by a blob, the URI of underlying + * blob. + */ + diskUri?: string; + /** + * @member {string} [hostCaching] The host caching policy of the disk (i.e. + * None, ReadOnly, ReadWrite). + */ + hostCaching?: string; + /** + * @member {string} [managedDiskId] When backed by managed disk, this is the + * ID of the compute disk resource. + */ + managedDiskId?: string; +} + +/** + * @interface + * An interface representing EnvironmentDeploymentProperties. + * Properties of an environment deployment. + * + */ +export interface EnvironmentDeploymentProperties { + /** + * @member {string} [armTemplateId] The Azure Resource Manager template's + * identifier. */ armTemplateId?: string; /** @@ -1378,13 +1778,56 @@ export interface DtlEnvironment extends Resource { /** * @member {string} [provisioningState] The provisioning status of the * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - provisioningState?: string; + readonly provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly uniqueIdentifier?: string; +} + +/** + * @interface + * An interface representing EnvironmentDeploymentPropertiesFragment. + * Properties of an environment deployment. + * + */ +export interface EnvironmentDeploymentPropertiesFragment { + /** + * @member {string} [armTemplateId] The Azure Resource Manager template's + * identifier. + */ + armTemplateId?: string; + /** + * @member {ArmTemplateParameterPropertiesFragment[]} [parameters] The + * parameters of the Azure Resource Manager template. + */ + parameters?: ArmTemplateParameterPropertiesFragment[]; +} + +/** + * @interface + * An interface representing DtlEnvironmentFragment. + * An environment, which is essentially an ARM template deployment. + * + * @extends UpdateResource + */ +export interface DtlEnvironmentFragment extends UpdateResource { + /** + * @member {EnvironmentDeploymentPropertiesFragment} [deploymentProperties] + * The deployment properties of the environment. + */ + deploymentProperties?: EnvironmentDeploymentPropertiesFragment; + /** + * @member {string} [armTemplateDisplayName] The display name of the Azure + * Resource Manager template that produced the environment. */ - uniqueIdentifier?: string; + armTemplateDisplayName?: string; } /** @@ -1406,6 +1849,11 @@ export interface EvaluatePoliciesProperties { * @member {string} [valueOffset] The value offset. */ valueOffset?: string; + /** + * @member {string} [userObjectId] The user for which policies will be + * evaluated + */ + userObjectId?: string; } /** @@ -1677,18 +2125,81 @@ export interface NetworkInterfaceProperties { /** * @interface - * An interface representing LabVirtualMachineCreationParameter. - * Properties for creating a virtual machine. + * An interface representing ScheduleCreationParameter. + * Properties for creating a schedule. * */ -export interface LabVirtualMachineCreationParameter { +export interface ScheduleCreationParameter { /** - * @member {BulkCreationParameters} [bulkCreationParameters] The number of - * virtual machine instances to create. + * @member {EnableStatus} [status] The status of the schedule (i.e. Enabled, + * Disabled). Possible values include: 'Enabled', 'Disabled' */ - bulkCreationParameters?: BulkCreationParameters; + status?: EnableStatus; /** - * @member {string} [notes] The notes of the virtual machine. + * @member {string} [taskType] The task type of the schedule (e.g. + * LabVmsShutdownTask, LabVmAutoStart). + */ + taskType?: string; + /** + * @member {WeekDetails} [weeklyRecurrence] If the schedule will occur only + * some days of the week, specify the weekly recurrence. + */ + weeklyRecurrence?: WeekDetails; + /** + * @member {DayDetails} [dailyRecurrence] If the schedule will occur once + * each day of the week, specify the daily recurrence. + */ + dailyRecurrence?: DayDetails; + /** + * @member {HourDetails} [hourlyRecurrence] If the schedule will occur + * multiple times a day, specify the hourly recurrence. + */ + hourlyRecurrence?: HourDetails; + /** + * @member {string} [timeZoneId] The time zone ID (e.g. Pacific Standard + * time). + */ + timeZoneId?: string; + /** + * @member {NotificationSettings} [notificationSettings] Notification + * settings. + */ + notificationSettings?: NotificationSettings; + /** + * @member {string} [targetResourceId] The resource ID to which the schedule + * belongs + */ + targetResourceId?: string; + /** + * @member {string} [name] The name of the virtual machine or environment + */ + name?: string; + /** + * @member {string} [location] The location of the new virtual machine or + * environment + */ + location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] The tags of the + * resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing LabVirtualMachineCreationParameter. + * Properties for creating a virtual machine. + * + */ +export interface LabVirtualMachineCreationParameter { + /** + * @member {BulkCreationParameters} [bulkCreationParameters] The number of + * virtual machine instances to create. + */ + bulkCreationParameters?: BulkCreationParameters; + /** + * @member {string} [notes] The notes of the virtual machine. */ notes?: string; /** @@ -1715,6 +2226,11 @@ export interface LabVirtualMachineCreationParameter { * @member {Date} [createdDate] The creation date of the virtual machine. */ createdDate?: Date; + /** + * @member {string} [computeId] The resource identifier (Microsoft.Compute) + * of the virtual machine. + */ + computeId?: string; /** * @member {string} [customImageId] The custom image identifier of the * virtual machine. @@ -1783,20 +2299,15 @@ export interface LabVirtualMachineCreationParameter { */ galleryImageReference?: GalleryImageReference; /** - * @member {ComputeVmProperties} [computeVm] The compute virtual machine - * properties. + * @member {string} [planId] The id of the plan associated with the virtual + * machine image */ - computeVm?: ComputeVmProperties; + planId?: string; /** * @member {NetworkInterfaceProperties} [networkInterface] The network * interface properties. */ networkInterface?: NetworkInterfaceProperties; - /** - * @member {ApplicableSchedule} [applicableSchedule] The applicable schedule - * for the virtual machine. - */ - applicableSchedule?: ApplicableSchedule; /** * @member {Date} [expirationDate] The expiration date for VM. */ @@ -1823,15 +2334,20 @@ export interface LabVirtualMachineCreationParameter { */ environmentId?: string; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {DataDiskProperties[]} [dataDiskParameters] New or existing data + * disks to attach to the virtual machine after creation */ - provisioningState?: string; + dataDiskParameters?: DataDiskProperties[]; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {ScheduleCreationParameter[]} [scheduleParameters] Virtual Machine + * schedules to be created + */ + scheduleParameters?: ScheduleCreationParameter[]; + /** + * @member {string} [lastKnownPowerState] Last known compute power state + * captured in DTL */ - uniqueIdentifier?: string; + lastKnownPowerState?: string; /** * @member {string} [name] The name of the virtual machine or environment */ @@ -1901,51 +2417,17 @@ export interface Formula extends Resource { /** * @member {string} [provisioningState] The provisioning status of the * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - provisioningState?: string; + readonly provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). - */ - uniqueIdentifier?: string; -} - -/** - * @interface - * An interface representing GalleryImage. - * A gallery image. - * - * @extends Resource - */ -export interface GalleryImage extends Resource { - /** - * @member {string} [author] The author of the gallery image. - */ - author?: string; - /** - * @member {Date} [createdDate] The creation date of the gallery image. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly createdDate?: Date; - /** - * @member {string} [description] The description of the gallery image. - */ - description?: string; - /** - * @member {GalleryImageReference} [imageReference] The image reference of - * the gallery image. - */ - imageReference?: GalleryImageReference; - /** - * @member {string} [icon] The icon of the gallery image. - */ - icon?: string; - /** - * @member {boolean} [enabled] Indicates whether this gallery image is - * enabled. - */ - enabled?: boolean; + readonly uniqueIdentifier?: string; } /** @@ -1979,1622 +2461,1442 @@ export interface GalleryImageReferenceFragment { /** * @interface - * An interface representing ParameterInfo. - * Information about an artifact's parameter. - * - */ -export interface ParameterInfo { - /** - * @member {string} [name] The name of the artifact parameter. - */ - name?: string; - /** - * @member {string} [value] The value of the artifact parameter. - */ - value?: string; -} - -/** - * @interface - * An interface representing GenerateArmTemplateRequest. - * Parameters for generating an ARM template for deploying artifacts. + * An interface representing InboundNatRuleFragment. + * A rule for NAT - exposing a VM's port (backendPort) on the public IP address + * using a load balancer. * */ -export interface GenerateArmTemplateRequest { - /** - * @member {string} [virtualMachineName] The resource name of the virtual - * machine. - */ - virtualMachineName?: string; +export interface InboundNatRuleFragment { /** - * @member {ParameterInfo[]} [parameters] The parameters of the ARM template. + * @member {TransportProtocol} [transportProtocol] The transport protocol for + * the endpoint. Possible values include: 'Tcp', 'Udp' */ - parameters?: ParameterInfo[]; + transportProtocol?: TransportProtocol; /** - * @member {string} [location] The location of the virtual machine. + * @member {number} [frontendPort] The external endpoint port of the inbound + * connection. Possible values range between 1 and 65535, inclusive. If + * unspecified, a value will be allocated automatically. */ - location?: string; + frontendPort?: number; /** - * @member {FileUploadOptions} [fileUploadOptions] Options for uploading the - * files for the artifact. UploadFilesAndGenerateSasTokens is the default - * value. Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' + * @member {number} [backendPort] The port to which the external traffic will + * be redirected. */ - fileUploadOptions?: FileUploadOptions; + backendPort?: number; } /** * @interface - * An interface representing GenerateUploadUriParameter. - * Properties for generating an upload URI. + * An interface representing SharedPublicIpAddressConfigurationFragment. + * Properties of a virtual machine that determine how it is connected to a load + * balancer. * */ -export interface GenerateUploadUriParameter { +export interface SharedPublicIpAddressConfigurationFragment { /** - * @member {string} [blobName] The blob name of the upload URI. + * @member {InboundNatRuleFragment[]} [inboundNatRules] The incoming NAT + * rules */ - blobName?: string; + inboundNatRules?: InboundNatRuleFragment[]; } /** * @interface - * An interface representing GenerateUploadUriResponse. - * Reponse body for generating an upload URI. + * An interface representing NetworkInterfacePropertiesFragment. + * Properties of a network interface. * */ -export interface GenerateUploadUriResponse { +export interface NetworkInterfacePropertiesFragment { /** - * @member {string} [uploadUri] The upload URI for the VHD. + * @member {string} [virtualNetworkId] The resource ID of the virtual + * network. */ - uploadUri?: string; -} - -/** - * @interface - * An interface representing IdentityProperties. - * Properties of a managed identity - * - */ -export interface IdentityProperties { + virtualNetworkId?: string; /** - * @member {string} [type] Managed identity. + * @member {string} [subnetId] The resource ID of the sub net. */ - type?: string; + subnetId?: string; /** - * @member {string} [principalId] The principal id of resource identity. + * @member {string} [publicIpAddressId] The resource ID of the public IP + * address. */ - principalId?: string; + publicIpAddressId?: string; /** - * @member {string} [tenantId] The tenant identifier of resource. + * @member {string} [publicIpAddress] The public IP address. */ - tenantId?: string; + publicIpAddress?: string; /** - * @member {string} [clientSecretUrl] The client secret URL of the identity. + * @member {string} [privateIpAddress] The private IP address. */ - clientSecretUrl?: string; -} - -/** - * @interface - * An interface representing InboundNatRuleFragment. - * A rule for NAT - exposing a VM's port (backendPort) on the public IP address - * using a load balancer. - * - */ -export interface InboundNatRuleFragment { + privateIpAddress?: string; /** - * @member {TransportProtocol} [transportProtocol] The transport protocol for - * the endpoint. Possible values include: 'Tcp', 'Udp' + * @member {string} [dnsName] The DNS name. */ - transportProtocol?: TransportProtocol; + dnsName?: string; /** - * @member {number} [frontendPort] The external endpoint port of the inbound - * connection. Possible values range between 1 and 65535, inclusive. If - * unspecified, a value will be allocated automatically. + * @member {string} [rdpAuthority] The RdpAuthority property is a server DNS + * host name or IP address followed by the service port number for RDP + * (Remote Desktop Protocol). */ - frontendPort?: number; + rdpAuthority?: string; /** - * @member {number} [backendPort] The port to which the external traffic will - * be redirected. + * @member {string} [sshAuthority] The SshAuthority property is a server DNS + * host name or IP address followed by the service port number for SSH. */ - backendPort?: number; + sshAuthority?: string; + /** + * @member {SharedPublicIpAddressConfigurationFragment} + * [sharedPublicIpAddressConfiguration] The configuration for sharing a + * public IP address across multiple virtual machines. + */ + sharedPublicIpAddressConfiguration?: SharedPublicIpAddressConfigurationFragment; } /** * @interface - * An interface representing Lab. - * A lab. + * An interface representing ScheduleCreationParameterFragment. + * Properties for creating a schedule. * - * @extends Resource */ -export interface Lab extends Resource { +export interface ScheduleCreationParameterFragment { /** - * @member {string} [defaultStorageAccount] The lab's default storage - * account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {EnableStatus} [status] The status of the schedule (i.e. Enabled, + * Disabled). Possible values include: 'Enabled', 'Disabled' */ - readonly defaultStorageAccount?: string; + status?: EnableStatus; /** - * @member {string} [defaultPremiumStorageAccount] The lab's default premium - * storage account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [taskType] The task type of the schedule (e.g. + * LabVmsShutdownTask, LabVmAutoStart). */ - readonly defaultPremiumStorageAccount?: string; + taskType?: string; /** - * @member {string} [artifactsStorageAccount] The lab's artifact storage - * account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {WeekDetailsFragment} [weeklyRecurrence] If the schedule will + * occur only some days of the week, specify the weekly recurrence. */ - readonly artifactsStorageAccount?: string; + weeklyRecurrence?: WeekDetailsFragment; /** - * @member {string} [premiumDataDiskStorageAccount] The lab's premium data - * disk storage account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {DayDetailsFragment} [dailyRecurrence] If the schedule will occur + * once each day of the week, specify the daily recurrence. */ - readonly premiumDataDiskStorageAccount?: string; + dailyRecurrence?: DayDetailsFragment; /** - * @member {string} [vaultName] The lab's Key vault. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {HourDetailsFragment} [hourlyRecurrence] If the schedule will + * occur multiple times a day, specify the hourly recurrence. */ - readonly vaultName?: string; + hourlyRecurrence?: HourDetailsFragment; /** - * @member {StorageType} [labStorageType] Type of storage used by the lab. It - * can be either Premium or Standard. Default is Premium. Possible values - * include: 'Standard', 'Premium' + * @member {string} [timeZoneId] The time zone ID (e.g. Pacific Standard + * time). */ - labStorageType?: StorageType; + timeZoneId?: string; /** - * @member {Date} [createdDate] The creation date of the lab. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {NotificationSettingsFragment} [notificationSettings] Notification + * settings. */ - readonly createdDate?: Date; + notificationSettings?: NotificationSettingsFragment; /** - * @member {PremiumDataDisk} [premiumDataDisks] The setting to enable usage - * of premium data disks. - * When its value is 'Enabled', creation of standard or premium data disks is - * allowed. - * When its value is 'Disabled', only creation of standard data disks is - * allowed. Possible values include: 'Disabled', 'Enabled' + * @member {string} [targetResourceId] The resource ID to which the schedule + * belongs */ - premiumDataDisks?: PremiumDataDisk; + targetResourceId?: string; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {string} [name] The name of the virtual machine or environment + */ + name?: string; + /** + * @member {string} [location] The location of the new virtual machine or + * environment */ - provisioningState?: string; + location?: string; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {{ [propertyName: string]: string }} [tags] The tags of the + * resource. */ - uniqueIdentifier?: string; + tags?: { [propertyName: string]: string }; } /** * @interface - * An interface representing TargetCostProperties. - * Properties of a cost target. + * An interface representing LabVirtualMachineCreationParameterFragment. + * Properties for creating a virtual machine. * */ -export interface TargetCostProperties { +export interface LabVirtualMachineCreationParameterFragment { /** - * @member {TargetCostStatus} [status] Target cost status. Possible values - * include: 'Enabled', 'Disabled' + * @member {BulkCreationParametersFragment} [bulkCreationParameters] The + * number of virtual machine instances to create. */ - status?: TargetCostStatus; + bulkCreationParameters?: BulkCreationParametersFragment; /** - * @member {number} [target] Lab target cost + * @member {string} [notes] The notes of the virtual machine. */ - target?: number; + notes?: string; /** - * @member {CostThresholdProperties[]} [costThresholds] Cost thresholds. + * @member {string} [ownerObjectId] The object identifier of the owner of the + * virtual machine. */ - costThresholds?: CostThresholdProperties[]; + ownerObjectId?: string; /** - * @member {Date} [cycleStartDateTime] Reporting cycle start date. + * @member {string} [ownerUserPrincipalName] The user principal name of the + * virtual machine owner. */ - cycleStartDateTime?: Date; + ownerUserPrincipalName?: string; /** - * @member {Date} [cycleEndDateTime] Reporting cycle end date. + * @member {string} [createdByUserId] The object identifier of the creator of + * the virtual machine. */ - cycleEndDateTime?: Date; + createdByUserId?: string; /** - * @member {ReportingCycleType} [cycleType] Reporting cycle type. Possible - * values include: 'CalendarMonth', 'Custom' + * @member {string} [createdByUser] The email address of creator of the + * virtual machine. */ - cycleType?: ReportingCycleType; -} - -/** - * @interface - * An interface representing LabCostSummaryProperties. - * The properties of the cost summary. - * - */ -export interface LabCostSummaryProperties { + createdByUser?: string; /** - * @member {number} [estimatedLabCost] The cost component of the cost item. + * @member {Date} [createdDate] The creation date of the virtual machine. */ - estimatedLabCost?: number; -} - -/** - * @interface - * An interface representing LabCostDetailsProperties. - * The properties of a lab cost item. - * - */ -export interface LabCostDetailsProperties { + createdDate?: Date; /** - * @member {Date} [date] The date of the cost item. + * @member {string} [computeId] The resource identifier (Microsoft.Compute) + * of the virtual machine. */ - date?: Date; + computeId?: string; /** - * @member {number} [cost] The cost component of the cost item. + * @member {string} [customImageId] The custom image identifier of the + * virtual machine. */ - cost?: number; + customImageId?: string; /** - * @member {CostType} [costType] The type of the cost. Possible values - * include: 'Unavailable', 'Reported', 'Projected' + * @member {string} [osType] The OS type of the virtual machine. */ - costType?: CostType; -} - -/** - * @interface - * An interface representing LabResourceCostProperties. - * The properties of a resource cost item. - * - */ -export interface LabResourceCostProperties { + osType?: string; /** - * @member {string} [resourcename] The name of the resource. + * @member {string} [size] The size of the virtual machine. */ - resourcename?: string; + size?: string; /** - * @member {string} [resourceUId] The unique identifier of the resource. + * @member {string} [userName] The user name of the virtual machine. */ - resourceUId?: string; + userName?: string; /** - * @member {number} [resourceCost] The cost component of the resource cost - * item. + * @member {string} [password] The password of the virtual machine + * administrator. */ - resourceCost?: number; + password?: string; /** - * @member {string} [resourceType] The logical resource type (ex. - * virtualmachine, storageaccount) + * @member {string} [sshKey] The SSH key of the virtual machine + * administrator. */ - resourceType?: string; + sshKey?: string; /** - * @member {string} [resourceOwner] The owner of the resource (ex. - * janedoe@microsoft.com) + * @member {boolean} [isAuthenticationWithSshKey] Indicates whether this + * virtual machine uses an SSH key for authentication. */ - resourceOwner?: string; + isAuthenticationWithSshKey?: boolean; /** - * @member {string} [resourcePricingTier] The category of the resource (ex. - * Premium_LRS, Standard_DS1) + * @member {string} [fqdn] The fully-qualified domain name of the virtual + * machine. */ - resourcePricingTier?: string; + fqdn?: string; /** - * @member {string} [resourceStatus] The status of the resource (ex. Active) + * @member {string} [labSubnetName] The lab subnet name of the virtual + * machine. */ - resourceStatus?: string; + labSubnetName?: string; /** - * @member {string} [resourceId] The ID of the resource + * @member {string} [labVirtualNetworkId] The lab virtual network identifier + * of the virtual machine. */ - resourceId?: string; + labVirtualNetworkId?: string; /** - * @member {string} [externalResourceId] The ID of the external resource + * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual + * machine is to be created without a public IP address. */ - externalResourceId?: string; -} - -/** - * @interface - * An interface representing LabCost. - * A cost item. - * - * @extends Resource - */ -export interface LabCost extends Resource { + disallowPublicIpAddress?: boolean; /** - * @member {TargetCostProperties} [targetCost] The target cost properties + * @member {ArtifactInstallPropertiesFragment[]} [artifacts] The artifacts to + * be installed on the virtual machine. */ - targetCost?: TargetCostProperties; + artifacts?: ArtifactInstallPropertiesFragment[]; /** - * @member {LabCostSummaryProperties} [labCostSummary] The lab cost summary - * component of the cost data. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {ArtifactDeploymentStatusPropertiesFragment} + * [artifactDeploymentStatus] The artifact deployment status for the virtual + * machine. */ - readonly labCostSummary?: LabCostSummaryProperties; + artifactDeploymentStatus?: ArtifactDeploymentStatusPropertiesFragment; /** - * @member {LabCostDetailsProperties[]} [labCostDetails] The lab cost details - * component of the cost data. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {GalleryImageReferenceFragment} [galleryImageReference] The + * Microsoft Azure Marketplace image reference of the virtual machine. */ - readonly labCostDetails?: LabCostDetailsProperties[]; + galleryImageReference?: GalleryImageReferenceFragment; /** - * @member {LabResourceCostProperties[]} [resourceCosts] The resource cost - * component of the cost data. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [planId] The id of the plan associated with the virtual + * machine image */ - readonly resourceCosts?: LabResourceCostProperties[]; + planId?: string; /** - * @member {string} [currencyCode] The currency code of the cost. + * @member {NetworkInterfacePropertiesFragment} [networkInterface] The + * network interface properties. */ - currencyCode?: string; + networkInterface?: NetworkInterfacePropertiesFragment; /** - * @member {Date} [startDateTime] The start time of the cost data. + * @member {Date} [expirationDate] The expiration date for VM. */ - startDateTime?: Date; + expirationDate?: Date; /** - * @member {Date} [endDateTime] The end time of the cost data. + * @member {boolean} [allowClaim] Indicates whether another user can take + * ownership of the virtual machine */ - endDateTime?: Date; + allowClaim?: boolean; /** - * @member {Date} [createdDate] The creation date of the cost. + * @member {string} [storageType] Storage type to use for virtual machine + * (i.e. Standard, Premium). */ - createdDate?: Date; + storageType?: string; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {VirtualMachineCreationSource} [virtualMachineCreationSource] + * Tells source of creation of lab virtual machine. Output property only. + * Possible values include: 'FromCustomImage', 'FromGalleryImage' */ - provisioningState?: string; + virtualMachineCreationSource?: VirtualMachineCreationSource; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {string} [environmentId] The resource ID of the environment that + * contains this virtual machine, if any. */ - uniqueIdentifier?: string; -} - -/** - * @interface - * An interface representing LabFragment. - * A lab. - * - * @extends Resource - */ -export interface LabFragment extends Resource { + environmentId?: string; /** - * @member {StorageType} [labStorageType] Type of storage used by the lab. It - * can be either Premium or Standard. Default is Premium. Possible values - * include: 'Standard', 'Premium' + * @member {DataDiskPropertiesFragment[]} [dataDiskParameters] New or + * existing data disks to attach to the virtual machine after creation */ - labStorageType?: StorageType; + dataDiskParameters?: DataDiskPropertiesFragment[]; /** - * @member {PremiumDataDisk} [premiumDataDisks] The setting to enable usage - * of premium data disks. - * When its value is 'Enabled', creation of standard or premium data disks is - * allowed. - * When its value is 'Disabled', only creation of standard data disks is - * allowed. Possible values include: 'Disabled', 'Enabled' + * @member {ScheduleCreationParameterFragment[]} [scheduleParameters] Virtual + * Machine schedules to be created */ - premiumDataDisks?: PremiumDataDisk; + scheduleParameters?: ScheduleCreationParameterFragment[]; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {string} [lastKnownPowerState] Last known compute power state + * captured in DTL */ - provisioningState?: string; + lastKnownPowerState?: string; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {string} [name] The name of the virtual machine or environment + */ + name?: string; + /** + * @member {string} [location] The location of the new virtual machine or + * environment + */ + location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] The tags of the + * resource. */ - uniqueIdentifier?: string; + tags?: { [propertyName: string]: string }; } /** * @interface - * An interface representing LabVhd. - * Properties of a VHD in the lab. + * An interface representing FormulaPropertiesFromVmFragment. + * Information about a VM from which a formula is to be created. * */ -export interface LabVhd { +export interface FormulaPropertiesFromVmFragment { /** - * @member {string} [id] The URI to the VHD. + * @member {string} [labVmId] The identifier of the VM from which a formula + * is to be created. */ - id?: string; + labVmId?: string; } /** * @interface - * An interface representing LabVirtualMachine. - * A virtual machine. + * An interface representing FormulaFragment. + * A formula for creating a VM, specifying an image base and other parameters * - * @extends Resource + * @extends UpdateResource */ -export interface LabVirtualMachine extends Resource { +export interface FormulaFragment extends UpdateResource { /** - * @member {string} [notes] The notes of the virtual machine. + * @member {string} [description] The description of the formula. */ - notes?: string; + description?: string; /** - * @member {string} [ownerObjectId] The object identifier of the owner of the - * virtual machine. + * @member {string} [author] The author of the formula. */ - ownerObjectId?: string; + author?: string; /** - * @member {string} [ownerUserPrincipalName] The user principal name of the - * virtual machine owner. + * @member {string} [osType] The OS type of the formula. */ - ownerUserPrincipalName?: string; + osType?: string; /** - * @member {string} [createdByUserId] The object identifier of the creator of - * the virtual machine. + * @member {LabVirtualMachineCreationParameterFragment} [formulaContent] The + * content of the formula. */ - createdByUserId?: string; + formulaContent?: LabVirtualMachineCreationParameterFragment; /** - * @member {string} [createdByUser] The email address of creator of the - * virtual machine. + * @member {FormulaPropertiesFromVmFragment} [vm] Information about a VM from + * which a formula is to be created. */ - createdByUser?: string; + vm?: FormulaPropertiesFromVmFragment; +} + +/** + * @interface + * An interface representing GalleryImage. + * A gallery image. + * + * @extends Resource + */ +export interface GalleryImage extends Resource { /** - * @member {Date} [createdDate] The creation date of the virtual machine. + * @member {string} [author] The author of the gallery image. */ - createdDate?: Date; + author?: string; /** - * @member {string} [computeId] The resource identifier (Microsoft.Compute) - * of the virtual machine. + * @member {Date} [createdDate] The creation date of the gallery image. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly computeId?: string; + readonly createdDate?: Date; /** - * @member {string} [customImageId] The custom image identifier of the - * virtual machine. + * @member {string} [description] The description of the gallery image. */ - customImageId?: string; + description?: string; /** - * @member {string} [osType] The OS type of the virtual machine. + * @member {GalleryImageReference} [imageReference] The image reference of + * the gallery image. */ - osType?: string; + imageReference?: GalleryImageReference; /** - * @member {string} [size] The size of the virtual machine. + * @member {string} [icon] The icon of the gallery image. */ - size?: string; + icon?: string; /** - * @member {string} [userName] The user name of the virtual machine. + * @member {boolean} [enabled] Indicates whether this gallery image is + * enabled. */ - userName?: string; + enabled?: boolean; /** - * @member {string} [password] The password of the virtual machine - * administrator. + * @member {string} [planId] The third party plan that applies to this image */ - password?: string; + planId?: string; /** - * @member {string} [sshKey] The SSH key of the virtual machine - * administrator. + * @member {boolean} [isPlanAuthorized] Indicates if the plan has been + * authorized for programmatic deployment. */ - sshKey?: string; + isPlanAuthorized?: boolean; +} + +/** + * @interface + * An interface representing ParameterInfo. + * Information about an artifact's parameter. + * + */ +export interface ParameterInfo { /** - * @member {boolean} [isAuthenticationWithSshKey] Indicates whether this - * virtual machine uses an SSH key for authentication. + * @member {string} [name] The name of the artifact parameter. */ - isAuthenticationWithSshKey?: boolean; + name?: string; /** - * @member {string} [fqdn] The fully-qualified domain name of the virtual - * machine. + * @member {string} [value] The value of the artifact parameter. */ - fqdn?: string; + value?: string; +} + +/** + * @interface + * An interface representing GenerateArmTemplateRequest. + * Parameters for generating an ARM template for deploying artifacts. + * + */ +export interface GenerateArmTemplateRequest { /** - * @member {string} [labSubnetName] The lab subnet name of the virtual + * @member {string} [virtualMachineName] The resource name of the virtual * machine. */ - labSubnetName?: string; + virtualMachineName?: string; /** - * @member {string} [labVirtualNetworkId] The lab virtual network identifier - * of the virtual machine. + * @member {ParameterInfo[]} [parameters] The parameters of the ARM template. */ - labVirtualNetworkId?: string; + parameters?: ParameterInfo[]; /** - * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual - * machine is to be created without a public IP address. + * @member {string} [location] The location of the virtual machine. */ - disallowPublicIpAddress?: boolean; + location?: string; /** - * @member {ArtifactInstallProperties[]} [artifacts] The artifacts to be - * installed on the virtual machine. + * @member {FileUploadOptions} [fileUploadOptions] Options for uploading the + * files for the artifact. UploadFilesAndGenerateSasTokens is the default + * value. Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' */ - artifacts?: ArtifactInstallProperties[]; + fileUploadOptions?: FileUploadOptions; +} + +/** + * @interface + * An interface representing GenerateUploadUriParameter. + * Properties for generating an upload URI. + * + */ +export interface GenerateUploadUriParameter { /** - * @member {ArtifactDeploymentStatusProperties} [artifactDeploymentStatus] - * The artifact deployment status for the virtual machine. + * @member {string} [blobName] The blob name of the upload URI. */ - artifactDeploymentStatus?: ArtifactDeploymentStatusProperties; + blobName?: string; +} + +/** + * @interface + * An interface representing GenerateUploadUriResponse. + * Reponse body for generating an upload URI. + * + */ +export interface GenerateUploadUriResponse { /** - * @member {GalleryImageReference} [galleryImageReference] The Microsoft - * Azure Marketplace image reference of the virtual machine. + * @member {string} [uploadUri] The upload URI for the VHD. */ - galleryImageReference?: GalleryImageReference; + uploadUri?: string; +} + +/** + * @interface + * An interface representing IdentityProperties. + * Properties of a managed identity + * + */ +export interface IdentityProperties { /** - * @member {ComputeVmProperties} [computeVm] The compute virtual machine - * properties. + * @member {string} [type] Managed identity. */ - computeVm?: ComputeVmProperties; + type?: string; /** - * @member {NetworkInterfaceProperties} [networkInterface] The network - * interface properties. + * @member {string} [principalId] The principal id of resource identity. */ - networkInterface?: NetworkInterfaceProperties; + principalId?: string; /** - * @member {ApplicableSchedule} [applicableSchedule] The applicable schedule - * for the virtual machine. + * @member {string} [tenantId] The tenant identifier of resource. */ - applicableSchedule?: ApplicableSchedule; + tenantId?: string; /** - * @member {Date} [expirationDate] The expiration date for VM. + * @member {string} [clientSecretUrl] The client secret URL of the identity. */ - expirationDate?: Date; + clientSecretUrl?: string; +} + +/** + * @interface + * An interface representing ImportLabVirtualMachineRequest. + * This represents the payload required to import a virtual machine from a + * different lab into the current one + * + */ +export interface ImportLabVirtualMachineRequest { /** - * @member {boolean} [allowClaim] Indicates whether another user can take - * ownership of the virtual machine + * @member {string} [sourceVirtualMachineResourceId] The full resource ID of + * the virtual machine to be imported. */ - allowClaim?: boolean; + sourceVirtualMachineResourceId?: string; /** - * @member {string} [storageType] Storage type to use for virtual machine - * (i.e. Standard, Premium). + * @member {string} [destinationVirtualMachineName] The name of the virtual + * machine in the destination lab */ - storageType?: string; + destinationVirtualMachineName?: string; +} + +/** + * @interface + * An interface representing LabAnnouncementProperties. + * Properties of a lab's announcement banner + * + */ +export interface LabAnnouncementProperties { /** - * @member {VirtualMachineCreationSource} [virtualMachineCreationSource] - * Tells source of creation of lab virtual machine. Output property only. - * Possible values include: 'FromCustomImage', 'FromGalleryImage' + * @member {string} [title] The plain text title for the lab announcement */ - virtualMachineCreationSource?: VirtualMachineCreationSource; + title?: string; /** - * @member {string} [environmentId] The resource ID of the environment that - * contains this virtual machine, if any. + * @member {string} [markdown] The markdown text (if any) that this lab + * displays in the UI. If left empty/null, nothing will be shown. */ - environmentId?: string; + markdown?: string; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {EnableStatus} [enabled] Is the lab announcement active/enabled at + * this time?. Possible values include: 'Enabled', 'Disabled' */ - provisioningState?: string; + enabled?: EnableStatus; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {Date} [expirationDate] The time at which the announcement expires + * (null for never) */ - uniqueIdentifier?: string; -} - -/** - * @interface - * An interface representing SharedPublicIpAddressConfigurationFragment. - * Properties of a virtual machine that determine how it is connected to a load - * balancer. - * - */ -export interface SharedPublicIpAddressConfigurationFragment { + expirationDate?: Date; /** - * @member {InboundNatRuleFragment[]} [inboundNatRules] The incoming NAT - * rules + * @member {boolean} [expired] Has this announcement expired? */ - inboundNatRules?: InboundNatRuleFragment[]; + expired?: boolean; + /** + * @member {string} [provisioningState] The provisioning status of the + * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly uniqueIdentifier?: string; } /** * @interface - * An interface representing NetworkInterfacePropertiesFragment. - * Properties of a network interface. + * An interface representing LabSupportProperties. + * Properties of a lab's support banner * */ -export interface NetworkInterfacePropertiesFragment { - /** - * @member {string} [virtualNetworkId] The resource ID of the virtual - * network. - */ - virtualNetworkId?: string; +export interface LabSupportProperties { /** - * @member {string} [subnetId] The resource ID of the sub net. - */ - subnetId?: string; - /** - * @member {string} [publicIpAddressId] The resource ID of the public IP - * address. - */ - publicIpAddressId?: string; - /** - * @member {string} [publicIpAddress] The public IP address. - */ - publicIpAddress?: string; - /** - * @member {string} [privateIpAddress] The private IP address. - */ - privateIpAddress?: string; - /** - * @member {string} [dnsName] The DNS name. - */ - dnsName?: string; - /** - * @member {string} [rdpAuthority] The RdpAuthority property is a server DNS - * host name or IP address followed by the service port number for RDP - * (Remote Desktop Protocol). + * @member {EnableStatus} [enabled] Is the lab support banner active/enabled + * at this time?. Possible values include: 'Enabled', 'Disabled' */ - rdpAuthority?: string; - /** - * @member {string} [sshAuthority] The SshAuthority property is a server DNS - * host name or IP address followed by the service port number for SSH. - */ - sshAuthority?: string; + enabled?: EnableStatus; /** - * @member {SharedPublicIpAddressConfigurationFragment} - * [sharedPublicIpAddressConfiguration] The configuration for sharing a - * public IP address across multiple virtual machines. + * @member {string} [markdown] The markdown text (if any) that this lab + * displays in the UI. If left empty/null, nothing will be shown. */ - sharedPublicIpAddressConfiguration?: SharedPublicIpAddressConfigurationFragment; + markdown?: string; } /** * @interface - * An interface representing LabVirtualMachineFragment. - * A virtual machine. + * An interface representing Lab. + * A lab. * * @extends Resource */ -export interface LabVirtualMachineFragment extends Resource { +export interface Lab extends Resource { /** - * @member {string} [notes] The notes of the virtual machine. + * @member {string} [defaultStorageAccount] The lab's default storage + * account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - notes?: string; + readonly defaultStorageAccount?: string; /** - * @member {string} [ownerObjectId] The object identifier of the owner of the - * virtual machine. + * @member {string} [defaultPremiumStorageAccount] The lab's default premium + * storage account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - ownerObjectId?: string; + readonly defaultPremiumStorageAccount?: string; /** - * @member {string} [ownerUserPrincipalName] The user principal name of the - * virtual machine owner. + * @member {string} [artifactsStorageAccount] The lab's artifact storage + * account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - ownerUserPrincipalName?: string; + readonly artifactsStorageAccount?: string; /** - * @member {string} [createdByUserId] The object identifier of the creator of - * the virtual machine. + * @member {string} [premiumDataDiskStorageAccount] The lab's premium data + * disk storage account. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - createdByUserId?: string; + readonly premiumDataDiskStorageAccount?: string; /** - * @member {string} [createdByUser] The email address of creator of the - * virtual machine. + * @member {string} [vaultName] The lab's Key vault. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - createdByUser?: string; + readonly vaultName?: string; /** - * @member {Date} [createdDate] The creation date of the virtual machine. + * @member {StorageType} [labStorageType] Type of storage used by the lab. It + * can be either Premium or Standard. Default is Premium. Possible values + * include: 'Standard', 'Premium' */ - createdDate?: Date; + labStorageType?: StorageType; /** - * @member {string} [customImageId] The custom image identifier of the - * virtual machine. + * @member {string[]} [mandatoryArtifactsResourceIdsLinux] The ordered list + * of artifact resource IDs that should be applied on all Linux VM creations + * by default, prior to the artifacts specified by the user. */ - customImageId?: string; + mandatoryArtifactsResourceIdsLinux?: string[]; /** - * @member {string} [osType] The OS type of the virtual machine. + * @member {string[]} [mandatoryArtifactsResourceIdsWindows] The ordered list + * of artifact resource IDs that should be applied on all Windows VM + * creations by default, prior to the artifacts specified by the user. */ - osType?: string; + mandatoryArtifactsResourceIdsWindows?: string[]; /** - * @member {string} [size] The size of the virtual machine. + * @member {Date} [createdDate] The creation date of the lab. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - size?: string; + readonly createdDate?: Date; /** - * @member {string} [userName] The user name of the virtual machine. + * @member {PremiumDataDisk} [premiumDataDisks] The setting to enable usage + * of premium data disks. + * When its value is 'Enabled', creation of standard or premium data disks is + * allowed. + * When its value is 'Disabled', only creation of standard data disks is + * allowed. Possible values include: 'Disabled', 'Enabled' */ - userName?: string; + premiumDataDisks?: PremiumDataDisk; /** - * @member {string} [password] The password of the virtual machine - * administrator. + * @member {EnvironmentPermission} [environmentPermission] The access rights + * to be granted to the user when provisioning an environment. Possible + * values include: 'Reader', 'Contributor' */ - password?: string; + environmentPermission?: EnvironmentPermission; /** - * @member {string} [sshKey] The SSH key of the virtual machine - * administrator. + * @member {LabAnnouncementProperties} [announcement] The properties of any + * lab announcement associated with this lab */ - sshKey?: string; + announcement?: LabAnnouncementProperties; /** - * @member {boolean} [isAuthenticationWithSshKey] Indicates whether this - * virtual machine uses an SSH key for authentication. + * @member {LabSupportProperties} [support] The properties of any lab support + * message associated with this lab */ - isAuthenticationWithSshKey?: boolean; + support?: LabSupportProperties; /** - * @member {string} [fqdn] The fully-qualified domain name of the virtual - * machine. + * @member {string} [vmCreationResourceGroup] The resource group in which lab + * virtual machines will be created in. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - fqdn?: string; + readonly vmCreationResourceGroup?: string; /** - * @member {string} [labSubnetName] The lab subnet name of the virtual - * machine. + * @member {string} [publicIpId] The public IP address for the lab's load + * balancer. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - labSubnetName?: string; + readonly publicIpId?: string; /** - * @member {string} [labVirtualNetworkId] The lab virtual network identifier - * of the virtual machine. + * @member {string} [loadBalancerId] The load balancer used to for lab VMs + * that use shared IP address. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - labVirtualNetworkId?: string; + readonly loadBalancerId?: string; /** - * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual - * machine is to be created without a public IP address. + * @member {string} [networkSecurityGroupId] The Network Security Group + * attached to the lab VMs Network interfaces to restrict open ports. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - disallowPublicIpAddress?: boolean; + readonly networkSecurityGroupId?: string; /** - * @member {ArtifactInstallPropertiesFragment[]} [artifacts] The artifacts to - * be installed on the virtual machine. + * @member {{ [propertyName: string]: string }} [extendedProperties] Extended + * properties of the lab used for experimental features */ - artifacts?: ArtifactInstallPropertiesFragment[]; + extendedProperties?: { [propertyName: string]: string }; /** - * @member {ArtifactDeploymentStatusPropertiesFragment} - * [artifactDeploymentStatus] The artifact deployment status for the virtual - * machine. + * @member {string} [provisioningState] The provisioning status of the + * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - artifactDeploymentStatus?: ArtifactDeploymentStatusPropertiesFragment; + readonly provisioningState?: string; /** - * @member {GalleryImageReferenceFragment} [galleryImageReference] The - * Microsoft Azure Marketplace image reference of the virtual machine. + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - galleryImageReference?: GalleryImageReferenceFragment; + readonly uniqueIdentifier?: string; +} + +/** + * @interface + * An interface representing LabAnnouncementPropertiesFragment. + * Properties of a lab's announcement banner + * + */ +export interface LabAnnouncementPropertiesFragment { /** - * @member {ComputeVmPropertiesFragment} [computeVm] The compute virtual - * machine properties. + * @member {string} [title] The plain text title for the lab announcement */ - computeVm?: ComputeVmPropertiesFragment; + title?: string; /** - * @member {NetworkInterfacePropertiesFragment} [networkInterface] The - * network interface properties. + * @member {string} [markdown] The markdown text (if any) that this lab + * displays in the UI. If left empty/null, nothing will be shown. */ - networkInterface?: NetworkInterfacePropertiesFragment; + markdown?: string; /** - * @member {ApplicableScheduleFragment} [applicableSchedule] The applicable - * schedule for the virtual machine. + * @member {EnableStatus} [enabled] Is the lab announcement active/enabled at + * this time?. Possible values include: 'Enabled', 'Disabled' */ - applicableSchedule?: ApplicableScheduleFragment; + enabled?: EnableStatus; /** - * @member {Date} [expirationDate] The expiration date for VM. + * @member {Date} [expirationDate] The time at which the announcement expires + * (null for never) */ expirationDate?: Date; /** - * @member {boolean} [allowClaim] Indicates whether another user can take - * ownership of the virtual machine - */ - allowClaim?: boolean; - /** - * @member {string} [storageType] Storage type to use for virtual machine - * (i.e. Standard, Premium). - */ - storageType?: string; - /** - * @member {VirtualMachineCreationSource} [virtualMachineCreationSource] - * Tells source of creation of lab virtual machine. Output property only. - * Possible values include: 'FromCustomImage', 'FromGalleryImage' - */ - virtualMachineCreationSource?: VirtualMachineCreationSource; - /** - * @member {string} [environmentId] The resource ID of the environment that - * contains this virtual machine, if any. - */ - environmentId?: string; - /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - */ - provisioningState?: string; - /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {boolean} [expired] Has this announcement expired? */ - uniqueIdentifier?: string; + expired?: boolean; } /** * @interface - * An interface representing NotificationChannel. - * A notification. + * An interface representing TargetCostProperties. + * Properties of a cost target. * - * @extends Resource */ -export interface NotificationChannel extends Resource { +export interface TargetCostProperties { /** - * @member {string} [webHookUrl] The webhook URL to send notifications to. + * @member {TargetCostStatus} [status] Target cost status. Possible values + * include: 'Enabled', 'Disabled' */ - webHookUrl?: string; + status?: TargetCostStatus; /** - * @member {string} [description] Description of notification. + * @member {number} [target] Lab target cost */ - description?: string; + target?: number; /** - * @member {Event[]} [events] The list of event for which this notification - * is enabled. + * @member {CostThresholdProperties[]} [costThresholds] Cost thresholds. */ - events?: Event[]; + costThresholds?: CostThresholdProperties[]; /** - * @member {Date} [createdDate] The creation date of the notification - * channel. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {Date} [cycleStartDateTime] Reporting cycle start date. */ - readonly createdDate?: Date; + cycleStartDateTime?: Date; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {Date} [cycleEndDateTime] Reporting cycle end date. */ - provisioningState?: string; + cycleEndDateTime?: Date; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {ReportingCycleType} [cycleType] Reporting cycle type. Possible + * values include: 'CalendarMonth', 'Custom' */ - uniqueIdentifier?: string; + cycleType?: ReportingCycleType; } /** * @interface - * An interface representing NotificationChannelFragment. - * A notification. + * An interface representing LabCostSummaryProperties. + * The properties of the cost summary. * - * @extends Resource */ -export interface NotificationChannelFragment extends Resource { - /** - * @member {string} [webHookUrl] The webhook URL to send notifications to. - */ - webHookUrl?: string; - /** - * @member {string} [description] Description of notification. - */ - description?: string; - /** - * @member {EventFragment[]} [events] The list of event for which this - * notification is enabled. - */ - events?: EventFragment[]; - /** - * @member {string} [provisioningState] The provisioning status of the - * resource. - */ - provisioningState?: string; +export interface LabCostSummaryProperties { /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {number} [estimatedLabCost] The cost component of the cost item. */ - uniqueIdentifier?: string; + estimatedLabCost?: number; } /** * @interface - * An interface representing NotifyParameters. - * Properties for generating a Notification. + * An interface representing LabCostDetailsProperties. + * The properties of a lab cost item. * */ -export interface NotifyParameters { - /** - * @member {NotificationChannelEventType} [eventName] The type of event (i.e. - * AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost' - */ - eventName?: NotificationChannelEventType; +export interface LabCostDetailsProperties { /** - * @member {string} [jsonPayload] Properties for the notification in json - * format. + * @member {Date} [date] The date of the cost item. */ - jsonPayload?: string; -} - -/** - * @interface - * An interface representing OperationError. - * Error details for the operation in case of a failure. - * - */ -export interface OperationError { + date?: Date; /** - * @member {string} [code] The error code of the operation error. + * @member {number} [cost] The cost component of the cost item. */ - code?: string; + cost?: number; /** - * @member {string} [message] The error message of the operation error. + * @member {CostType} [costType] The type of the cost. Possible values + * include: 'Unavailable', 'Reported', 'Projected' */ - message?: string; + costType?: CostType; } /** * @interface - * An interface representing OperationMetadataDisplay. - * The object that describes the operations + * An interface representing LabResourceCostProperties. + * The properties of a resource cost item. * */ -export interface OperationMetadataDisplay { +export interface LabResourceCostProperties { /** - * @member {string} [provider] Friendly name of the resource provider + * @member {string} [resourcename] The name of the resource. */ - provider?: string; + resourcename?: string; /** - * @member {string} [resource] Resource type on which the operation is - * performed. + * @member {string} [resourceUId] The unique identifier of the resource. */ - resource?: string; + resourceUId?: string; /** - * @member {string} [operation] Operation type: read, write, delete, - * listKeys/action, etc. + * @member {number} [resourceCost] The cost component of the resource cost + * item. */ - operation?: string; + resourceCost?: number; /** - * @member {string} [description] Friendly name of the operation + * @member {string} [resourceType] The logical resource type (ex. + * virtualmachine, storageaccount) */ - description?: string; -} - -/** - * @interface - * An interface representing OperationMetadata. - * The REST API operation supported by DevTestLab ResourceProvider. - * - */ -export interface OperationMetadata { + resourceType?: string; /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * @member {string} [resourceOwner] The owner of the resource (ex. + * janedoe@microsoft.com) */ - name?: string; + resourceOwner?: string; /** - * @member {OperationMetadataDisplay} [display] The object that describes the - * operations + * @member {string} [resourcePricingTier] The category of the resource (ex. + * Premium_LRS, Standard_DS1) */ - display?: OperationMetadataDisplay; -} - -/** - * @interface - * An interface representing OperationResult. - * An Operation Result - * - */ -export interface OperationResult { + resourcePricingTier?: string; /** - * @member {string} [status] The operation status. + * @member {string} [resourceStatus] The status of the resource (ex. Active) */ - status?: string; + resourceStatus?: string; /** - * @member {HttpStatusCode} [statusCode] The status code for the operation. - * Possible values include: 'Continue', 'SwitchingProtocols', 'OK', - * 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', - * 'ResetContent', 'PartialContent', 'MultipleChoices', 'MovedPermanently', - * 'Redirect', 'SeeOther', 'NotModified', 'UseProxy', 'Unused', - * 'TemporaryRedirect', 'BadRequest', 'Unauthorized', 'PaymentRequired', - * 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', - * 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone', - * 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge', - * 'RequestUriTooLong', 'UnsupportedMediaType', - * 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', - * 'InternalServerError', 'NotImplemented', 'BadGateway', - * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' + * @member {string} [resourceId] The ID of the resource */ - statusCode?: HttpStatusCode; + resourceId?: string; /** - * @member {OperationError} [error] Error details for the operation in case - * of a failure. + * @member {string} [externalResourceId] The ID of the external resource */ - error?: OperationError; + externalResourceId?: string; } /** * @interface - * An interface representing Policy. - * A Policy. + * An interface representing LabCost. + * A cost item. * * @extends Resource */ -export interface Policy extends Resource { +export interface LabCost extends Resource { /** - * @member {string} [description] The description of the policy. + * @member {TargetCostProperties} [targetCost] The target cost properties */ - description?: string; + targetCost?: TargetCostProperties; /** - * @member {PolicyStatus} [status] The status of the policy. Possible values - * include: 'Enabled', 'Disabled' + * @member {LabCostSummaryProperties} [labCostSummary] The lab cost summary + * component of the cost data. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - status?: PolicyStatus; + readonly labCostSummary?: LabCostSummaryProperties; /** - * @member {PolicyFactName} [factName] The fact name of the policy (e.g. - * LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: - * 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', - * 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', - * 'UserOwnedLabVmCountInSubnet', 'LabTargetCost' + * @member {LabCostDetailsProperties[]} [labCostDetails] The lab cost details + * component of the cost data. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - factName?: PolicyFactName; + readonly labCostDetails?: LabCostDetailsProperties[]; /** - * @member {string} [factData] The fact data of the policy. + * @member {LabResourceCostProperties[]} [resourceCosts] The resource cost + * component of the cost data. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - factData?: string; + readonly resourceCosts?: LabResourceCostProperties[]; /** - * @member {string} [threshold] The threshold of the policy (i.e. a number - * for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). + * @member {string} [currencyCode] The currency code of the cost. */ - threshold?: string; + currencyCode?: string; /** - * @member {PolicyEvaluatorType} [evaluatorType] The evaluator type of the - * policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values - * include: 'AllowedValuesPolicy', 'MaxValuePolicy' + * @member {Date} [startDateTime] The start time of the cost data. */ - evaluatorType?: PolicyEvaluatorType; + startDateTime?: Date; /** - * @member {Date} [createdDate] The creation date of the policy. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {Date} [endDateTime] The end time of the cost data. */ - readonly createdDate?: Date; + endDateTime?: Date; + /** + * @member {Date} [createdDate] The creation date of the cost. + */ + createdDate?: Date; /** * @member {string} [provisioningState] The provisioning status of the * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - provisioningState?: string; + readonly provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - uniqueIdentifier?: string; + readonly uniqueIdentifier?: string; } /** * @interface - * An interface representing PolicyFragment. - * A Policy. + * An interface representing LabSupportPropertiesFragment. + * Properties of a lab's support banner * - * @extends Resource */ -export interface PolicyFragment extends Resource { +export interface LabSupportPropertiesFragment { /** - * @member {string} [description] The description of the policy. + * @member {EnableStatus} [enabled] Is the lab support banner active/enabled + * at this time?. Possible values include: 'Enabled', 'Disabled' */ - description?: string; + enabled?: EnableStatus; /** - * @member {PolicyStatus} [status] The status of the policy. Possible values - * include: 'Enabled', 'Disabled' + * @member {string} [markdown] The markdown text (if any) that this lab + * displays in the UI. If left empty/null, nothing will be shown. */ - status?: PolicyStatus; + markdown?: string; +} + +/** + * @interface + * An interface representing LabFragment. + * A lab. + * + * @extends UpdateResource + */ +export interface LabFragment extends UpdateResource { /** - * @member {PolicyFactName} [factName] The fact name of the policy (e.g. - * LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: - * 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', - * 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', - * 'UserOwnedLabVmCountInSubnet', 'LabTargetCost' + * @member {StorageType} [labStorageType] Type of storage used by the lab. It + * can be either Premium or Standard. Default is Premium. Possible values + * include: 'Standard', 'Premium' */ - factName?: PolicyFactName; + labStorageType?: StorageType; /** - * @member {string} [factData] The fact data of the policy. + * @member {string[]} [mandatoryArtifactsResourceIdsLinux] The ordered list + * of artifact resource IDs that should be applied on all Linux VM creations + * by default, prior to the artifacts specified by the user. */ - factData?: string; + mandatoryArtifactsResourceIdsLinux?: string[]; /** - * @member {string} [threshold] The threshold of the policy (i.e. a number - * for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). + * @member {string[]} [mandatoryArtifactsResourceIdsWindows] The ordered list + * of artifact resource IDs that should be applied on all Windows VM + * creations by default, prior to the artifacts specified by the user. */ - threshold?: string; + mandatoryArtifactsResourceIdsWindows?: string[]; /** - * @member {PolicyEvaluatorType} [evaluatorType] The evaluator type of the - * policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values - * include: 'AllowedValuesPolicy', 'MaxValuePolicy' + * @member {PremiumDataDisk} [premiumDataDisks] The setting to enable usage + * of premium data disks. + * When its value is 'Enabled', creation of standard or premium data disks is + * allowed. + * When its value is 'Disabled', only creation of standard data disks is + * allowed. Possible values include: 'Disabled', 'Enabled' */ - evaluatorType?: PolicyEvaluatorType; + premiumDataDisks?: PremiumDataDisk; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {EnvironmentPermission} [environmentPermission] The access rights + * to be granted to the user when provisioning an environment. Possible + * values include: 'Reader', 'Contributor' */ - provisioningState?: string; + environmentPermission?: EnvironmentPermission; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {LabAnnouncementPropertiesFragment} [announcement] The properties + * of any lab announcement associated with this lab + */ + announcement?: LabAnnouncementPropertiesFragment; + /** + * @member {LabSupportPropertiesFragment} [support] The properties of any lab + * support message associated with this lab */ - uniqueIdentifier?: string; + support?: LabSupportPropertiesFragment; + /** + * @member {{ [propertyName: string]: string }} [extendedProperties] Extended + * properties of the lab used for experimental features + */ + extendedProperties?: { [propertyName: string]: string }; } /** * @interface - * An interface representing Port. - * Properties of a network port. + * An interface representing LabVhd. + * Properties of a VHD in the lab. * */ -export interface Port { +export interface LabVhd { /** - * @member {TransportProtocol} [transportProtocol] Protocol type of the port. - * Possible values include: 'Tcp', 'Udp' - */ - transportProtocol?: TransportProtocol; - /** - * @member {number} [backendPort] Backend port of the target virtual machine. + * @member {string} [id] The URI to the VHD. */ - backendPort?: number; + id?: string; } /** * @interface - * An interface representing PortFragment. - * Properties of a network port. + * An interface representing LabVirtualMachine. + * A virtual machine. * + * @extends Resource */ -export interface PortFragment { +export interface LabVirtualMachine extends Resource { /** - * @member {TransportProtocol} [transportProtocol] Protocol type of the port. - * Possible values include: 'Tcp', 'Udp' + * @member {string} [notes] The notes of the virtual machine. */ - transportProtocol?: TransportProtocol; + notes?: string; /** - * @member {number} [backendPort] Backend port of the target virtual machine. + * @member {string} [ownerObjectId] The object identifier of the owner of the + * virtual machine. */ - backendPort?: number; -} - -/** - * @interface - * An interface representing RetargetScheduleProperties. - * Properties for retargeting a virtual machine schedule. - * - */ -export interface RetargetScheduleProperties { + ownerObjectId?: string; /** - * @member {string} [currentResourceId] The resource Id of the virtual - * machine on which the schedule operates + * @member {string} [ownerUserPrincipalName] The user principal name of the + * virtual machine owner. */ - currentResourceId?: string; + ownerUserPrincipalName?: string; /** - * @member {string} [targetResourceId] The resource Id of the virtual machine - * that the schedule should be retargeted to + * @member {string} [createdByUserId] The object identifier of the creator of + * the virtual machine. */ - targetResourceId?: string; -} - -/** - * @interface - * An interface representing Secret. - * A secret. - * - * @extends Resource - */ -export interface Secret extends Resource { + createdByUserId?: string; /** - * @member {string} [value] The value of the secret for secret creation. + * @member {string} [createdByUser] The email address of creator of the + * virtual machine. */ - value?: string; + createdByUser?: string; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {Date} [createdDate] The creation date of the virtual machine. */ - provisioningState?: string; + createdDate?: Date; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {string} [computeId] The resource identifier (Microsoft.Compute) + * of the virtual machine. */ - uniqueIdentifier?: string; -} - -/** - * @interface - * An interface representing ServiceRunner. - * A container for a managed identity to execute DevTest lab services. - * - * @extends Resource - */ -export interface ServiceRunner extends Resource { + computeId?: string; /** - * @member {IdentityProperties} [identity] The identity of the resource. + * @member {string} [customImageId] The custom image identifier of the + * virtual machine. */ - identity?: IdentityProperties; -} - -/** - * @interface - * An interface representing ShutdownNotificationContent. - * The contents of a shutdown notification. Webhooks can use this type to - * deserialize the request body when they get notified of an imminent shutdown. - * - */ -export interface ShutdownNotificationContent { + customImageId?: string; /** - * @member {string} [skipUrl] The URL to skip auto-shutdown. + * @member {string} [osType] The OS type of the virtual machine. */ - skipUrl?: string; + osType?: string; /** - * @member {string} [delayUrl60] The URL to delay shutdown by 60 minutes. + * @member {string} [size] The size of the virtual machine. */ - delayUrl60?: string; + size?: string; /** - * @member {string} [delayUrl120] The URL to delay shutdown by 2 hours. + * @member {string} [userName] The user name of the virtual machine. */ - delayUrl120?: string; + userName?: string; /** - * @member {string} [vmName] The virtual machine to be shut down. + * @member {string} [password] The password of the virtual machine + * administrator. */ - vmName?: string; + password?: string; /** - * @member {string} [guid] The GUID for the virtual machine to be shut down. + * @member {string} [sshKey] The SSH key of the virtual machine + * administrator. */ - guid?: string; + sshKey?: string; /** - * @member {string} [owner] The owner of the virtual machine. + * @member {boolean} [isAuthenticationWithSshKey] Indicates whether this + * virtual machine uses an SSH key for authentication. */ - owner?: string; + isAuthenticationWithSshKey?: boolean; /** - * @member {string} [eventType] The event for which a notification will be - * sent. + * @member {string} [fqdn] The fully-qualified domain name of the virtual + * machine. */ - eventType?: string; + fqdn?: string; /** - * @member {string} [text] The text for the notification. + * @member {string} [labSubnetName] The lab subnet name of the virtual + * machine. */ - text?: string; + labSubnetName?: string; /** - * @member {string} [subscriptionId] The subscription ID for the schedule. + * @member {string} [labVirtualNetworkId] The lab virtual network identifier + * of the virtual machine. */ - subscriptionId?: string; + labVirtualNetworkId?: string; /** - * @member {string} [resourceGroupName] The resource group name for the - * schedule. + * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual + * machine is to be created without a public IP address. */ - resourceGroupName?: string; + disallowPublicIpAddress?: boolean; /** - * @member {string} [labName] The lab for the schedule. + * @member {ArtifactInstallProperties[]} [artifacts] The artifacts to be + * installed on the virtual machine. */ - labName?: string; -} - -/** - * @interface - * An interface representing Subnet. - * Subnet information. - * - */ -export interface Subnet { + artifacts?: ArtifactInstallProperties[]; /** - * @member {string} [resourceId] The resource ID of the subnet. + * @member {ArtifactDeploymentStatusProperties} [artifactDeploymentStatus] + * The artifact deployment status for the virtual machine. */ - resourceId?: string; + artifactDeploymentStatus?: ArtifactDeploymentStatusProperties; /** - * @member {string} [labSubnetName] The name of the subnet as seen in the - * lab. + * @member {GalleryImageReference} [galleryImageReference] The Microsoft + * Azure Marketplace image reference of the virtual machine. */ - labSubnetName?: string; + galleryImageReference?: GalleryImageReference; /** - * @member {UsagePermissionType} [allowPublicIp] The permission policy of the - * subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible - * values include: 'Default', 'Deny', 'Allow' + * @member {string} [planId] The id of the plan associated with the virtual + * machine image */ - allowPublicIp?: UsagePermissionType; -} - -/** - * @interface - * An interface representing SubnetFragment. - * Subnet information. - * - */ -export interface SubnetFragment { + planId?: string; /** - * @member {string} [resourceId] The resource ID of the subnet. + * @member {ComputeVmProperties} [computeVm] The compute virtual machine + * properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - resourceId?: string; + readonly computeVm?: ComputeVmProperties; /** - * @member {string} [labSubnetName] The name of the subnet as seen in the - * lab. + * @member {NetworkInterfaceProperties} [networkInterface] The network + * interface properties. */ - labSubnetName?: string; + networkInterface?: NetworkInterfaceProperties; /** - * @member {UsagePermissionType} [allowPublicIp] The permission policy of the - * subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible - * values include: 'Default', 'Deny', 'Allow' + * @member {ApplicableSchedule} [applicableSchedule] The applicable schedule + * for the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - allowPublicIp?: UsagePermissionType; -} - -/** - * @interface - * An interface representing SubnetSharedPublicIpAddressConfiguration. - * Configuration for public IP address sharing. - * - */ -export interface SubnetSharedPublicIpAddressConfiguration { + readonly applicableSchedule?: ApplicableSchedule; /** - * @member {Port[]} [allowedPorts] Backend ports that virtual machines on - * this subnet are allowed to expose + * @member {Date} [expirationDate] The expiration date for VM. */ - allowedPorts?: Port[]; -} - -/** - * @interface - * An interface representing SubnetOverride. - * Property overrides on a subnet of a virtual network. - * - */ -export interface SubnetOverride { + expirationDate?: Date; /** - * @member {string} [resourceId] The resource ID of the subnet. + * @member {boolean} [allowClaim] Indicates whether another user can take + * ownership of the virtual machine */ - resourceId?: string; + allowClaim?: boolean; /** - * @member {string} [labSubnetName] The name given to the subnet within the - * lab. + * @member {string} [storageType] Storage type to use for virtual machine + * (i.e. Standard, Premium). */ - labSubnetName?: string; + storageType?: string; /** - * @member {UsagePermissionType} [useInVmCreationPermission] Indicates - * whether this subnet can be used during virtual machine creation (i.e. - * Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow' + * @member {VirtualMachineCreationSource} [virtualMachineCreationSource] + * Tells source of creation of lab virtual machine. Output property only. + * Possible values include: 'FromCustomImage', 'FromGalleryImage' */ - useInVmCreationPermission?: UsagePermissionType; + virtualMachineCreationSource?: VirtualMachineCreationSource; /** - * @member {UsagePermissionType} [usePublicIpAddressPermission] Indicates - * whether public IP addresses can be assigned to virtual machines on this - * subnet (i.e. Allow, Deny). Possible values include: 'Default', 'Deny', - * 'Allow' + * @member {string} [environmentId] The resource ID of the environment that + * contains this virtual machine, if any. */ - usePublicIpAddressPermission?: UsagePermissionType; + environmentId?: string; /** - * @member {SubnetSharedPublicIpAddressConfiguration} - * [sharedPublicIpAddressConfiguration] Properties that virtual machines on - * this subnet will share. + * @member {DataDiskProperties[]} [dataDiskParameters] New or existing data + * disks to attach to the virtual machine after creation */ - sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfiguration; + dataDiskParameters?: DataDiskProperties[]; /** - * @member {string} [virtualNetworkPoolName] The virtual network pool - * associated with this subnet. + * @member {ScheduleCreationParameter[]} [scheduleParameters] Virtual Machine + * schedules to be created */ - virtualNetworkPoolName?: string; -} - -/** - * @interface - * An interface representing SubnetSharedPublicIpAddressConfigurationFragment. - * Configuration for public IP address sharing. - * - */ -export interface SubnetSharedPublicIpAddressConfigurationFragment { + scheduleParameters?: ScheduleCreationParameter[]; /** - * @member {PortFragment[]} [allowedPorts] Backend ports that virtual - * machines on this subnet are allowed to expose + * @member {string} [lastKnownPowerState] Last known compute power state + * captured in DTL */ - allowedPorts?: PortFragment[]; + lastKnownPowerState?: string; + /** + * @member {string} [provisioningState] The provisioning status of the + * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly uniqueIdentifier?: string; } /** * @interface - * An interface representing SubnetOverrideFragment. - * Property overrides on a subnet of a virtual network. + * An interface representing LabVirtualMachineFragment. + * A virtual machine. * + * @extends UpdateResource */ -export interface SubnetOverrideFragment { +export interface LabVirtualMachineFragment extends UpdateResource { /** - * @member {string} [resourceId] The resource ID of the subnet. + * @member {string} [notes] The notes of the virtual machine. */ - resourceId?: string; + notes?: string; /** - * @member {string} [labSubnetName] The name given to the subnet within the - * lab. + * @member {string} [ownerObjectId] The object identifier of the owner of the + * virtual machine. */ - labSubnetName?: string; + ownerObjectId?: string; /** - * @member {UsagePermissionType} [useInVmCreationPermission] Indicates - * whether this subnet can be used during virtual machine creation (i.e. - * Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow' + * @member {string} [ownerUserPrincipalName] The user principal name of the + * virtual machine owner. */ - useInVmCreationPermission?: UsagePermissionType; + ownerUserPrincipalName?: string; /** - * @member {UsagePermissionType} [usePublicIpAddressPermission] Indicates - * whether public IP addresses can be assigned to virtual machines on this - * subnet (i.e. Allow, Deny). Possible values include: 'Default', 'Deny', - * 'Allow' + * @member {string} [createdByUserId] The object identifier of the creator of + * the virtual machine. */ - usePublicIpAddressPermission?: UsagePermissionType; + createdByUserId?: string; /** - * @member {SubnetSharedPublicIpAddressConfigurationFragment} - * [sharedPublicIpAddressConfiguration] Properties that virtual machines on - * this subnet will share. + * @member {string} [createdByUser] The email address of creator of the + * virtual machine. */ - sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfigurationFragment; + createdByUser?: string; /** - * @member {string} [virtualNetworkPoolName] The virtual network pool - * associated with this subnet. + * @member {Date} [createdDate] The creation date of the virtual machine. */ - virtualNetworkPoolName?: string; -} - -/** - * @interface - * An interface representing UserIdentity. - * Identity attributes of a lab user. - * - */ -export interface UserIdentity { + createdDate?: Date; /** - * @member {string} [principalName] Set to the principal name / UPN of the - * client JWT making the request. + * @member {string} [computeId] The resource identifier (Microsoft.Compute) + * of the virtual machine. */ - principalName?: string; + computeId?: string; /** - * @member {string} [principalId] Set to the principal Id of the client JWT - * making the request. Service principal will not have the principal Id. + * @member {string} [customImageId] The custom image identifier of the + * virtual machine. */ - principalId?: string; + customImageId?: string; /** - * @member {string} [tenantId] Set to the tenant ID of the client JWT making - * the request. + * @member {string} [osType] The OS type of the virtual machine. */ - tenantId?: string; + osType?: string; /** - * @member {string} [objectId] Set to the object Id of the client JWT making - * the request. Not all users have object Id. For CSP (reseller) scenarios - * for example, object Id is not available. + * @member {string} [size] The size of the virtual machine. */ - objectId?: string; + size?: string; /** - * @member {string} [appId] Set to the app Id of the client JWT making the - * request. + * @member {string} [userName] The user name of the virtual machine. */ - appId?: string; -} - -/** - * @interface - * An interface representing UserSecretStore. - * Properties of a user's secret store. - * - */ -export interface UserSecretStore { + userName?: string; /** - * @member {string} [keyVaultUri] The URI of the user's Key vault. + * @member {string} [password] The password of the virtual machine + * administrator. */ - keyVaultUri?: string; + password?: string; /** - * @member {string} [keyVaultId] The ID of the user's Key vault. + * @member {string} [sshKey] The SSH key of the virtual machine + * administrator. */ - keyVaultId?: string; -} - -/** - * @interface - * An interface representing User. - * Profile of a lab user. - * - * @extends Resource - */ -export interface User extends Resource { + sshKey?: string; /** - * @member {UserIdentity} [identity] The identity of the user. + * @member {boolean} [isAuthenticationWithSshKey] Indicates whether this + * virtual machine uses an SSH key for authentication. */ - identity?: UserIdentity; + isAuthenticationWithSshKey?: boolean; /** - * @member {UserSecretStore} [secretStore] The secret store of the user. + * @member {string} [fqdn] The fully-qualified domain name of the virtual + * machine. */ - secretStore?: UserSecretStore; + fqdn?: string; /** - * @member {Date} [createdDate] The creation date of the user profile. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [labSubnetName] The lab subnet name of the virtual + * machine. */ - readonly createdDate?: Date; + labSubnetName?: string; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {string} [labVirtualNetworkId] The lab virtual network identifier + * of the virtual machine. */ - provisioningState?: string; + labVirtualNetworkId?: string; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual + * machine is to be created without a public IP address. */ - uniqueIdentifier?: string; -} - -/** - * @interface - * An interface representing UserIdentityFragment. - * Identity attributes of a lab user. - * - */ -export interface UserIdentityFragment { + disallowPublicIpAddress?: boolean; /** - * @member {string} [principalName] Set to the principal name / UPN of the - * client JWT making the request. + * @member {ArtifactInstallPropertiesFragment[]} [artifacts] The artifacts to + * be installed on the virtual machine. */ - principalName?: string; + artifacts?: ArtifactInstallPropertiesFragment[]; /** - * @member {string} [principalId] Set to the principal Id of the client JWT - * making the request. Service principal will not have the principal Id. + * @member {ArtifactDeploymentStatusPropertiesFragment} + * [artifactDeploymentStatus] The artifact deployment status for the virtual + * machine. */ - principalId?: string; + artifactDeploymentStatus?: ArtifactDeploymentStatusPropertiesFragment; /** - * @member {string} [tenantId] Set to the tenant ID of the client JWT making - * the request. + * @member {GalleryImageReferenceFragment} [galleryImageReference] The + * Microsoft Azure Marketplace image reference of the virtual machine. */ - tenantId?: string; + galleryImageReference?: GalleryImageReferenceFragment; /** - * @member {string} [objectId] Set to the object Id of the client JWT making - * the request. Not all users have object Id. For CSP (reseller) scenarios - * for example, object Id is not available. + * @member {string} [planId] The id of the plan associated with the virtual + * machine image */ - objectId?: string; + planId?: string; /** - * @member {string} [appId] Set to the app Id of the client JWT making the - * request. + * @member {NetworkInterfacePropertiesFragment} [networkInterface] The + * network interface properties. */ - appId?: string; -} - -/** - * @interface - * An interface representing UserSecretStoreFragment. - * Properties of a user's secret store. - * - */ -export interface UserSecretStoreFragment { + networkInterface?: NetworkInterfacePropertiesFragment; /** - * @member {string} [keyVaultUri] The URI of the user's Key vault. + * @member {Date} [expirationDate] The expiration date for VM. */ - keyVaultUri?: string; + expirationDate?: Date; /** - * @member {string} [keyVaultId] The ID of the user's Key vault. + * @member {boolean} [allowClaim] Indicates whether another user can take + * ownership of the virtual machine */ - keyVaultId?: string; -} - -/** - * @interface - * An interface representing UserFragment. - * Profile of a lab user. - * - * @extends Resource - */ -export interface UserFragment extends Resource { + allowClaim?: boolean; /** - * @member {UserIdentityFragment} [identity] The identity of the user. + * @member {string} [storageType] Storage type to use for virtual machine + * (i.e. Standard, Premium). */ - identity?: UserIdentityFragment; + storageType?: string; /** - * @member {UserSecretStoreFragment} [secretStore] The secret store of the - * user. + * @member {VirtualMachineCreationSource} [virtualMachineCreationSource] + * Tells source of creation of lab virtual machine. Output property only. + * Possible values include: 'FromCustomImage', 'FromGalleryImage' */ - secretStore?: UserSecretStoreFragment; + virtualMachineCreationSource?: VirtualMachineCreationSource; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {string} [environmentId] The resource ID of the environment that + * contains this virtual machine, if any. */ - provisioningState?: string; + environmentId?: string; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {DataDiskPropertiesFragment[]} [dataDiskParameters] New or + * existing data disks to attach to the virtual machine after creation + */ + dataDiskParameters?: DataDiskPropertiesFragment[]; + /** + * @member {ScheduleCreationParameterFragment[]} [scheduleParameters] Virtual + * Machine schedules to be created + */ + scheduleParameters?: ScheduleCreationParameterFragment[]; + /** + * @member {string} [lastKnownPowerState] Last known compute power state + * captured in DTL */ - uniqueIdentifier?: string; + lastKnownPowerState?: string; } /** * @interface - * An interface representing VirtualNetwork. - * A virtual network. + * An interface representing NotificationChannel. + * A notification. * * @extends Resource */ -export interface VirtualNetwork extends Resource { +export interface NotificationChannel extends Resource { /** - * @member {Subnet[]} [allowedSubnets] The allowed subnets of the virtual - * network. + * @member {string} [webHookUrl] The webhook URL to send notifications to. */ - allowedSubnets?: Subnet[]; + webHookUrl?: string; /** - * @member {string} [description] The description of the virtual network. + * @member {string} [emailRecipient] The email recipient to send + * notifications to (can be a list of semi-colon seperated email addresses). */ - description?: string; + emailRecipient?: string; /** - * @member {string} [externalProviderResourceId] The Microsoft.Network - * resource identifier of the virtual network. + * @member {string} [notificationLocale] The locale to use when sending a + * notification (fallback for unsupported languages is EN). */ - externalProviderResourceId?: string; + notificationLocale?: string; /** - * @member {ExternalSubnet[]} [externalSubnets] The external subnet - * properties. + * @member {string} [description] Description of notification. */ - externalSubnets?: ExternalSubnet[]; + description?: string; /** - * @member {SubnetOverride[]} [subnetOverrides] The subnet overrides of the - * virtual network. + * @member {Event[]} [events] The list of event for which this notification + * is enabled. */ - subnetOverrides?: SubnetOverride[]; + events?: Event[]; /** - * @member {Date} [createdDate] The creation date of the virtual network. + * @member {Date} [createdDate] The creation date of the notification + * channel. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -3602,1636 +3904,2950 @@ export interface VirtualNetwork extends Resource { /** * @member {string} [provisioningState] The provisioning status of the * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - provisioningState?: string; + readonly provisioningState?: string; /** * @member {string} [uniqueIdentifier] The unique immutable identifier of a * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - uniqueIdentifier?: string; + readonly uniqueIdentifier?: string; } /** * @interface - * An interface representing VirtualNetworkFragment. - * A virtual network. + * An interface representing NotificationChannelFragment. + * A notification. * - * @extends Resource + * @extends UpdateResource */ -export interface VirtualNetworkFragment extends Resource { - /** - * @member {SubnetFragment[]} [allowedSubnets] The allowed subnets of the - * virtual network. - */ - allowedSubnets?: SubnetFragment[]; - /** - * @member {string} [description] The description of the virtual network. - */ - description?: string; +export interface NotificationChannelFragment extends UpdateResource { /** - * @member {string} [externalProviderResourceId] The Microsoft.Network - * resource identifier of the virtual network. + * @member {string} [webHookUrl] The webhook URL to send notifications to. */ - externalProviderResourceId?: string; + webHookUrl?: string; /** - * @member {ExternalSubnetFragment[]} [externalSubnets] The external subnet - * properties. + * @member {string} [emailRecipient] The email recipient to send + * notifications to (can be a list of semi-colon seperated email addresses). */ - externalSubnets?: ExternalSubnetFragment[]; + emailRecipient?: string; /** - * @member {SubnetOverrideFragment[]} [subnetOverrides] The subnet overrides - * of the virtual network. + * @member {string} [notificationLocale] The locale to use when sending a + * notification (fallback for unsupported languages is EN). */ - subnetOverrides?: SubnetOverrideFragment[]; + notificationLocale?: string; /** - * @member {string} [provisioningState] The provisioning status of the - * resource. + * @member {string} [description] Description of notification. */ - provisioningState?: string; + description?: string; /** - * @member {string} [uniqueIdentifier] The unique immutable identifier of a - * resource (Guid). + * @member {EventFragment[]} [events] The list of event for which this + * notification is enabled. */ - uniqueIdentifier?: string; + events?: EventFragment[]; } /** * @interface - * An interface representing LabsListBySubscriptionOptionalParams. - * Optional Parameters. + * An interface representing NotifyParameters. + * Properties for generating a Notification. * - * @extends RequestOptionsBase */ -export interface LabsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface NotifyParameters { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=defaultStorageAccount)' + * @member {NotificationChannelEventType} [eventName] The type of event (i.e. + * AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost' */ - expand?: string; + eventName?: NotificationChannelEventType; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [jsonPayload] Properties for the notification in json + * format. */ - filter?: string; + jsonPayload?: string; +} + +/** + * @interface + * An interface representing OperationError. + * Error details for the operation in case of a failure. + * + */ +export interface OperationError { /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [code] The error code of the operation error. */ - top?: number; + code?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [message] The error message of the operation error. */ - orderby?: string; + message?: string; } /** * @interface - * An interface representing LabsListByResourceGroupOptionalParams. - * Optional Parameters. + * An interface representing OperationMetadataDisplay. + * The object that describes the operations * - * @extends RequestOptionsBase */ -export interface LabsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface OperationMetadataDisplay { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=defaultStorageAccount)' + * @member {string} [provider] Friendly name of the resource provider */ - expand?: string; + provider?: string; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [resource] Resource type on which the operation is + * performed. */ - filter?: string; + resource?: string; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [operation] Operation type: read, write, delete, + * listKeys/action, etc. */ - top?: number; + operation?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [description] Friendly name of the operation */ - orderby?: string; + description?: string; } /** * @interface - * An interface representing LabsGetOptionalParams. - * Optional Parameters. + * An interface representing OperationMetadata. + * The REST API operation supported by DevTestLab ResourceProvider. * - * @extends RequestOptionsBase */ -export interface LabsGetOptionalParams extends msRest.RequestOptionsBase { +export interface OperationMetadata { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=defaultStorageAccount)' + * @member {string} [name] Operation name: {provider}/{resource}/{operation} */ - expand?: string; + name?: string; + /** + * @member {OperationMetadataDisplay} [display] The object that describes the + * operations + */ + display?: OperationMetadataDisplay; } /** * @interface - * An interface representing GlobalSchedulesListBySubscriptionOptionalParams. - * Optional Parameters. + * An interface representing OperationResult. + * An Operation Result * - * @extends RequestOptionsBase */ -export interface GlobalSchedulesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' - */ - expand?: string; +export interface OperationResult { /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [status] The operation status. */ - filter?: string; + status?: string; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {HttpStatusCode} [statusCode] The status code for the operation. + * Possible values include: 'Continue', 'SwitchingProtocols', 'OK', + * 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', + * 'ResetContent', 'PartialContent', 'MultipleChoices', 'MovedPermanently', + * 'Redirect', 'SeeOther', 'NotModified', 'UseProxy', 'Unused', + * 'TemporaryRedirect', 'BadRequest', 'Unauthorized', 'PaymentRequired', + * 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', + * 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone', + * 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge', + * 'RequestUriTooLong', 'UnsupportedMediaType', + * 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', + * 'InternalServerError', 'NotImplemented', 'BadGateway', + * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' */ - top?: number; + statusCode?: HttpStatusCode; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {OperationError} [error] Error details for the operation in case + * of a failure. */ - orderby?: string; + error?: OperationError; } /** * @interface - * An interface representing GlobalSchedulesListByResourceGroupOptionalParams. - * Optional Parameters. + * An interface representing Policy. + * A Policy. * - * @extends RequestOptionsBase + * @extends Resource */ -export interface GlobalSchedulesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface Policy extends Resource { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * @member {string} [description] The description of the policy. */ - expand?: string; + description?: string; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {PolicyStatus} [status] The status of the policy. Possible values + * include: 'Enabled', 'Disabled' */ - filter?: string; + status?: PolicyStatus; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {PolicyFactName} [factName] The fact name of the policy (e.g. + * LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: + * 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', + * 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', + * 'UserOwnedLabVmCountInSubnet', 'LabTargetCost', 'EnvironmentTemplate', + * 'ScheduleEditPermission' */ - top?: number; + factName?: PolicyFactName; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [factData] The fact data of the policy. */ - orderby?: string; -} - -/** - * @interface - * An interface representing GlobalSchedulesGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface GlobalSchedulesGetOptionalParams extends msRest.RequestOptionsBase { + factData?: string; /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * @member {string} [threshold] The threshold of the policy (i.e. a number + * for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). */ - expand?: string; -} - -/** - * @interface - * An interface representing ArtifactSourcesListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface ArtifactSourcesListOptionalParams extends msRest.RequestOptionsBase { + threshold?: string; /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=displayName)' + * @member {PolicyEvaluatorType} [evaluatorType] The evaluator type of the + * policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values + * include: 'AllowedValuesPolicy', 'MaxValuePolicy' */ - expand?: string; + evaluatorType?: PolicyEvaluatorType; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {Date} [createdDate] The creation date of the policy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - filter?: string; + readonly createdDate?: Date; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [provisioningState] The provisioning status of the + * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - top?: number; + readonly provisioningState?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - orderby?: string; + readonly uniqueIdentifier?: string; } /** * @interface - * An interface representing ArtifactSourcesGetOptionalParams. - * Optional Parameters. + * An interface representing PolicyFragment. + * A Policy. * - * @extends RequestOptionsBase + * @extends UpdateResource */ -export interface ArtifactSourcesGetOptionalParams extends msRest.RequestOptionsBase { +export interface PolicyFragment extends UpdateResource { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=displayName)' + * @member {string} [description] The description of the policy. */ - expand?: string; -} - -/** - * @interface - * An interface representing ArmTemplatesListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface ArmTemplatesListOptionalParams extends msRest.RequestOptionsBase { + description?: string; /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=displayName)' + * @member {PolicyStatus} [status] The status of the policy. Possible values + * include: 'Enabled', 'Disabled' */ - expand?: string; + status?: PolicyStatus; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {PolicyFactName} [factName] The fact name of the policy (e.g. + * LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: + * 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', + * 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', + * 'UserOwnedLabVmCountInSubnet', 'LabTargetCost', 'EnvironmentTemplate', + * 'ScheduleEditPermission' */ - filter?: string; + factName?: PolicyFactName; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [factData] The fact data of the policy. */ - top?: number; + factData?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [threshold] The threshold of the policy (i.e. a number + * for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). */ - orderby?: string; -} - -/** - * @interface - * An interface representing ArmTemplatesGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface ArmTemplatesGetOptionalParams extends msRest.RequestOptionsBase { + threshold?: string; /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=displayName)' + * @member {PolicyEvaluatorType} [evaluatorType] The evaluator type of the + * policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values + * include: 'AllowedValuesPolicy', 'MaxValuePolicy' */ - expand?: string; + evaluatorType?: PolicyEvaluatorType; } /** * @interface - * An interface representing ArtifactsListOptionalParams. - * Optional Parameters. + * An interface representing Port. + * Properties of a network port. * - * @extends RequestOptionsBase */ -export interface ArtifactsListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=title)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. - */ - filter?: string; +export interface Port { /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {TransportProtocol} [transportProtocol] Protocol type of the port. + * Possible values include: 'Tcp', 'Udp' */ - top?: number; + transportProtocol?: TransportProtocol; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {number} [backendPort] Backend port of the target virtual machine. */ - orderby?: string; + backendPort?: number; } /** * @interface - * An interface representing ArtifactsGetOptionalParams. - * Optional Parameters. + * An interface representing PortFragment. + * Properties of a network port. * - * @extends RequestOptionsBase */ -export interface ArtifactsGetOptionalParams extends msRest.RequestOptionsBase { +export interface PortFragment { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=title)' + * @member {TransportProtocol} [transportProtocol] Protocol type of the port. + * Possible values include: 'Tcp', 'Udp' */ - expand?: string; + transportProtocol?: TransportProtocol; + /** + * @member {number} [backendPort] Backend port of the target virtual machine. + */ + backendPort?: number; } /** * @interface - * An interface representing CostsGetOptionalParams. - * Optional Parameters. + * An interface representing RdpConnection. + * Represents a .rdp file * - * @extends RequestOptionsBase */ -export interface CostsGetOptionalParams extends msRest.RequestOptionsBase { +export interface RdpConnection { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=labCostDetails)' + * @member {string} [contents] The contents of the .rdp file */ - expand?: string; + contents?: string; } /** * @interface - * An interface representing CustomImagesListOptionalParams. - * Optional Parameters. + * An interface representing ResizeLabVirtualMachineProperties. + * Request body for resizing a virtual machine. * - * @extends RequestOptionsBase */ -export interface CustomImagesListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=vm)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. - */ - filter?: string; - /** - * @member {number} [top] The maximum number of resources to return from the - * operation. - */ - top?: number; +export interface ResizeLabVirtualMachineProperties { /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [size] Specifies the size of the virtual machine. */ - orderby?: string; + size?: string; } /** * @interface - * An interface representing CustomImagesGetOptionalParams. - * Optional Parameters. + * An interface representing RetargetScheduleProperties. + * Properties for retargeting a virtual machine schedule. * - * @extends RequestOptionsBase */ -export interface CustomImagesGetOptionalParams extends msRest.RequestOptionsBase { +export interface RetargetScheduleProperties { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=vm)' + * @member {string} [currentResourceId] The resource Id of the virtual + * machine on which the schedule operates */ - expand?: string; + currentResourceId?: string; + /** + * @member {string} [targetResourceId] The resource Id of the virtual machine + * that the schedule should be retargeted to + */ + targetResourceId?: string; } /** * @interface - * An interface representing FormulasListOptionalParams. - * Optional Parameters. + * An interface representing Secret. + * A secret. * - * @extends RequestOptionsBase + * @extends Resource */ -export interface FormulasListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=description)' - */ - expand?: string; +export interface Secret extends Resource { /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [value] The value of the secret for secret creation. */ - filter?: string; + value?: string; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [provisioningState] The provisioning status of the + * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - top?: number; + readonly provisioningState?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - orderby?: string; + readonly uniqueIdentifier?: string; } /** * @interface - * An interface representing FormulasGetOptionalParams. - * Optional Parameters. + * An interface representing SecretFragment. + * A secret. * - * @extends RequestOptionsBase + * @extends UpdateResource */ -export interface FormulasGetOptionalParams extends msRest.RequestOptionsBase { +export interface SecretFragment extends UpdateResource { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=description)' + * @member {string} [value] The value of the secret for secret creation. */ - expand?: string; + value?: string; } /** * @interface - * An interface representing GalleryImagesListOptionalParams. - * Optional Parameters. + * An interface representing ServiceFabric. + * A Service Fabric. * - * @extends RequestOptionsBase + * @extends Resource */ -export interface GalleryImagesListOptionalParams extends msRest.RequestOptionsBase { +export interface ServiceFabric extends Resource { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=author)' + * @member {string} [externalServiceFabricId] The backing service fabric + * resource's id */ - expand?: string; + externalServiceFabricId?: string; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [environmentId] The resource id of the environment under + * which the service fabric resource is present */ - filter?: string; + environmentId?: string; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {ApplicableSchedule} [applicableSchedule] The applicable schedule + * for the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - top?: number; + readonly applicableSchedule?: ApplicableSchedule; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [provisioningState] The provisioning status of the + * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - orderby?: string; + readonly provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly uniqueIdentifier?: string; } /** * @interface - * An interface representing NotificationChannelsListOptionalParams. - * Optional Parameters. + * An interface representing ServiceFabricFragment. + * A Service Fabric. * - * @extends RequestOptionsBase + * @extends UpdateResource */ -export interface NotificationChannelsListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=webHookUrl)' - */ - expand?: string; - /** - * @member {string} [filter] The filter to apply to the operation. - */ - filter?: string; +export interface ServiceFabricFragment extends UpdateResource { /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [externalServiceFabricId] The backing service fabric + * resource's id */ - top?: number; + externalServiceFabricId?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [environmentId] The resource id of the environment under + * which the service fabric resource is present */ - orderby?: string; + environmentId?: string; } /** * @interface - * An interface representing NotificationChannelsGetOptionalParams. - * Optional Parameters. + * An interface representing ServiceRunner. + * A container for a managed identity to execute DevTest lab services. * - * @extends RequestOptionsBase + * @extends Resource */ -export interface NotificationChannelsGetOptionalParams extends msRest.RequestOptionsBase { +export interface ServiceRunner extends Resource { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=webHookUrl)' + * @member {IdentityProperties} [identity] The identity of the resource. */ - expand?: string; + identity?: IdentityProperties; } /** * @interface - * An interface representing PoliciesListOptionalParams. - * Optional Parameters. + * An interface representing ShutdownNotificationContent. + * The contents of a shutdown notification. Webhooks can use this type to + * deserialize the request body when they get notified of an imminent shutdown. * - * @extends RequestOptionsBase */ -export interface PoliciesListOptionalParams extends msRest.RequestOptionsBase { +export interface ShutdownNotificationContent { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=description)' + * @member {string} [skipUrl] The URL to skip auto-shutdown. */ - expand?: string; + skipUrl?: string; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [delayUrl60] The URL to delay shutdown by 60 minutes. */ - filter?: string; + delayUrl60?: string; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [delayUrl120] The URL to delay shutdown by 2 hours. */ - top?: number; + delayUrl120?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [vmName] The virtual machine to be shut down. */ - orderby?: string; -} - -/** - * @interface - * An interface representing PoliciesGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface PoliciesGetOptionalParams extends msRest.RequestOptionsBase { + vmName?: string; /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=description)' + * @member {string} [guid] The GUID for the virtual machine to be shut down. */ - expand?: string; -} - -/** - * @interface - * An interface representing SchedulesListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface SchedulesListOptionalParams extends msRest.RequestOptionsBase { + guid?: string; /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * @member {string} [owner] The owner of the virtual machine. */ - expand?: string; + owner?: string; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [vmUrl] The URL of the virtual machine. */ - filter?: string; + vmUrl?: string; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [minutesUntilShutdown] Minutes remaining until shutdown */ - top?: number; + minutesUntilShutdown?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [eventType] The event for which a notification will be + * sent. */ - orderby?: string; -} - -/** - * @interface - * An interface representing SchedulesGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface SchedulesGetOptionalParams extends msRest.RequestOptionsBase { + eventType?: string; /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * @member {string} [text] The text for the notification. */ - expand?: string; + text?: string; + /** + * @member {string} [subscriptionId] The subscription ID for the schedule. + */ + subscriptionId?: string; + /** + * @member {string} [resourceGroupName] The resource group name for the + * schedule. + */ + resourceGroupName?: string; + /** + * @member {string} [labName] The lab for the schedule. + */ + labName?: string; } /** * @interface - * An interface representing ServiceRunnersListOptionalParams. - * Optional Parameters. + * An interface representing Subnet. + * Subnet information. * - * @extends RequestOptionsBase */ -export interface ServiceRunnersListOptionalParams extends msRest.RequestOptionsBase { +export interface Subnet { /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [resourceId] The resource ID of the subnet. */ - filter?: string; + resourceId?: string; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [labSubnetName] The name of the subnet as seen in the + * lab. */ - top?: number; + labSubnetName?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {UsagePermissionType} [allowPublicIp] The permission policy of the + * subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible + * values include: 'Default', 'Deny', 'Allow' */ - orderby?: string; + allowPublicIp?: UsagePermissionType; } /** * @interface - * An interface representing UsersListOptionalParams. - * Optional Parameters. + * An interface representing SubnetFragment. + * Subnet information. * - * @extends RequestOptionsBase */ -export interface UsersListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=identity)' - */ - expand?: string; +export interface SubnetFragment { /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [resourceId] The resource ID of the subnet. */ - filter?: string; + resourceId?: string; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [labSubnetName] The name of the subnet as seen in the + * lab. */ - top?: number; + labSubnetName?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {UsagePermissionType} [allowPublicIp] The permission policy of the + * subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible + * values include: 'Default', 'Deny', 'Allow' */ - orderby?: string; + allowPublicIp?: UsagePermissionType; } /** * @interface - * An interface representing UsersGetOptionalParams. - * Optional Parameters. + * An interface representing SubnetSharedPublicIpAddressConfiguration. + * Configuration for public IP address sharing. * - * @extends RequestOptionsBase */ -export interface UsersGetOptionalParams extends msRest.RequestOptionsBase { +export interface SubnetSharedPublicIpAddressConfiguration { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=identity)' + * @member {Port[]} [allowedPorts] Backend ports that virtual machines on + * this subnet are allowed to expose */ - expand?: string; + allowedPorts?: Port[]; } /** * @interface - * An interface representing DisksListOptionalParams. - * Optional Parameters. + * An interface representing SubnetOverride. + * Property overrides on a subnet of a virtual network. * - * @extends RequestOptionsBase */ -export interface DisksListOptionalParams extends msRest.RequestOptionsBase { +export interface SubnetOverride { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=diskType)' + * @member {string} [resourceId] The resource ID of the subnet. */ - expand?: string; + resourceId?: string; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [labSubnetName] The name given to the subnet within the + * lab. */ - filter?: string; + labSubnetName?: string; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {UsagePermissionType} [useInVmCreationPermission] Indicates + * whether this subnet can be used during virtual machine creation (i.e. + * Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow' */ - top?: number; + useInVmCreationPermission?: UsagePermissionType; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {UsagePermissionType} [usePublicIpAddressPermission] Indicates + * whether public IP addresses can be assigned to virtual machines on this + * subnet (i.e. Allow, Deny). Possible values include: 'Default', 'Deny', + * 'Allow' */ - orderby?: string; + usePublicIpAddressPermission?: UsagePermissionType; + /** + * @member {SubnetSharedPublicIpAddressConfiguration} + * [sharedPublicIpAddressConfiguration] Properties that virtual machines on + * this subnet will share. + */ + sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfiguration; + /** + * @member {string} [virtualNetworkPoolName] The virtual network pool + * associated with this subnet. + */ + virtualNetworkPoolName?: string; } /** * @interface - * An interface representing DisksGetOptionalParams. - * Optional Parameters. + * An interface representing SubnetSharedPublicIpAddressConfigurationFragment. + * Configuration for public IP address sharing. * - * @extends RequestOptionsBase */ -export interface DisksGetOptionalParams extends msRest.RequestOptionsBase { +export interface SubnetSharedPublicIpAddressConfigurationFragment { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=diskType)' + * @member {PortFragment[]} [allowedPorts] Backend ports that virtual + * machines on this subnet are allowed to expose */ - expand?: string; + allowedPorts?: PortFragment[]; } /** * @interface - * An interface representing EnvironmentsListOptionalParams. - * Optional Parameters. + * An interface representing SubnetOverrideFragment. + * Property overrides on a subnet of a virtual network. * - * @extends RequestOptionsBase */ -export interface EnvironmentsListOptionalParams extends msRest.RequestOptionsBase { +export interface SubnetOverrideFragment { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=deploymentProperties)' + * @member {string} [resourceId] The resource ID of the subnet. */ - expand?: string; + resourceId?: string; + /** + * @member {string} [labSubnetName] The name given to the subnet within the + * lab. + */ + labSubnetName?: string; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {UsagePermissionType} [useInVmCreationPermission] Indicates + * whether this subnet can be used during virtual machine creation (i.e. + * Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow' */ - filter?: string; + useInVmCreationPermission?: UsagePermissionType; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {UsagePermissionType} [usePublicIpAddressPermission] Indicates + * whether public IP addresses can be assigned to virtual machines on this + * subnet (i.e. Allow, Deny). Possible values include: 'Default', 'Deny', + * 'Allow' */ - top?: number; + usePublicIpAddressPermission?: UsagePermissionType; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {SubnetSharedPublicIpAddressConfigurationFragment} + * [sharedPublicIpAddressConfiguration] Properties that virtual machines on + * this subnet will share. */ - orderby?: string; -} - -/** - * @interface - * An interface representing EnvironmentsGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface EnvironmentsGetOptionalParams extends msRest.RequestOptionsBase { + sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfigurationFragment; /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=deploymentProperties)' + * @member {string} [virtualNetworkPoolName] The virtual network pool + * associated with this subnet. */ - expand?: string; + virtualNetworkPoolName?: string; } /** * @interface - * An interface representing SecretsListOptionalParams. - * Optional Parameters. + * An interface representing UserIdentity. + * Identity attributes of a lab user. * - * @extends RequestOptionsBase */ -export interface SecretsListOptionalParams extends msRest.RequestOptionsBase { +export interface UserIdentity { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=value)' + * @member {string} [principalName] Set to the principal name / UPN of the + * client JWT making the request. */ - expand?: string; + principalName?: string; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [principalId] Set to the principal Id of the client JWT + * making the request. Service principal will not have the principal Id. */ - filter?: string; + principalId?: string; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {string} [tenantId] Set to the tenant ID of the client JWT making + * the request. */ - top?: number; + tenantId?: string; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [objectId] Set to the object Id of the client JWT making + * the request. Not all users have object Id. For CSP (reseller) scenarios + * for example, object Id is not available. */ - orderby?: string; + objectId?: string; + /** + * @member {string} [appId] Set to the app Id of the client JWT making the + * request. + */ + appId?: string; } /** * @interface - * An interface representing SecretsGetOptionalParams. - * Optional Parameters. + * An interface representing UserSecretStore. + * Properties of a user's secret store. * - * @extends RequestOptionsBase */ -export interface SecretsGetOptionalParams extends msRest.RequestOptionsBase { +export interface UserSecretStore { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=value)' + * @member {string} [keyVaultUri] The URI of the user's Key vault. */ - expand?: string; + keyVaultUri?: string; + /** + * @member {string} [keyVaultId] The ID of the user's Key vault. + */ + keyVaultId?: string; } /** * @interface - * An interface representing VirtualMachinesListOptionalParams. - * Optional Parameters. + * An interface representing User. + * Profile of a lab user. * - * @extends RequestOptionsBase + * @extends Resource */ -export interface VirtualMachinesListOptionalParams extends msRest.RequestOptionsBase { +export interface User extends Resource { /** - * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + * @member {UserIdentity} [identity] The identity of the user. */ - expand?: string; + identity?: UserIdentity; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {UserSecretStore} [secretStore] The secret store of the user. */ - filter?: string; + secretStore?: UserSecretStore; /** - * @member {number} [top] The maximum number of resources to return from the - * operation. + * @member {Date} [createdDate] The creation date of the user profile. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - top?: number; + readonly createdDate?: Date; /** - * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * @member {string} [provisioningState] The provisioning status of the + * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - orderby?: string; + readonly provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly uniqueIdentifier?: string; } /** * @interface - * An interface representing VirtualMachinesGetOptionalParams. + * An interface representing UserIdentityFragment. + * Identity attributes of a lab user. + * + */ +export interface UserIdentityFragment { + /** + * @member {string} [principalName] Set to the principal name / UPN of the + * client JWT making the request. + */ + principalName?: string; + /** + * @member {string} [principalId] Set to the principal Id of the client JWT + * making the request. Service principal will not have the principal Id. + */ + principalId?: string; + /** + * @member {string} [tenantId] Set to the tenant ID of the client JWT making + * the request. + */ + tenantId?: string; + /** + * @member {string} [objectId] Set to the object Id of the client JWT making + * the request. Not all users have object Id. For CSP (reseller) scenarios + * for example, object Id is not available. + */ + objectId?: string; + /** + * @member {string} [appId] Set to the app Id of the client JWT making the + * request. + */ + appId?: string; +} + +/** + * @interface + * An interface representing UserSecretStoreFragment. + * Properties of a user's secret store. + * + */ +export interface UserSecretStoreFragment { + /** + * @member {string} [keyVaultUri] The URI of the user's Key vault. + */ + keyVaultUri?: string; + /** + * @member {string} [keyVaultId] The ID of the user's Key vault. + */ + keyVaultId?: string; +} + +/** + * @interface + * An interface representing UserFragment. + * Profile of a lab user. + * + * @extends UpdateResource + */ +export interface UserFragment extends UpdateResource { + /** + * @member {UserIdentityFragment} [identity] The identity of the user. + */ + identity?: UserIdentityFragment; + /** + * @member {UserSecretStoreFragment} [secretStore] The secret store of the + * user. + */ + secretStore?: UserSecretStoreFragment; +} + +/** + * @interface + * An interface representing VirtualNetwork. + * A virtual network. + * + * @extends Resource + */ +export interface VirtualNetwork extends Resource { + /** + * @member {Subnet[]} [allowedSubnets] The allowed subnets of the virtual + * network. + */ + allowedSubnets?: Subnet[]; + /** + * @member {string} [description] The description of the virtual network. + */ + description?: string; + /** + * @member {string} [externalProviderResourceId] The Microsoft.Network + * resource identifier of the virtual network. + */ + externalProviderResourceId?: string; + /** + * @member {ExternalSubnet[]} [externalSubnets] The external subnet + * properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly externalSubnets?: ExternalSubnet[]; + /** + * @member {SubnetOverride[]} [subnetOverrides] The subnet overrides of the + * virtual network. + */ + subnetOverrides?: SubnetOverride[]; + /** + * @member {Date} [createdDate] The creation date of the virtual network. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly createdDate?: Date; + /** + * @member {string} [provisioningState] The provisioning status of the + * resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; + /** + * @member {string} [uniqueIdentifier] The unique immutable identifier of a + * resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly uniqueIdentifier?: string; +} + +/** + * @interface + * An interface representing VirtualNetworkFragment. + * A virtual network. + * + * @extends UpdateResource + */ +export interface VirtualNetworkFragment extends UpdateResource { + /** + * @member {SubnetFragment[]} [allowedSubnets] The allowed subnets of the + * virtual network. + */ + allowedSubnets?: SubnetFragment[]; + /** + * @member {string} [description] The description of the virtual network. + */ + description?: string; + /** + * @member {string} [externalProviderResourceId] The Microsoft.Network + * resource identifier of the virtual network. + */ + externalProviderResourceId?: string; + /** + * @member {SubnetOverrideFragment[]} [subnetOverrides] The subnet overrides + * of the virtual network. + */ + subnetOverrides?: SubnetOverrideFragment[]; +} + +/** + * @interface + * An interface representing LabsListBySubscriptionOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { +export interface LabsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + * 'properties($select=defaultStorageAccount)' */ expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** * @interface - * An interface representing VirtualMachineSchedulesListOptionalParams. + * An interface representing LabsListByResourceGroupOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface VirtualMachineSchedulesListOptionalParams extends msRest.RequestOptionsBase { +export interface LabsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * 'properties($select=defaultStorageAccount)' */ expand?: string; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') */ filter?: string; /** * @member {number} [top] The maximum number of resources to return from the - * operation. + * operation. Example: '$top=10' */ top?: number; /** * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * OData notation. Example: '$orderby=name desc' */ orderby?: string; } /** * @interface - * An interface representing VirtualMachineSchedulesGetOptionalParams. + * An interface representing LabsGetOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface VirtualMachineSchedulesGetOptionalParams extends msRest.RequestOptionsBase { +export interface LabsGetOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($select=status)' + * 'properties($select=defaultStorageAccount)' */ expand?: string; } /** * @interface - * An interface representing VirtualNetworksListOptionalParams. + * An interface representing GlobalSchedulesListBySubscriptionOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface VirtualNetworksListOptionalParams extends msRest.RequestOptionsBase { +export interface GlobalSchedulesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=externalSubnets)' + * 'properties($select=status)' */ expand?: string; /** - * @member {string} [filter] The filter to apply to the operation. + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') */ filter?: string; /** * @member {number} [top] The maximum number of resources to return from the - * operation. + * operation. Example: '$top=10' */ top?: number; /** * @member {string} [orderby] The ordering expression for the results, using - * OData notation. + * OData notation. Example: '$orderby=name desc' */ orderby?: string; } /** * @interface - * An interface representing VirtualNetworksGetOptionalParams. + * An interface representing GlobalSchedulesListByResourceGroupOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface VirtualNetworksGetOptionalParams extends msRest.RequestOptionsBase { +export interface GlobalSchedulesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [expand] Specify the $expand query. Example: - * 'properties($expand=externalSubnets)' + * 'properties($select=status)' */ expand?: string; -} - -/** - * @interface - * An interface representing DevTestLabsClientOptions. - * @extends AzureServiceClientOptions - */ -export interface DevTestLabsClientOptions extends AzureServiceClientOptions { /** - * @member {string} [baseUri] + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') */ - baseUri?: string; + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } - /** * @interface - * An interface representing the ProviderOperationResult. - * Result of the request to list REST API operations + * An interface representing GlobalSchedulesGetOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ProviderOperationResult extends Array { +export interface GlobalSchedulesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' */ - readonly nextLink?: string; + expand?: string; } /** * @interface - * An interface representing the ResponseWithContinuationLab. - * The response of a list operation. + * An interface representing ArtifactSourcesListOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationLab extends Array { +export interface ArtifactSourcesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=displayName)' */ - nextLink?: string; + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** * @interface - * An interface representing the ResponseWithContinuationLabVhd. - * The response of a list operation. + * An interface representing ArtifactSourcesGetOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationLabVhd extends Array { +export interface ArtifactSourcesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=displayName)' */ - nextLink?: string; + expand?: string; } /** * @interface - * An interface representing the ResponseWithContinuationSchedule. - * The response of a list operation. + * An interface representing ArmTemplatesListOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationSchedule extends Array { +export interface ArmTemplatesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=displayName)' */ - nextLink?: string; + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** * @interface - * An interface representing the ResponseWithContinuationArtifactSource. - * The response of a list operation. + * An interface representing ArmTemplatesGetOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationArtifactSource extends Array { +export interface ArmTemplatesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=displayName)' */ - nextLink?: string; + expand?: string; } /** * @interface - * An interface representing the ResponseWithContinuationArmTemplate. - * The response of a list operation. + * An interface representing ArtifactsListOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationArmTemplate extends Array { +export interface ArtifactsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=title)' */ - nextLink?: string; + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** * @interface - * An interface representing the ResponseWithContinuationArtifact. - * The response of a list operation. + * An interface representing ArtifactsGetOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationArtifact extends Array { +export interface ArtifactsGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=title)' */ - nextLink?: string; + expand?: string; } /** * @interface - * An interface representing the ResponseWithContinuationCustomImage. - * The response of a list operation. + * An interface representing CostsGetOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationCustomImage extends Array { +export interface CostsGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($expand=labCostDetails)' */ - nextLink?: string; + expand?: string; } /** * @interface - * An interface representing the ResponseWithContinuationFormula. - * The response of a list operation. + * An interface representing CustomImagesListOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationFormula extends Array { +export interface CustomImagesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=vm)' */ - nextLink?: string; + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** * @interface - * An interface representing the ResponseWithContinuationGalleryImage. - * The response of a list operation. + * An interface representing CustomImagesGetOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationGalleryImage extends Array { +export interface CustomImagesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=vm)' */ - nextLink?: string; + expand?: string; } /** * @interface - * An interface representing the ResponseWithContinuationNotificationChannel. - * The response of a list operation. + * An interface representing FormulasListOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationNotificationChannel extends Array { +export interface FormulasListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=description)' */ - nextLink?: string; + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** * @interface - * An interface representing the ResponseWithContinuationPolicy. - * The response of a list operation. + * An interface representing FormulasGetOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationPolicy extends Array { +export interface FormulasGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=description)' */ - nextLink?: string; + expand?: string; } /** * @interface - * An interface representing the ResponseWithContinuationServiceRunner. - * The response of a list operation. + * An interface representing GalleryImagesListOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationServiceRunner extends Array { +export interface GalleryImagesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=author)' */ - nextLink?: string; + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** * @interface - * An interface representing the ResponseWithContinuationUser. - * The response of a list operation. + * An interface representing NotificationChannelsListOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationUser extends Array { +export interface NotificationChannelsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=webHookUrl)' */ - nextLink?: string; + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** * @interface - * An interface representing the ResponseWithContinuationDisk. - * The response of a list operation. + * An interface representing NotificationChannelsGetOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationDisk extends Array { +export interface NotificationChannelsGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=webHookUrl)' */ - nextLink?: string; + expand?: string; } /** * @interface - * An interface representing the ResponseWithContinuationDtlEnvironment. - * The response of a list operation. + * An interface representing PoliciesListOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationDtlEnvironment extends Array { +export interface PoliciesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=description)' */ - nextLink?: string; + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** * @interface - * An interface representing the ResponseWithContinuationSecret. - * The response of a list operation. + * An interface representing PoliciesGetOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationSecret extends Array { +export interface PoliciesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=description)' */ - nextLink?: string; + expand?: string; } /** * @interface - * An interface representing the ResponseWithContinuationLabVirtualMachine. - * The response of a list operation. + * An interface representing SchedulesListOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationLabVirtualMachine extends Array { +export interface SchedulesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' */ - nextLink?: string; + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** * @interface - * An interface representing the ResponseWithContinuationVirtualNetwork. - * The response of a list operation. + * An interface representing SchedulesGetOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface ResponseWithContinuationVirtualNetwork extends Array { +export interface SchedulesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] Link for next set of results. + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' */ - nextLink?: string; + expand?: string; } /** - * Defines values for EnableStatus. - * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: EnableStatus = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing ServiceRunnersListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum EnableStatus { - Enabled = 'Enabled', - Disabled = 'Disabled', +export interface ServiceRunnersListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * Defines values for NotificationStatus. - * Possible values include: 'Disabled', 'Enabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: NotificationStatus = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing UsersListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum NotificationStatus { - Disabled = 'Disabled', - Enabled = 'Enabled', +export interface UsersListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=identity)' + */ + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * Defines values for SourceControlType. - * Possible values include: 'VsoGit', 'GitHub' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SourceControlType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing UsersGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum SourceControlType { - VsoGit = 'VsoGit', - GitHub = 'GitHub', +export interface UsersGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=identity)' + */ + expand?: string; } /** - * Defines values for StorageType. - * Possible values include: 'Standard', 'Premium' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: StorageType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing DisksListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum StorageType { - Standard = 'Standard', - Premium = 'Premium', +export interface DisksListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=diskType)' + */ + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * Defines values for CostThresholdStatus. - * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CostThresholdStatus = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing DisksGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum CostThresholdStatus { - Enabled = 'Enabled', - Disabled = 'Disabled', +export interface DisksGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=diskType)' + */ + expand?: string; } /** - * Defines values for WindowsOsState. - * Possible values include: 'NonSysprepped', 'SysprepRequested', - * 'SysprepApplied' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: WindowsOsState = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing EnvironmentsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum WindowsOsState { - NonSysprepped = 'NonSysprepped', - SysprepRequested = 'SysprepRequested', - SysprepApplied = 'SysprepApplied', +export interface EnvironmentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=deploymentProperties)' + */ + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * Defines values for LinuxOsState. - * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested', - * 'DeprovisionApplied' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LinuxOsState = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum LinuxOsState { - NonDeprovisioned = 'NonDeprovisioned', - DeprovisionRequested = 'DeprovisionRequested', - DeprovisionApplied = 'DeprovisionApplied', -} - -/** - * Defines values for CustomImageOsType. - * Possible values include: 'Windows', 'Linux', 'None' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CustomImageOsType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing EnvironmentsGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum CustomImageOsType { - Windows = 'Windows', - Linux = 'Linux', - None = 'None', +export interface EnvironmentsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=deploymentProperties)' + */ + expand?: string; } /** - * Defines values for HostCachingOptions. - * Possible values include: 'None', 'ReadOnly', 'ReadWrite' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: HostCachingOptions = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing SecretsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum HostCachingOptions { - None = 'None', - ReadOnly = 'ReadOnly', - ReadWrite = 'ReadWrite', +export interface SecretsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=value)' + */ + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * Defines values for NotificationChannelEventType. - * Possible values include: 'AutoShutdown', 'Cost' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: NotificationChannelEventType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing SecretsGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum NotificationChannelEventType { - AutoShutdown = 'AutoShutdown', - Cost = 'Cost', +export interface SecretsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=value)' + */ + expand?: string; } /** - * Defines values for TransportProtocol. - * Possible values include: 'Tcp', 'Udp' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: TransportProtocol = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing ServiceFabricsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum TransportProtocol { - Tcp = 'Tcp', - Udp = 'Udp', +export interface ServiceFabricsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($expand=applicableSchedule)' + */ + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * Defines values for VirtualMachineCreationSource. - * Possible values include: 'FromCustomImage', 'FromGalleryImage' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: VirtualMachineCreationSource = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing ServiceFabricsGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum VirtualMachineCreationSource { - FromCustomImage = 'FromCustomImage', - FromGalleryImage = 'FromGalleryImage', +export interface ServiceFabricsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($expand=applicableSchedule)' + */ + expand?: string; } /** - * Defines values for FileUploadOptions. - * Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: FileUploadOptions = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing ServiceFabricSchedulesListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum FileUploadOptions { - UploadFilesAndGenerateSasTokens = 'UploadFilesAndGenerateSasTokens', - None = 'None', +export interface ServiceFabricSchedulesListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' + */ + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * Defines values for PremiumDataDisk. - * Possible values include: 'Disabled', 'Enabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PremiumDataDisk = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing ServiceFabricSchedulesGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum PremiumDataDisk { - Disabled = 'Disabled', - Enabled = 'Enabled', +export interface ServiceFabricSchedulesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' + */ + expand?: string; } /** - * Defines values for TargetCostStatus. - * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: TargetCostStatus = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing VirtualMachinesListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum TargetCostStatus { - Enabled = 'Enabled', - Disabled = 'Disabled', +export interface VirtualMachinesListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + */ + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * Defines values for ReportingCycleType. - * Possible values include: 'CalendarMonth', 'Custom' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ReportingCycleType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing VirtualMachinesGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum ReportingCycleType { - CalendarMonth = 'CalendarMonth', - Custom = 'Custom', +export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + */ + expand?: string; } /** - * Defines values for CostType. - * Possible values include: 'Unavailable', 'Reported', 'Projected' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CostType = "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing VirtualMachineSchedulesListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum CostType { - Unavailable = 'Unavailable', - Reported = 'Reported', - Projected = 'Projected', +export interface VirtualMachineSchedulesListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' + */ + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * Defines values for HttpStatusCode. - * Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', - * 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - * 'PartialContent', 'MultipleChoices', 'MovedPermanently', 'Redirect', - * 'SeeOther', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', - * 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - * 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', - * 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', - * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: HttpStatusCode = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing VirtualMachineSchedulesGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export enum HttpStatusCode { - Continue = 'Continue', - SwitchingProtocols = 'SwitchingProtocols', - OK = 'OK', - Created = 'Created', - Accepted = 'Accepted', - NonAuthoritativeInformation = 'NonAuthoritativeInformation', - NoContent = 'NoContent', - ResetContent = 'ResetContent', - PartialContent = 'PartialContent', - MultipleChoices = 'MultipleChoices', - MovedPermanently = 'MovedPermanently', - Redirect = 'Redirect', - SeeOther = 'SeeOther', - NotModified = 'NotModified', - UseProxy = 'UseProxy', - Unused = 'Unused', - TemporaryRedirect = 'TemporaryRedirect', - BadRequest = 'BadRequest', - Unauthorized = 'Unauthorized', - PaymentRequired = 'PaymentRequired', - Forbidden = 'Forbidden', - NotFound = 'NotFound', - MethodNotAllowed = 'MethodNotAllowed', - NotAcceptable = 'NotAcceptable', - ProxyAuthenticationRequired = 'ProxyAuthenticationRequired', - RequestTimeout = 'RequestTimeout', - Conflict = 'Conflict', - Gone = 'Gone', - LengthRequired = 'LengthRequired', - PreconditionFailed = 'PreconditionFailed', - RequestEntityTooLarge = 'RequestEntityTooLarge', - RequestUriTooLong = 'RequestUriTooLong', - UnsupportedMediaType = 'UnsupportedMediaType', - RequestedRangeNotSatisfiable = 'RequestedRangeNotSatisfiable', - ExpectationFailed = 'ExpectationFailed', - UpgradeRequired = 'UpgradeRequired', - InternalServerError = 'InternalServerError', - NotImplemented = 'NotImplemented', - BadGateway = 'BadGateway', - ServiceUnavailable = 'ServiceUnavailable', - GatewayTimeout = 'GatewayTimeout', - HttpVersionNotSupported = 'HttpVersionNotSupported', +export interface VirtualMachineSchedulesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($select=status)' + */ + expand?: string; +} + +/** + * @interface + * An interface representing VirtualNetworksListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface VirtualNetworksListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($expand=externalSubnets)' + */ + expand?: string; + /** + * @member {string} [filter] The filter to apply to the operation. Example: + * '$filter=contains(name,'myName') + */ + filter?: string; + /** + * @member {number} [top] The maximum number of resources to return from the + * operation. Example: '$top=10' + */ + top?: number; + /** + * @member {string} [orderby] The ordering expression for the results, using + * OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * @interface + * An interface representing VirtualNetworksGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface VirtualNetworksGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [expand] Specify the $expand query. Example: + * 'properties($expand=externalSubnets)' + */ + expand?: string; +} + +/** + * @interface + * An interface representing DevTestLabsClientOptions. + * @extends AzureServiceClientOptions + */ +export interface DevTestLabsClientOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ + baseUri?: string; +} + + +/** + * @interface + * An interface representing the ProviderOperationResult. + * Result of the request to list REST API operations + * + * @extends Array + */ +export interface ProviderOperationResult extends Array { + /** + * @member {string} [nextLink] URL to get the next set of operation list + * results if there are any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the LabList. + * The response of a list operation. + * + * @extends Array + */ +export interface LabList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the LabVhdList. + * The response of a list operation. + * + * @extends Array + */ +export interface LabVhdList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ScheduleList. + * The response of a list operation. + * + * @extends Array + */ +export interface ScheduleList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ArtifactSourceList. + * The response of a list operation. + * + * @extends Array + */ +export interface ArtifactSourceList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ArmTemplateList. + * The response of a list operation. + * + * @extends Array + */ +export interface ArmTemplateList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ArtifactList. + * The response of a list operation. + * + * @extends Array + */ +export interface ArtifactList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the CustomImageList. + * The response of a list operation. + * + * @extends Array + */ +export interface CustomImageList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; } /** - * Defines values for PolicyStatus. - * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PolicyStatus = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * @interface + * An interface representing the FormulaList. + * The response of a list operation. + * + * @extends Array + */ +export interface FormulaList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the GalleryImageList. + * The response of a list operation. + * + * @extends Array + */ +export interface GalleryImageList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the NotificationChannelList. + * The response of a list operation. + * + * @extends Array + */ +export interface NotificationChannelList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the PolicyList. + * The response of a list operation. + * + * @extends Array + */ +export interface PolicyList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ServiceRunnerList. + * The response of a list operation. + * + * @extends Array + */ +export interface ServiceRunnerList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the UserList. + * The response of a list operation. + * + * @extends Array + */ +export interface UserList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the DiskList. + * The response of a list operation. + * + * @extends Array + */ +export interface DiskList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the DtlEnvironmentList. + * The response of a list operation. + * + * @extends Array + */ +export interface DtlEnvironmentList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the SecretList. + * The response of a list operation. + * + * @extends Array + */ +export interface SecretList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ServiceFabricList. + * The response of a list operation. + * + * @extends Array + */ +export interface ServiceFabricList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the LabVirtualMachineList. + * The response of a list operation. + * + * @extends Array + */ +export interface LabVirtualMachineList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the VirtualNetworkList. + * The response of a list operation. + * + * @extends Array + */ +export interface VirtualNetworkList extends Array { + /** + * @member {string} [nextLink] Link for next set of results. + */ + nextLink?: string; +} + +/** + * Defines values for EnableStatus. + * Possible values include: 'Enabled', 'Disabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: EnableStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum EnableStatus { + Enabled = 'Enabled', + Disabled = 'Disabled', +} + +/** + * Defines values for SourceControlType. + * Possible values include: 'VsoGit', 'GitHub' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SourceControlType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum SourceControlType { + VsoGit = 'VsoGit', + GitHub = 'GitHub', +} + +/** + * Defines values for StorageType. + * Possible values include: 'Standard', 'Premium' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: StorageType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum StorageType { + Standard = 'Standard', + Premium = 'Premium', +} + +/** + * Defines values for CostThresholdStatus. + * Possible values include: 'Enabled', 'Disabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: CostThresholdStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum CostThresholdStatus { + Enabled = 'Enabled', + Disabled = 'Disabled', +} + +/** + * Defines values for WindowsOsState. + * Possible values include: 'NonSysprepped', 'SysprepRequested', + * 'SysprepApplied' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: WindowsOsState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum WindowsOsState { + NonSysprepped = 'NonSysprepped', + SysprepRequested = 'SysprepRequested', + SysprepApplied = 'SysprepApplied', +} + +/** + * Defines values for LinuxOsState. + * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested', + * 'DeprovisionApplied' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: LinuxOsState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum LinuxOsState { + NonDeprovisioned = 'NonDeprovisioned', + DeprovisionRequested = 'DeprovisionRequested', + DeprovisionApplied = 'DeprovisionApplied', +} + +/** + * Defines values for CustomImageOsType. + * Possible values include: 'Windows', 'Linux', 'None' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: CustomImageOsType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum CustomImageOsType { + Windows = 'Windows', + Linux = 'Linux', + None = 'None', +} + +/** + * Defines values for HostCachingOptions. + * Possible values include: 'None', 'ReadOnly', 'ReadWrite' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: HostCachingOptions = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum HostCachingOptions { + None = 'None', + ReadOnly = 'ReadOnly', + ReadWrite = 'ReadWrite', +} + +/** + * Defines values for NotificationChannelEventType. + * Possible values include: 'AutoShutdown', 'Cost' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: NotificationChannelEventType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum NotificationChannelEventType { + AutoShutdown = 'AutoShutdown', + Cost = 'Cost', +} + +/** + * Defines values for TransportProtocol. + * Possible values include: 'Tcp', 'Udp' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: TransportProtocol = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum TransportProtocol { + Tcp = 'Tcp', + Udp = 'Udp', +} + +/** + * Defines values for VirtualMachineCreationSource. + * Possible values include: 'FromCustomImage', 'FromGalleryImage' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: VirtualMachineCreationSource = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum VirtualMachineCreationSource { + FromCustomImage = 'FromCustomImage', + FromGalleryImage = 'FromGalleryImage', +} + +/** + * Defines values for FileUploadOptions. + * Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: FileUploadOptions = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum FileUploadOptions { + UploadFilesAndGenerateSasTokens = 'UploadFilesAndGenerateSasTokens', + None = 'None', +} + +/** + * Defines values for PremiumDataDisk. + * Possible values include: 'Disabled', 'Enabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: PremiumDataDisk = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum PremiumDataDisk { + Disabled = 'Disabled', + Enabled = 'Enabled', +} + +/** + * Defines values for EnvironmentPermission. + * Possible values include: 'Reader', 'Contributor' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: EnvironmentPermission = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum EnvironmentPermission { + Reader = 'Reader', + Contributor = 'Contributor', +} + +/** + * Defines values for TargetCostStatus. + * Possible values include: 'Enabled', 'Disabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: TargetCostStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum TargetCostStatus { + Enabled = 'Enabled', + Disabled = 'Disabled', +} + +/** + * Defines values for ReportingCycleType. + * Possible values include: 'CalendarMonth', 'Custom' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ReportingCycleType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ReportingCycleType { + CalendarMonth = 'CalendarMonth', + Custom = 'Custom', +} + +/** + * Defines values for CostType. + * Possible values include: 'Unavailable', 'Reported', 'Projected' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: CostType = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum CostType { + Unavailable = 'Unavailable', + Reported = 'Reported', + Projected = 'Projected', +} + +/** + * Defines values for HttpStatusCode. + * Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', + * 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + * 'PartialContent', 'MultipleChoices', 'MovedPermanently', 'Redirect', + * 'SeeOther', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', + * 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + * 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', + * 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', + * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: HttpStatusCode = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum HttpStatusCode { + Continue = 'Continue', + SwitchingProtocols = 'SwitchingProtocols', + OK = 'OK', + Created = 'Created', + Accepted = 'Accepted', + NonAuthoritativeInformation = 'NonAuthoritativeInformation', + NoContent = 'NoContent', + ResetContent = 'ResetContent', + PartialContent = 'PartialContent', + MultipleChoices = 'MultipleChoices', + MovedPermanently = 'MovedPermanently', + Redirect = 'Redirect', + SeeOther = 'SeeOther', + NotModified = 'NotModified', + UseProxy = 'UseProxy', + Unused = 'Unused', + TemporaryRedirect = 'TemporaryRedirect', + BadRequest = 'BadRequest', + Unauthorized = 'Unauthorized', + PaymentRequired = 'PaymentRequired', + Forbidden = 'Forbidden', + NotFound = 'NotFound', + MethodNotAllowed = 'MethodNotAllowed', + NotAcceptable = 'NotAcceptable', + ProxyAuthenticationRequired = 'ProxyAuthenticationRequired', + RequestTimeout = 'RequestTimeout', + Conflict = 'Conflict', + Gone = 'Gone', + LengthRequired = 'LengthRequired', + PreconditionFailed = 'PreconditionFailed', + RequestEntityTooLarge = 'RequestEntityTooLarge', + RequestUriTooLong = 'RequestUriTooLong', + UnsupportedMediaType = 'UnsupportedMediaType', + RequestedRangeNotSatisfiable = 'RequestedRangeNotSatisfiable', + ExpectationFailed = 'ExpectationFailed', + UpgradeRequired = 'UpgradeRequired', + InternalServerError = 'InternalServerError', + NotImplemented = 'NotImplemented', + BadGateway = 'BadGateway', + ServiceUnavailable = 'ServiceUnavailable', + GatewayTimeout = 'GatewayTimeout', + HttpVersionNotSupported = 'HttpVersionNotSupported', +} + +/** + * Defines values for PolicyStatus. + * Possible values include: 'Enabled', 'Disabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: PolicyStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum PolicyStatus { + Enabled = 'Enabled', + Disabled = 'Disabled', +} + +/** + * Defines values for PolicyFactName. + * Possible values include: 'UserOwnedLabVmCount', + * 'UserOwnedLabPremiumVmCount', 'LabVmCount', 'LabPremiumVmCount', + * 'LabVmSize', 'GalleryImage', 'UserOwnedLabVmCountInSubnet', 'LabTargetCost', + * 'EnvironmentTemplate', 'ScheduleEditPermission' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: PolicyFactName = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum PolicyFactName { + UserOwnedLabVmCount = 'UserOwnedLabVmCount', + UserOwnedLabPremiumVmCount = 'UserOwnedLabPremiumVmCount', + LabVmCount = 'LabVmCount', + LabPremiumVmCount = 'LabPremiumVmCount', + LabVmSize = 'LabVmSize', + GalleryImage = 'GalleryImage', + UserOwnedLabVmCountInSubnet = 'UserOwnedLabVmCountInSubnet', + LabTargetCost = 'LabTargetCost', + EnvironmentTemplate = 'EnvironmentTemplate', + ScheduleEditPermission = 'ScheduleEditPermission', +} + +/** + * Defines values for PolicyEvaluatorType. + * Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: PolicyEvaluatorType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum PolicyEvaluatorType { + AllowedValuesPolicy = 'AllowedValuesPolicy', + MaxValuePolicy = 'MaxValuePolicy', +} + +/** + * Defines values for UsagePermissionType. + * Possible values include: 'Default', 'Deny', 'Allow' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: UsagePermissionType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum UsagePermissionType { + Default = 'Default', + Deny = 'Deny', + Allow = 'Allow', +} + +/** + * Contains response data for the list operation. + */ +export type ProviderOperationsListResponse = ProviderOperationResult & { + /** + * 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: ProviderOperationResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ProviderOperationsListNextResponse = ProviderOperationResult & { + /** + * 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: ProviderOperationResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type LabsListBySubscriptionResponse = LabList & { + /** + * 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: LabList; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type LabsListByResourceGroupResponse = LabList & { + /** + * 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: LabList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LabsGetResponse = Lab & { + /** + * 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: Lab; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type LabsCreateOrUpdateResponse = Lab & { + /** + * 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: Lab; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type LabsUpdateResponse = Lab & { + /** + * 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: Lab; + }; +}; + +/** + * Contains response data for the generateUploadUri operation. + */ +export type LabsGenerateUploadUriResponse = GenerateUploadUriResponse & { + /** + * 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: GenerateUploadUriResponse; + }; +}; + +/** + * Contains response data for the listVhds operation. + */ +export type LabsListVhdsResponse = LabVhdList & { + /** + * 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: LabVhdList; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type LabsBeginCreateOrUpdateResponse = Lab & { + /** + * 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: Lab; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type LabsListBySubscriptionNextResponse = LabList & { + /** + * 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: LabList; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type LabsListByResourceGroupNextResponse = LabList & { + /** + * 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: LabList; + }; +}; + +/** + * Contains response data for the listVhdsNext operation. */ -export enum PolicyStatus { - Enabled = 'Enabled', - Disabled = 'Disabled', -} +export type LabsListVhdsNextResponse = LabVhdList & { + /** + * 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: LabVhdList; + }; +}; /** - * Defines values for PolicyFactName. - * Possible values include: 'UserOwnedLabVmCount', - * 'UserOwnedLabPremiumVmCount', 'LabVmCount', 'LabPremiumVmCount', - * 'LabVmSize', 'GalleryImage', 'UserOwnedLabVmCountInSubnet', 'LabTargetCost' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PolicyFactName = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export enum PolicyFactName { - UserOwnedLabVmCount = 'UserOwnedLabVmCount', - UserOwnedLabPremiumVmCount = 'UserOwnedLabPremiumVmCount', - LabVmCount = 'LabVmCount', - LabPremiumVmCount = 'LabPremiumVmCount', - LabVmSize = 'LabVmSize', - GalleryImage = 'GalleryImage', - UserOwnedLabVmCountInSubnet = 'UserOwnedLabVmCountInSubnet', - LabTargetCost = 'LabTargetCost', -} +export type OperationsGetResponse = OperationResult & { + /** + * 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: OperationResult; + }; +}; /** - * Defines values for PolicyEvaluatorType. - * Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PolicyEvaluatorType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the listBySubscription operation. */ -export enum PolicyEvaluatorType { - AllowedValuesPolicy = 'AllowedValuesPolicy', - MaxValuePolicy = 'MaxValuePolicy', -} +export type GlobalSchedulesListBySubscriptionResponse = ScheduleList & { + /** + * 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: ScheduleList; + }; +}; /** - * Defines values for UsagePermissionType. - * Possible values include: 'Default', 'Deny', 'Allow' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: UsagePermissionType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroup operation. */ -export enum UsagePermissionType { - Default = 'Default', - Deny = 'Deny', - Allow = 'Allow', -} +export type GlobalSchedulesListByResourceGroupResponse = ScheduleList & { + /** + * 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: ScheduleList; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type ProviderOperationsListResponse = ProviderOperationResult & { +export type GlobalSchedulesGetResponse = Schedule & { /** * The underlying HTTP response. */ @@ -5243,14 +6859,14 @@ export type ProviderOperationsListResponse = ProviderOperationResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ProviderOperationResult; + parsedBody: Schedule; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ProviderOperationsListNextResponse = ProviderOperationResult & { +export type GlobalSchedulesCreateOrUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -5262,14 +6878,14 @@ export type ProviderOperationsListNextResponse = ProviderOperationResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ProviderOperationResult; + parsedBody: Schedule; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the update operation. */ -export type LabsListBySubscriptionResponse = ResponseWithContinuationLab & { +export type GlobalSchedulesUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -5281,14 +6897,52 @@ export type LabsListBySubscriptionResponse = ResponseWithContinuationLab & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationLab; + parsedBody: Schedule; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listBySubscriptionNext operation. + */ +export type GlobalSchedulesListBySubscriptionNextResponse = ScheduleList & { + /** + * 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: ScheduleList; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type GlobalSchedulesListByResourceGroupNextResponse = ScheduleList & { + /** + * 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: ScheduleList; + }; +}; + +/** + * Contains response data for the list operation. */ -export type LabsListByResourceGroupResponse = ResponseWithContinuationLab & { +export type ArtifactSourcesListResponse = ArtifactSourceList & { /** * The underlying HTTP response. */ @@ -5300,14 +6954,14 @@ export type LabsListByResourceGroupResponse = ResponseWithContinuationLab & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationLab; + parsedBody: ArtifactSourceList; }; }; /** * Contains response data for the get operation. */ -export type LabsGetResponse = Lab & { +export type ArtifactSourcesGetResponse = ArtifactSource & { /** * The underlying HTTP response. */ @@ -5319,14 +6973,14 @@ export type LabsGetResponse = Lab & { /** * The response body as parsed JSON or XML */ - parsedBody: Lab; + parsedBody: ArtifactSource; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type LabsCreateOrUpdateResponse = Lab & { +export type ArtifactSourcesCreateOrUpdateResponse = ArtifactSource & { /** * The underlying HTTP response. */ @@ -5338,14 +6992,14 @@ export type LabsCreateOrUpdateResponse = Lab & { /** * The response body as parsed JSON or XML */ - parsedBody: Lab; + parsedBody: ArtifactSource; }; }; /** * Contains response data for the update operation. */ -export type LabsUpdateResponse = Lab & { +export type ArtifactSourcesUpdateResponse = ArtifactSource & { /** * The underlying HTTP response. */ @@ -5357,14 +7011,14 @@ export type LabsUpdateResponse = Lab & { /** * The response body as parsed JSON or XML */ - parsedBody: Lab; + parsedBody: ArtifactSource; }; }; /** - * Contains response data for the generateUploadUri operation. + * Contains response data for the listNext operation. */ -export type LabsGenerateUploadUriResponse = GenerateUploadUriResponse & { +export type ArtifactSourcesListNextResponse = ArtifactSourceList & { /** * The underlying HTTP response. */ @@ -5376,14 +7030,14 @@ export type LabsGenerateUploadUriResponse = GenerateUploadUriResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: GenerateUploadUriResponse; + parsedBody: ArtifactSourceList; }; }; /** - * Contains response data for the listVhds operation. + * Contains response data for the list operation. */ -export type LabsListVhdsResponse = ResponseWithContinuationLabVhd & { +export type ArmTemplatesListResponse = ArmTemplateList & { /** * The underlying HTTP response. */ @@ -5395,14 +7049,14 @@ export type LabsListVhdsResponse = ResponseWithContinuationLabVhd & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationLabVhd; + parsedBody: ArmTemplateList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type LabsBeginCreateOrUpdateResponse = Lab & { +export type ArmTemplatesGetResponse = ArmTemplate & { /** * The underlying HTTP response. */ @@ -5414,14 +7068,14 @@ export type LabsBeginCreateOrUpdateResponse = Lab & { /** * The response body as parsed JSON or XML */ - parsedBody: Lab; + parsedBody: ArmTemplate; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listNext operation. */ -export type LabsListBySubscriptionNextResponse = ResponseWithContinuationLab & { +export type ArmTemplatesListNextResponse = ArmTemplateList & { /** * The underlying HTTP response. */ @@ -5433,14 +7087,14 @@ export type LabsListBySubscriptionNextResponse = ResponseWithContinuationLab & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationLab; + parsedBody: ArmTemplateList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the list operation. */ -export type LabsListByResourceGroupNextResponse = ResponseWithContinuationLab & { +export type ArtifactsListResponse = ArtifactList & { /** * The underlying HTTP response. */ @@ -5452,14 +7106,52 @@ export type LabsListByResourceGroupNextResponse = ResponseWithContinuationLab & /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationLab; + parsedBody: ArtifactList; }; }; /** - * Contains response data for the listVhdsNext operation. + * Contains response data for the get operation. + */ +export type ArtifactsGetResponse = Artifact & { + /** + * 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: Artifact; + }; +}; + +/** + * Contains response data for the generateArmTemplate operation. + */ +export type ArtifactsGenerateArmTemplateResponse = ArmTemplateInfo & { + /** + * 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: ArmTemplateInfo; + }; +}; + +/** + * Contains response data for the listNext operation. */ -export type LabsListVhdsNextResponse = ResponseWithContinuationLabVhd & { +export type ArtifactsListNextResponse = ArtifactList & { /** * The underlying HTTP response. */ @@ -5471,14 +7163,14 @@ export type LabsListVhdsNextResponse = ResponseWithContinuationLabVhd & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationLabVhd; + parsedBody: ArtifactList; }; }; /** * Contains response data for the get operation. */ -export type OperationsGetResponse = OperationResult & { +export type CostsGetResponse = LabCost & { /** * The underlying HTTP response. */ @@ -5490,14 +7182,14 @@ export type OperationsGetResponse = OperationResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationResult; + parsedBody: LabCost; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the createOrUpdate operation. */ -export type GlobalSchedulesListBySubscriptionResponse = ResponseWithContinuationSchedule & { +export type CostsCreateOrUpdateResponse = LabCost & { /** * The underlying HTTP response. */ @@ -5509,14 +7201,14 @@ export type GlobalSchedulesListBySubscriptionResponse = ResponseWithContinuation /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSchedule; + parsedBody: LabCost; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type GlobalSchedulesListByResourceGroupResponse = ResponseWithContinuationSchedule & { +export type CustomImagesListResponse = CustomImageList & { /** * The underlying HTTP response. */ @@ -5528,14 +7220,14 @@ export type GlobalSchedulesListByResourceGroupResponse = ResponseWithContinuatio /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSchedule; + parsedBody: CustomImageList; }; }; /** * Contains response data for the get operation. */ -export type GlobalSchedulesGetResponse = Schedule & { +export type CustomImagesGetResponse = CustomImage & { /** * The underlying HTTP response. */ @@ -5547,14 +7239,14 @@ export type GlobalSchedulesGetResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: CustomImage; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type GlobalSchedulesCreateOrUpdateResponse = Schedule & { +export type CustomImagesCreateOrUpdateResponse = CustomImage & { /** * The underlying HTTP response. */ @@ -5566,14 +7258,14 @@ export type GlobalSchedulesCreateOrUpdateResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: CustomImage; }; }; /** * Contains response data for the update operation. */ -export type GlobalSchedulesUpdateResponse = Schedule & { +export type CustomImagesUpdateResponse = CustomImage & { /** * The underlying HTTP response. */ @@ -5585,14 +7277,14 @@ export type GlobalSchedulesUpdateResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: CustomImage; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type GlobalSchedulesListBySubscriptionNextResponse = ResponseWithContinuationSchedule & { +export type CustomImagesBeginCreateOrUpdateResponse = CustomImage & { /** * The underlying HTTP response. */ @@ -5604,14 +7296,14 @@ export type GlobalSchedulesListBySubscriptionNextResponse = ResponseWithContinua /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSchedule; + parsedBody: CustomImage; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listNext operation. */ -export type GlobalSchedulesListByResourceGroupNextResponse = ResponseWithContinuationSchedule & { +export type CustomImagesListNextResponse = CustomImageList & { /** * The underlying HTTP response. */ @@ -5623,14 +7315,14 @@ export type GlobalSchedulesListByResourceGroupNextResponse = ResponseWithContinu /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSchedule; + parsedBody: CustomImageList; }; }; /** * Contains response data for the list operation. */ -export type ArtifactSourcesListResponse = ResponseWithContinuationArtifactSource & { +export type FormulasListResponse = FormulaList & { /** * The underlying HTTP response. */ @@ -5642,14 +7334,14 @@ export type ArtifactSourcesListResponse = ResponseWithContinuationArtifactSource /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationArtifactSource; + parsedBody: FormulaList; }; }; /** * Contains response data for the get operation. */ -export type ArtifactSourcesGetResponse = ArtifactSource & { +export type FormulasGetResponse = Formula & { /** * The underlying HTTP response. */ @@ -5661,14 +7353,14 @@ export type ArtifactSourcesGetResponse = ArtifactSource & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactSource; + parsedBody: Formula; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ArtifactSourcesCreateOrUpdateResponse = ArtifactSource & { +export type FormulasCreateOrUpdateResponse = Formula & { /** * The underlying HTTP response. */ @@ -5680,14 +7372,14 @@ export type ArtifactSourcesCreateOrUpdateResponse = ArtifactSource & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactSource; + parsedBody: Formula; }; }; /** * Contains response data for the update operation. */ -export type ArtifactSourcesUpdateResponse = ArtifactSource & { +export type FormulasUpdateResponse = Formula & { /** * The underlying HTTP response. */ @@ -5699,14 +7391,14 @@ export type ArtifactSourcesUpdateResponse = ArtifactSource & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactSource; + parsedBody: Formula; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ArtifactSourcesListNextResponse = ResponseWithContinuationArtifactSource & { +export type FormulasBeginCreateOrUpdateResponse = Formula & { /** * The underlying HTTP response. */ @@ -5718,14 +7410,14 @@ export type ArtifactSourcesListNextResponse = ResponseWithContinuationArtifactSo /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationArtifactSource; + parsedBody: Formula; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type ArmTemplatesListResponse = ResponseWithContinuationArmTemplate & { +export type FormulasListNextResponse = FormulaList & { /** * The underlying HTTP response. */ @@ -5737,14 +7429,14 @@ export type ArmTemplatesListResponse = ResponseWithContinuationArmTemplate & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationArmTemplate; + parsedBody: FormulaList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type ArmTemplatesGetResponse = ArmTemplate & { +export type GalleryImagesListResponse = GalleryImageList & { /** * The underlying HTTP response. */ @@ -5756,14 +7448,14 @@ export type ArmTemplatesGetResponse = ArmTemplate & { /** * The response body as parsed JSON or XML */ - parsedBody: ArmTemplate; + parsedBody: GalleryImageList; }; }; /** * Contains response data for the listNext operation. */ -export type ArmTemplatesListNextResponse = ResponseWithContinuationArmTemplate & { +export type GalleryImagesListNextResponse = GalleryImageList & { /** * The underlying HTTP response. */ @@ -5775,14 +7467,14 @@ export type ArmTemplatesListNextResponse = ResponseWithContinuationArmTemplate & /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationArmTemplate; + parsedBody: GalleryImageList; }; }; /** * Contains response data for the list operation. */ -export type ArtifactsListResponse = ResponseWithContinuationArtifact & { +export type NotificationChannelsListResponse = NotificationChannelList & { /** * The underlying HTTP response. */ @@ -5794,14 +7486,14 @@ export type ArtifactsListResponse = ResponseWithContinuationArtifact & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationArtifact; + parsedBody: NotificationChannelList; }; }; /** * Contains response data for the get operation. */ -export type ArtifactsGetResponse = Artifact & { +export type NotificationChannelsGetResponse = NotificationChannel & { /** * The underlying HTTP response. */ @@ -5813,14 +7505,14 @@ export type ArtifactsGetResponse = Artifact & { /** * The response body as parsed JSON or XML */ - parsedBody: Artifact; + parsedBody: NotificationChannel; }; }; /** - * Contains response data for the generateArmTemplate operation. + * Contains response data for the createOrUpdate operation. */ -export type ArtifactsGenerateArmTemplateResponse = ArmTemplateInfo & { +export type NotificationChannelsCreateOrUpdateResponse = NotificationChannel & { /** * The underlying HTTP response. */ @@ -5832,14 +7524,14 @@ export type ArtifactsGenerateArmTemplateResponse = ArmTemplateInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: ArmTemplateInfo; + parsedBody: NotificationChannel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type ArtifactsListNextResponse = ResponseWithContinuationArtifact & { +export type NotificationChannelsUpdateResponse = NotificationChannel & { /** * The underlying HTTP response. */ @@ -5851,14 +7543,14 @@ export type ArtifactsListNextResponse = ResponseWithContinuationArtifact & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationArtifact; + parsedBody: NotificationChannel; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type CostsGetResponse = LabCost & { +export type NotificationChannelsListNextResponse = NotificationChannelList & { /** * The underlying HTTP response. */ @@ -5870,14 +7562,14 @@ export type CostsGetResponse = LabCost & { /** * The response body as parsed JSON or XML */ - parsedBody: LabCost; + parsedBody: NotificationChannelList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the evaluatePolicies operation. */ -export type CostsCreateOrUpdateResponse = LabCost & { +export type PolicySetsEvaluatePoliciesResponse = EvaluatePoliciesResponse & { /** * The underlying HTTP response. */ @@ -5889,14 +7581,14 @@ export type CostsCreateOrUpdateResponse = LabCost & { /** * The response body as parsed JSON or XML */ - parsedBody: LabCost; + parsedBody: EvaluatePoliciesResponse; }; }; /** * Contains response data for the list operation. */ -export type CustomImagesListResponse = ResponseWithContinuationCustomImage & { +export type PoliciesListResponse = PolicyList & { /** * The underlying HTTP response. */ @@ -5908,14 +7600,14 @@ export type CustomImagesListResponse = ResponseWithContinuationCustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationCustomImage; + parsedBody: PolicyList; }; }; /** * Contains response data for the get operation. */ -export type CustomImagesGetResponse = CustomImage & { +export type PoliciesGetResponse = Policy & { /** * The underlying HTTP response. */ @@ -5927,14 +7619,14 @@ export type CustomImagesGetResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: Policy; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type CustomImagesCreateOrUpdateResponse = CustomImage & { +export type PoliciesCreateOrUpdateResponse = Policy & { /** * The underlying HTTP response. */ @@ -5946,14 +7638,14 @@ export type CustomImagesCreateOrUpdateResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: Policy; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the update operation. */ -export type CustomImagesBeginCreateOrUpdateResponse = CustomImage & { +export type PoliciesUpdateResponse = Policy & { /** * The underlying HTTP response. */ @@ -5965,14 +7657,14 @@ export type CustomImagesBeginCreateOrUpdateResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: Policy; }; }; /** * Contains response data for the listNext operation. */ -export type CustomImagesListNextResponse = ResponseWithContinuationCustomImage & { +export type PoliciesListNextResponse = PolicyList & { /** * The underlying HTTP response. */ @@ -5984,14 +7676,14 @@ export type CustomImagesListNextResponse = ResponseWithContinuationCustomImage & /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationCustomImage; + parsedBody: PolicyList; }; }; /** * Contains response data for the list operation. */ -export type FormulasListResponse = ResponseWithContinuationFormula & { +export type SchedulesListResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -6003,14 +7695,14 @@ export type FormulasListResponse = ResponseWithContinuationFormula & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationFormula; + parsedBody: ScheduleList; }; }; /** * Contains response data for the get operation. */ -export type FormulasGetResponse = Formula & { +export type SchedulesGetResponse = Schedule & { /** * The underlying HTTP response. */ @@ -6022,14 +7714,14 @@ export type FormulasGetResponse = Formula & { /** * The response body as parsed JSON or XML */ - parsedBody: Formula; + parsedBody: Schedule; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type FormulasCreateOrUpdateResponse = Formula & { +export type SchedulesCreateOrUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -6041,14 +7733,14 @@ export type FormulasCreateOrUpdateResponse = Formula & { /** * The response body as parsed JSON or XML */ - parsedBody: Formula; + parsedBody: Schedule; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the update operation. */ -export type FormulasBeginCreateOrUpdateResponse = Formula & { +export type SchedulesUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -6060,14 +7752,14 @@ export type FormulasBeginCreateOrUpdateResponse = Formula & { /** * The response body as parsed JSON or XML */ - parsedBody: Formula; + parsedBody: Schedule; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listApplicable operation. */ -export type FormulasListNextResponse = ResponseWithContinuationFormula & { +export type SchedulesListApplicableResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -6079,14 +7771,14 @@ export type FormulasListNextResponse = ResponseWithContinuationFormula & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationFormula; + parsedBody: ScheduleList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type GalleryImagesListResponse = ResponseWithContinuationGalleryImage & { +export type SchedulesListNextResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -6098,14 +7790,14 @@ export type GalleryImagesListResponse = ResponseWithContinuationGalleryImage & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationGalleryImage; + parsedBody: ScheduleList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listApplicableNext operation. */ -export type GalleryImagesListNextResponse = ResponseWithContinuationGalleryImage & { +export type SchedulesListApplicableNextResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -6117,14 +7809,14 @@ export type GalleryImagesListNextResponse = ResponseWithContinuationGalleryImage /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationGalleryImage; + parsedBody: ScheduleList; }; }; /** * Contains response data for the list operation. */ -export type NotificationChannelsListResponse = ResponseWithContinuationNotificationChannel & { +export type ServiceRunnersListResponse = ServiceRunnerList & { /** * The underlying HTTP response. */ @@ -6136,14 +7828,14 @@ export type NotificationChannelsListResponse = ResponseWithContinuationNotificat /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationNotificationChannel; + parsedBody: ServiceRunnerList; }; }; /** * Contains response data for the get operation. */ -export type NotificationChannelsGetResponse = NotificationChannel & { +export type ServiceRunnersGetResponse = ServiceRunner & { /** * The underlying HTTP response. */ @@ -6155,14 +7847,14 @@ export type NotificationChannelsGetResponse = NotificationChannel & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannel; + parsedBody: ServiceRunner; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type NotificationChannelsCreateOrUpdateResponse = NotificationChannel & { +export type ServiceRunnersCreateOrUpdateResponse = ServiceRunner & { /** * The underlying HTTP response. */ @@ -6174,14 +7866,14 @@ export type NotificationChannelsCreateOrUpdateResponse = NotificationChannel & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannel; + parsedBody: ServiceRunner; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type NotificationChannelsUpdateResponse = NotificationChannel & { +export type ServiceRunnersListNextResponse = ServiceRunnerList & { /** * The underlying HTTP response. */ @@ -6193,14 +7885,14 @@ export type NotificationChannelsUpdateResponse = NotificationChannel & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannel; + parsedBody: ServiceRunnerList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type NotificationChannelsListNextResponse = ResponseWithContinuationNotificationChannel & { +export type UsersListResponse = UserList & { /** * The underlying HTTP response. */ @@ -6212,14 +7904,14 @@ export type NotificationChannelsListNextResponse = ResponseWithContinuationNotif /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationNotificationChannel; + parsedBody: UserList; }; }; /** - * Contains response data for the evaluatePolicies operation. + * Contains response data for the get operation. */ -export type PolicySetsEvaluatePoliciesResponse = EvaluatePoliciesResponse & { +export type UsersGetResponse = User & { /** * The underlying HTTP response. */ @@ -6231,14 +7923,14 @@ export type PolicySetsEvaluatePoliciesResponse = EvaluatePoliciesResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: EvaluatePoliciesResponse; + parsedBody: User; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type PoliciesListResponse = ResponseWithContinuationPolicy & { +export type UsersCreateOrUpdateResponse = User & { /** * The underlying HTTP response. */ @@ -6250,14 +7942,14 @@ export type PoliciesListResponse = ResponseWithContinuationPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationPolicy; + parsedBody: User; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type PoliciesGetResponse = Policy & { +export type UsersUpdateResponse = User & { /** * The underlying HTTP response. */ @@ -6269,14 +7961,14 @@ export type PoliciesGetResponse = Policy & { /** * The response body as parsed JSON or XML */ - parsedBody: Policy; + parsedBody: User; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type PoliciesCreateOrUpdateResponse = Policy & { +export type UsersBeginCreateOrUpdateResponse = User & { /** * The underlying HTTP response. */ @@ -6288,14 +7980,14 @@ export type PoliciesCreateOrUpdateResponse = Policy & { /** * The response body as parsed JSON or XML */ - parsedBody: Policy; + parsedBody: User; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type PoliciesUpdateResponse = Policy & { +export type UsersListNextResponse = UserList & { /** * The underlying HTTP response. */ @@ -6307,14 +7999,14 @@ export type PoliciesUpdateResponse = Policy & { /** * The response body as parsed JSON or XML */ - parsedBody: Policy; + parsedBody: UserList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type PoliciesListNextResponse = ResponseWithContinuationPolicy & { +export type DisksListResponse = DiskList & { /** * The underlying HTTP response. */ @@ -6326,14 +8018,14 @@ export type PoliciesListNextResponse = ResponseWithContinuationPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationPolicy; + parsedBody: DiskList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type SchedulesListResponse = ResponseWithContinuationSchedule & { +export type DisksGetResponse = Disk & { /** * The underlying HTTP response. */ @@ -6345,14 +8037,14 @@ export type SchedulesListResponse = ResponseWithContinuationSchedule & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSchedule; + parsedBody: Disk; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type SchedulesGetResponse = Schedule & { +export type DisksCreateOrUpdateResponse = Disk & { /** * The underlying HTTP response. */ @@ -6364,14 +8056,14 @@ export type SchedulesGetResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: Disk; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type SchedulesCreateOrUpdateResponse = Schedule & { +export type DisksUpdateResponse = Disk & { /** * The underlying HTTP response. */ @@ -6383,14 +8075,14 @@ export type SchedulesCreateOrUpdateResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: Disk; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type SchedulesUpdateResponse = Schedule & { +export type DisksBeginCreateOrUpdateResponse = Disk & { /** * The underlying HTTP response. */ @@ -6402,14 +8094,14 @@ export type SchedulesUpdateResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: Disk; }; }; /** - * Contains response data for the listApplicable operation. + * Contains response data for the listNext operation. */ -export type SchedulesListApplicableResponse = ResponseWithContinuationSchedule & { +export type DisksListNextResponse = DiskList & { /** * The underlying HTTP response. */ @@ -6421,14 +8113,14 @@ export type SchedulesListApplicableResponse = ResponseWithContinuationSchedule & /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSchedule; + parsedBody: DiskList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type SchedulesListNextResponse = ResponseWithContinuationSchedule & { +export type EnvironmentsListResponse = DtlEnvironmentList & { /** * The underlying HTTP response. */ @@ -6440,14 +8132,14 @@ export type SchedulesListNextResponse = ResponseWithContinuationSchedule & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSchedule; + parsedBody: DtlEnvironmentList; }; }; /** - * Contains response data for the listApplicableNext operation. + * Contains response data for the get operation. */ -export type SchedulesListApplicableNextResponse = ResponseWithContinuationSchedule & { +export type EnvironmentsGetResponse = DtlEnvironment & { /** * The underlying HTTP response. */ @@ -6459,14 +8151,14 @@ export type SchedulesListApplicableNextResponse = ResponseWithContinuationSchedu /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSchedule; + parsedBody: DtlEnvironment; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type ServiceRunnersListResponse = ResponseWithContinuationServiceRunner & { +export type EnvironmentsCreateOrUpdateResponse = DtlEnvironment & { /** * The underlying HTTP response. */ @@ -6478,14 +8170,14 @@ export type ServiceRunnersListResponse = ResponseWithContinuationServiceRunner & /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationServiceRunner; + parsedBody: DtlEnvironment; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type ServiceRunnersGetResponse = ServiceRunner & { +export type EnvironmentsUpdateResponse = DtlEnvironment & { /** * The underlying HTTP response. */ @@ -6497,14 +8189,14 @@ export type ServiceRunnersGetResponse = ServiceRunner & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceRunner; + parsedBody: DtlEnvironment; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServiceRunnersCreateOrUpdateResponse = ServiceRunner & { +export type EnvironmentsBeginCreateOrUpdateResponse = DtlEnvironment & { /** * The underlying HTTP response. */ @@ -6516,14 +8208,14 @@ export type ServiceRunnersCreateOrUpdateResponse = ServiceRunner & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceRunner; + parsedBody: DtlEnvironment; }; }; /** * Contains response data for the listNext operation. */ -export type ServiceRunnersListNextResponse = ResponseWithContinuationServiceRunner & { +export type EnvironmentsListNextResponse = DtlEnvironmentList & { /** * The underlying HTTP response. */ @@ -6535,14 +8227,14 @@ export type ServiceRunnersListNextResponse = ResponseWithContinuationServiceRunn /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationServiceRunner; + parsedBody: DtlEnvironmentList; }; }; /** * Contains response data for the list operation. */ -export type UsersListResponse = ResponseWithContinuationUser & { +export type SecretsListResponse = SecretList & { /** * The underlying HTTP response. */ @@ -6554,14 +8246,14 @@ export type UsersListResponse = ResponseWithContinuationUser & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationUser; + parsedBody: SecretList; }; }; /** * Contains response data for the get operation. */ -export type UsersGetResponse = User & { +export type SecretsGetResponse = Secret & { /** * The underlying HTTP response. */ @@ -6573,14 +8265,14 @@ export type UsersGetResponse = User & { /** * The response body as parsed JSON or XML */ - parsedBody: User; + parsedBody: Secret; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type UsersCreateOrUpdateResponse = User & { +export type SecretsCreateOrUpdateResponse = Secret & { /** * The underlying HTTP response. */ @@ -6592,14 +8284,14 @@ export type UsersCreateOrUpdateResponse = User & { /** * The response body as parsed JSON or XML */ - parsedBody: User; + parsedBody: Secret; }; }; /** * Contains response data for the update operation. */ -export type UsersUpdateResponse = User & { +export type SecretsUpdateResponse = Secret & { /** * The underlying HTTP response. */ @@ -6611,14 +8303,14 @@ export type UsersUpdateResponse = User & { /** * The response body as parsed JSON or XML */ - parsedBody: User; + parsedBody: Secret; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type UsersListNextResponse = ResponseWithContinuationUser & { +export type SecretsBeginCreateOrUpdateResponse = Secret & { /** * The underlying HTTP response. */ @@ -6630,14 +8322,14 @@ export type UsersListNextResponse = ResponseWithContinuationUser & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationUser; + parsedBody: Secret; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type DisksListResponse = ResponseWithContinuationDisk & { +export type SecretsListNextResponse = SecretList & { /** * The underlying HTTP response. */ @@ -6649,14 +8341,14 @@ export type DisksListResponse = ResponseWithContinuationDisk & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationDisk; + parsedBody: SecretList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type DisksGetResponse = Disk & { +export type ServiceFabricsListResponse = ServiceFabricList & { /** * The underlying HTTP response. */ @@ -6668,14 +8360,14 @@ export type DisksGetResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: ServiceFabricList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type DisksCreateOrUpdateResponse = Disk & { +export type ServiceFabricsGetResponse = ServiceFabric & { /** * The underlying HTTP response. */ @@ -6687,14 +8379,14 @@ export type DisksCreateOrUpdateResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: ServiceFabric; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type DisksBeginCreateOrUpdateResponse = Disk & { +export type ServiceFabricsCreateOrUpdateResponse = ServiceFabric & { /** * The underlying HTTP response. */ @@ -6706,14 +8398,14 @@ export type DisksBeginCreateOrUpdateResponse = Disk & { /** * The response body as parsed JSON or XML */ - parsedBody: Disk; + parsedBody: ServiceFabric; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type DisksListNextResponse = ResponseWithContinuationDisk & { +export type ServiceFabricsUpdateResponse = ServiceFabric & { /** * The underlying HTTP response. */ @@ -6725,14 +8417,14 @@ export type DisksListNextResponse = ResponseWithContinuationDisk & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationDisk; + parsedBody: ServiceFabric; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listApplicableSchedules operation. */ -export type EnvironmentsListResponse = ResponseWithContinuationDtlEnvironment & { +export type ServiceFabricsListApplicableSchedulesResponse = ApplicableSchedule & { /** * The underlying HTTP response. */ @@ -6744,14 +8436,14 @@ export type EnvironmentsListResponse = ResponseWithContinuationDtlEnvironment & /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationDtlEnvironment; + parsedBody: ApplicableSchedule; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type EnvironmentsGetResponse = DtlEnvironment & { +export type ServiceFabricsBeginCreateOrUpdateResponse = ServiceFabric & { /** * The underlying HTTP response. */ @@ -6763,14 +8455,14 @@ export type EnvironmentsGetResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: ServiceFabric; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type EnvironmentsCreateOrUpdateResponse = DtlEnvironment & { +export type ServiceFabricsListNextResponse = ServiceFabricList & { /** * The underlying HTTP response. */ @@ -6782,14 +8474,14 @@ export type EnvironmentsCreateOrUpdateResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: ServiceFabricList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the list operation. */ -export type EnvironmentsBeginCreateOrUpdateResponse = DtlEnvironment & { +export type ServiceFabricSchedulesListResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -6801,14 +8493,14 @@ export type EnvironmentsBeginCreateOrUpdateResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: ScheduleList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type EnvironmentsListNextResponse = ResponseWithContinuationDtlEnvironment & { +export type ServiceFabricSchedulesGetResponse = Schedule & { /** * The underlying HTTP response. */ @@ -6820,14 +8512,14 @@ export type EnvironmentsListNextResponse = ResponseWithContinuationDtlEnvironmen /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationDtlEnvironment; + parsedBody: Schedule; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type SecretsListResponse = ResponseWithContinuationSecret & { +export type ServiceFabricSchedulesCreateOrUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -6839,14 +8531,14 @@ export type SecretsListResponse = ResponseWithContinuationSecret & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSecret; + parsedBody: Schedule; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type SecretsGetResponse = Secret & { +export type ServiceFabricSchedulesUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -6858,14 +8550,14 @@ export type SecretsGetResponse = Secret & { /** * The response body as parsed JSON or XML */ - parsedBody: Secret; + parsedBody: Schedule; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type SecretsCreateOrUpdateResponse = Secret & { +export type ServiceFabricSchedulesListNextResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -6877,14 +8569,14 @@ export type SecretsCreateOrUpdateResponse = Secret & { /** * The response body as parsed JSON or XML */ - parsedBody: Secret; + parsedBody: ScheduleList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type SecretsListNextResponse = ResponseWithContinuationSecret & { +export type VirtualMachinesListResponse = LabVirtualMachineList & { /** * The underlying HTTP response. */ @@ -6896,14 +8588,14 @@ export type SecretsListNextResponse = ResponseWithContinuationSecret & { /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSecret; + parsedBody: LabVirtualMachineList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type VirtualMachinesListResponse = ResponseWithContinuationLabVirtualMachine & { +export type VirtualMachinesGetResponse = LabVirtualMachine & { /** * The underlying HTTP response. */ @@ -6915,14 +8607,14 @@ export type VirtualMachinesListResponse = ResponseWithContinuationLabVirtualMach /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationLabVirtualMachine; + parsedBody: LabVirtualMachine; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type VirtualMachinesGetResponse = LabVirtualMachine & { +export type VirtualMachinesCreateOrUpdateResponse = LabVirtualMachine & { /** * The underlying HTTP response. */ @@ -6939,9 +8631,9 @@ export type VirtualMachinesGetResponse = LabVirtualMachine & { }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type VirtualMachinesCreateOrUpdateResponse = LabVirtualMachine & { +export type VirtualMachinesUpdateResponse = LabVirtualMachine & { /** * The underlying HTTP response. */ @@ -6958,9 +8650,9 @@ export type VirtualMachinesCreateOrUpdateResponse = LabVirtualMachine & { }; /** - * Contains response data for the update operation. + * Contains response data for the getRdpFileContents operation. */ -export type VirtualMachinesUpdateResponse = LabVirtualMachine & { +export type VirtualMachinesGetRdpFileContentsResponse = RdpConnection & { /** * The underlying HTTP response. */ @@ -6972,7 +8664,7 @@ export type VirtualMachinesUpdateResponse = LabVirtualMachine & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVirtualMachine; + parsedBody: RdpConnection; }; }; @@ -7017,7 +8709,7 @@ export type VirtualMachinesBeginCreateOrUpdateResponse = LabVirtualMachine & { /** * Contains response data for the listNext operation. */ -export type VirtualMachinesListNextResponse = ResponseWithContinuationLabVirtualMachine & { +export type VirtualMachinesListNextResponse = LabVirtualMachineList & { /** * The underlying HTTP response. */ @@ -7029,14 +8721,14 @@ export type VirtualMachinesListNextResponse = ResponseWithContinuationLabVirtual /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationLabVirtualMachine; + parsedBody: LabVirtualMachineList; }; }; /** * Contains response data for the list operation. */ -export type VirtualMachineSchedulesListResponse = ResponseWithContinuationSchedule & { +export type VirtualMachineSchedulesListResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -7048,7 +8740,7 @@ export type VirtualMachineSchedulesListResponse = ResponseWithContinuationSchedu /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSchedule; + parsedBody: ScheduleList; }; }; @@ -7112,7 +8804,7 @@ export type VirtualMachineSchedulesUpdateResponse = Schedule & { /** * Contains response data for the listNext operation. */ -export type VirtualMachineSchedulesListNextResponse = ResponseWithContinuationSchedule & { +export type VirtualMachineSchedulesListNextResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -7124,14 +8816,14 @@ export type VirtualMachineSchedulesListNextResponse = ResponseWithContinuationSc /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationSchedule; + parsedBody: ScheduleList; }; }; /** * Contains response data for the list operation. */ -export type VirtualNetworksListResponse = ResponseWithContinuationVirtualNetwork & { +export type VirtualNetworksListResponse = VirtualNetworkList & { /** * The underlying HTTP response. */ @@ -7143,7 +8835,7 @@ export type VirtualNetworksListResponse = ResponseWithContinuationVirtualNetwork /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationVirtualNetwork; + parsedBody: VirtualNetworkList; }; }; @@ -7226,7 +8918,7 @@ export type VirtualNetworksBeginCreateOrUpdateResponse = VirtualNetwork & { /** * Contains response data for the listNext operation. */ -export type VirtualNetworksListNextResponse = ResponseWithContinuationVirtualNetwork & { +export type VirtualNetworksListNextResponse = VirtualNetworkList & { /** * The underlying HTTP response. */ @@ -7238,6 +8930,6 @@ export type VirtualNetworksListNextResponse = ResponseWithContinuationVirtualNet /** * The response body as parsed JSON or XML */ - parsedBody: ResponseWithContinuationVirtualNetwork; + parsedBody: VirtualNetworkList; }; }; diff --git a/packages/@azure/arm-devtestlabs/lib/models/labsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/labsMappers.ts index c766d79187ec..1d5c7a4e03be 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/labsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/labsMappers.ts @@ -9,26 +9,29 @@ */ export { - ResponseWithContinuationLab, + LabList, Lab, Resource, BaseResource, + LabAnnouncementProperties, + LabSupportProperties, CloudError, LabFragment, + UpdateResource, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachineCreationParameter, BulkCreationParameters, ArtifactInstallProperties, ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, - ApplicableSchedule, - Schedule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, WeekDetails, DayDetails, HourDetails, @@ -36,8 +39,11 @@ export { ExportResourceUsageParameters, GenerateUploadUriParameter, GenerateUploadUriResponse, - ResponseWithContinuationLabVhd, + ImportLabVirtualMachineRequest, + LabVhdList, LabVhd, + Schedule, + ApplicableSchedule, ScheduleFragment, WeekDetailsFragment, DayDetailsFragment, @@ -54,12 +60,39 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, LabCost, TargetCostProperties, @@ -69,17 +102,10 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -87,6 +113,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -103,7 +132,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/mappers.ts b/packages/@azure/arm-devtestlabs/lib/models/mappers.ts index 719ff11214ed..173288f961bf 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/mappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/mappers.ts @@ -96,6 +96,18 @@ export const NotificationSettings: msRest.CompositeMapper = { type: { name: "String" } + }, + emailRecipient: { + serializedName: "emailRecipient", + type: { + name: "String" + } + }, + notificationLocale: { + serializedName: "notificationLocale", + type: { + name: "String" + } } } } @@ -216,12 +228,14 @@ export const Schedule: msRest.CompositeMapper = { } }, provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { + readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -338,6 +352,39 @@ export const NotificationSettingsFragment: msRest.CompositeMapper = { type: { name: "String" } + }, + emailRecipient: { + serializedName: "emailRecipient", + type: { + name: "String" + } + }, + notificationLocale: { + serializedName: "notificationLocale", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateResource: msRest.CompositeMapper = { + serializedName: "UpdateResource", + type: { + name: "Composite", + className: "UpdateResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } @@ -349,7 +396,7 @@ export const ScheduleFragment: msRest.CompositeMapper = { name: "Composite", className: "ScheduleFragment", modelProperties: { - ...Resource.type.modelProperties, + ...UpdateResource.type.modelProperties, status: { serializedName: "properties.status", type: { @@ -401,18 +448,6 @@ export const ScheduleFragment: msRest.CompositeMapper = { type: { name: "String" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" - } } } } @@ -424,7 +459,7 @@ export const ApplicableScheduleFragment: msRest.CompositeMapper = { name: "Composite", className: "ApplicableScheduleFragment", modelProperties: { - ...Resource.type.modelProperties, + ...UpdateResource.type.modelProperties, labVmsShutdown: { serializedName: "properties.labVmsShutdown", type: { @@ -477,6 +512,12 @@ export const ArtifactInstallProperties: msRest.CompositeMapper = { name: "String" } }, + artifactTitle: { + serializedName: "artifactTitle", + type: { + name: "String" + } + }, parameters: { serializedName: "parameters", type: { @@ -622,6 +663,13 @@ export const ArmTemplate: msRest.CompositeMapper = { } } } + }, + enabled: { + readOnly: true, + serializedName: "properties.enabled", + type: { + name: "Boolean" + } } } } @@ -671,6 +719,28 @@ export const ArmTemplateParameterProperties: msRest.CompositeMapper = { } }; +export const ArmTemplateParameterPropertiesFragment: msRest.CompositeMapper = { + serializedName: "ArmTemplateParameterPropertiesFragment", + type: { + name: "Composite", + className: "ArmTemplateParameterPropertiesFragment", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + export const Artifact: msRest.CompositeMapper = { serializedName: "Artifact", type: { @@ -828,6 +898,12 @@ export const ArtifactInstallPropertiesFragment: msRest.CompositeMapper = { name: "String" } }, + artifactTitle: { + serializedName: "artifactTitle", + type: { + name: "String" + } + }, parameters: { serializedName: "parameters", type: { @@ -931,12 +1007,14 @@ export const ArtifactSource: msRest.CompositeMapper = { } }, provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { + readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -952,7 +1030,7 @@ export const ArtifactSourceFragment: msRest.CompositeMapper = { name: "Composite", className: "ArtifactSourceFragment", modelProperties: { - ...Resource.type.modelProperties, + ...UpdateResource.type.modelProperties, displayName: { serializedName: "properties.displayName", type: { @@ -1000,18 +1078,6 @@ export const ArtifactSourceFragment: msRest.CompositeMapper = { type: { name: "String" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" - } } } } @@ -1061,6 +1127,34 @@ export const AttachNewDataDiskOptions: msRest.CompositeMapper = { } }; +export const AttachNewDataDiskOptionsFragment: msRest.CompositeMapper = { + serializedName: "AttachNewDataDiskOptionsFragment", + type: { + name: "Composite", + className: "AttachNewDataDiskOptionsFragment", + modelProperties: { + diskSizeGiB: { + serializedName: "diskSizeGiB", + type: { + name: "Number" + } + }, + diskName: { + serializedName: "diskName", + type: { + name: "String" + } + }, + diskType: { + serializedName: "diskType", + type: { + name: "String" + } + } + } + } +}; + export const BulkCreationParameters: msRest.CompositeMapper = { serializedName: "BulkCreationParameters", type: { @@ -1077,6 +1171,22 @@ export const BulkCreationParameters: msRest.CompositeMapper = { } }; +export const BulkCreationParametersFragment: msRest.CompositeMapper = { + serializedName: "BulkCreationParametersFragment", + type: { + name: "Composite", + className: "BulkCreationParametersFragment", + modelProperties: { + instanceCount: { + serializedName: "instanceCount", + type: { + name: "Number" + } + } + } + } +}; + export const ComputeDataDisk: msRest.CompositeMapper = { serializedName: "ComputeDataDisk", type: { @@ -1487,6 +1597,56 @@ export const CustomImagePropertiesCustom: msRest.CompositeMapper = { } }; +export const DataDiskStorageTypeInfo: msRest.CompositeMapper = { + serializedName: "DataDiskStorageTypeInfo", + type: { + name: "Composite", + className: "DataDiskStorageTypeInfo", + modelProperties: { + lun: { + serializedName: "lun", + type: { + name: "String" + } + }, + storageType: { + serializedName: "storageType", + type: { + name: "String" + } + } + } + } +}; + +export const CustomImagePropertiesFromPlan: msRest.CompositeMapper = { + serializedName: "CustomImagePropertiesFromPlan", + type: { + name: "Composite", + className: "CustomImagePropertiesFromPlan", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + publisher: { + serializedName: "publisher", + type: { + name: "String" + } + }, + offer: { + serializedName: "offer", + type: { + name: "String" + } + } + } + } +}; + export const CustomImage: msRest.CompositeMapper = { serializedName: "CustomImage", type: { @@ -1533,43 +1693,47 @@ export const CustomImage: msRest.CompositeMapper = { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + managedSnapshotId: { + serializedName: "properties.managedSnapshotId", type: { name: "String" } }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", + dataDiskStorageInfo: { + serializedName: "properties.dataDiskStorageInfo", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataDiskStorageTypeInfo" + } + } } - } - } - } -}; - -export const DataDiskProperties: msRest.CompositeMapper = { - serializedName: "DataDiskProperties", - type: { - name: "Composite", - className: "DataDiskProperties", - modelProperties: { - attachNewDataDiskOptions: { - serializedName: "attachNewDataDiskOptions", + }, + customImagePlan: { + serializedName: "properties.customImagePlan", type: { name: "Composite", - className: "AttachNewDataDiskOptions" + className: "CustomImagePropertiesFromPlan" } }, - existingLabDiskId: { - serializedName: "existingLabDiskId", + isPlanAuthorized: { + serializedName: "properties.isPlanAuthorized", + type: { + name: "Boolean" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - hostCaching: { - serializedName: "hostCaching", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", type: { name: "String" } @@ -1578,14 +1742,14 @@ export const DataDiskProperties: msRest.CompositeMapper = { } }; -export const DetachDataDiskProperties: msRest.CompositeMapper = { - serializedName: "DetachDataDiskProperties", +export const WindowsOsInfoFragment: msRest.CompositeMapper = { + serializedName: "WindowsOsInfoFragment", type: { name: "Composite", - className: "DetachDataDiskProperties", + className: "WindowsOsInfoFragment", modelProperties: { - existingLabDiskId: { - serializedName: "existingLabDiskId", + windowsOsState: { + serializedName: "windowsOsState", type: { name: "String" } @@ -1594,14 +1758,14 @@ export const DetachDataDiskProperties: msRest.CompositeMapper = { } }; -export const DetachDiskProperties: msRest.CompositeMapper = { - serializedName: "DetachDiskProperties", +export const LinuxOsInfoFragment: msRest.CompositeMapper = { + serializedName: "LinuxOsInfoFragment", type: { name: "Composite", - className: "DetachDiskProperties", + className: "LinuxOsInfoFragment", modelProperties: { - leasedByLabVmId: { - serializedName: "leasedByLabVmId", + linuxOsState: { + serializedName: "linuxOsState", type: { name: "String" } @@ -1610,70 +1774,106 @@ export const DetachDiskProperties: msRest.CompositeMapper = { } }; -export const Disk: msRest.CompositeMapper = { - serializedName: "Disk", +export const CustomImagePropertiesFromVmFragment: msRest.CompositeMapper = { + serializedName: "CustomImagePropertiesFromVmFragment", type: { name: "Composite", - className: "Disk", + className: "CustomImagePropertiesFromVmFragment", modelProperties: { - ...Resource.type.modelProperties, - diskType: { - serializedName: "properties.diskType", + sourceVmId: { + serializedName: "sourceVmId", type: { name: "String" } }, - diskSizeGiB: { - serializedName: "properties.diskSizeGiB", + windowsOsInfo: { + serializedName: "windowsOsInfo", type: { - name: "Number" + name: "Composite", + className: "WindowsOsInfoFragment" } }, - leasedByLabVmId: { - serializedName: "properties.leasedByLabVmId", + linuxOsInfo: { + serializedName: "linuxOsInfo", type: { - name: "String" + name: "Composite", + className: "LinuxOsInfoFragment" } - }, - diskBlobName: { - serializedName: "properties.diskBlobName", - type: { + } + } + } +}; + +export const CustomImagePropertiesCustomFragment: msRest.CompositeMapper = { + serializedName: "CustomImagePropertiesCustomFragment", + type: { + name: "Composite", + className: "CustomImagePropertiesCustomFragment", + modelProperties: { + imageName: { + serializedName: "imageName", + type: { name: "String" } }, - diskUri: { - serializedName: "properties.diskUri", + sysPrep: { + serializedName: "sysPrep", type: { - name: "String" + name: "Boolean" } }, - createdDate: { - readOnly: true, - serializedName: "properties.createdDate", + osType: { + serializedName: "osType", type: { - name: "DateTime" + name: "String" } - }, - hostCaching: { - serializedName: "properties.hostCaching", + } + } + } +}; + +export const DataDiskStorageTypeInfoFragment: msRest.CompositeMapper = { + serializedName: "DataDiskStorageTypeInfoFragment", + type: { + name: "Composite", + className: "DataDiskStorageTypeInfoFragment", + modelProperties: { + lun: { + serializedName: "lun", type: { name: "String" } }, - managedDiskId: { - serializedName: "properties.managedDiskId", + storageType: { + serializedName: "storageType", + type: { + name: "String" + } + } + } + } +}; + +export const CustomImagePropertiesFromPlanFragment: msRest.CompositeMapper = { + serializedName: "CustomImagePropertiesFromPlanFragment", + type: { + name: "Composite", + className: "CustomImagePropertiesFromPlanFragment", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + publisher: { + serializedName: "publisher", type: { name: "String" } }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", + offer: { + serializedName: "offer", type: { name: "String" } @@ -1682,176 +1882,1134 @@ export const Disk: msRest.CompositeMapper = { } }; -export const EnvironmentDeploymentProperties: msRest.CompositeMapper = { - serializedName: "EnvironmentDeploymentProperties", +export const CustomImageFragment: msRest.CompositeMapper = { + serializedName: "CustomImageFragment", type: { name: "Composite", - className: "EnvironmentDeploymentProperties", + className: "CustomImageFragment", modelProperties: { - armTemplateId: { - serializedName: "armTemplateId", + ...UpdateResource.type.modelProperties, + vm: { + serializedName: "properties.vm", + type: { + name: "Composite", + className: "CustomImagePropertiesFromVmFragment" + } + }, + vhd: { + serializedName: "properties.vhd", + type: { + name: "Composite", + className: "CustomImagePropertiesCustomFragment" + } + }, + description: { + serializedName: "properties.description", type: { name: "String" } }, - parameters: { - serializedName: "parameters", + author: { + serializedName: "properties.author", + type: { + name: "String" + } + }, + managedImageId: { + serializedName: "properties.managedImageId", + type: { + name: "String" + } + }, + managedSnapshotId: { + serializedName: "properties.managedSnapshotId", + type: { + name: "String" + } + }, + dataDiskStorageInfo: { + serializedName: "properties.dataDiskStorageInfo", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ArmTemplateParameterProperties" + className: "DataDiskStorageTypeInfoFragment" } } } + }, + customImagePlan: { + serializedName: "properties.customImagePlan", + type: { + name: "Composite", + className: "CustomImagePropertiesFromPlanFragment" + } + }, + isPlanAuthorized: { + serializedName: "properties.isPlanAuthorized", + type: { + name: "Boolean" + } } } } }; -export const DtlEnvironment: msRest.CompositeMapper = { - serializedName: "DtlEnvironment", +export const DataDiskProperties: msRest.CompositeMapper = { + serializedName: "DataDiskProperties", type: { name: "Composite", - className: "DtlEnvironment", + className: "DataDiskProperties", modelProperties: { - ...Resource.type.modelProperties, - deploymentProperties: { - serializedName: "properties.deploymentProperties", + attachNewDataDiskOptions: { + serializedName: "attachNewDataDiskOptions", type: { name: "Composite", - className: "EnvironmentDeploymentProperties" + className: "AttachNewDataDiskOptions" + } + }, + existingLabDiskId: { + serializedName: "existingLabDiskId", + type: { + name: "String" + } + }, + hostCaching: { + serializedName: "hostCaching", + type: { + name: "String" + } + } + } + } +}; + +export const DataDiskPropertiesFragment: msRest.CompositeMapper = { + serializedName: "DataDiskPropertiesFragment", + type: { + name: "Composite", + className: "DataDiskPropertiesFragment", + modelProperties: { + attachNewDataDiskOptions: { + serializedName: "attachNewDataDiskOptions", + type: { + name: "Composite", + className: "AttachNewDataDiskOptionsFragment" + } + }, + existingLabDiskId: { + serializedName: "existingLabDiskId", + type: { + name: "String" + } + }, + hostCaching: { + serializedName: "hostCaching", + type: { + name: "String" + } + } + } + } +}; + +export const DetachDataDiskProperties: msRest.CompositeMapper = { + serializedName: "DetachDataDiskProperties", + type: { + name: "Composite", + className: "DetachDataDiskProperties", + modelProperties: { + existingLabDiskId: { + serializedName: "existingLabDiskId", + type: { + name: "String" + } + } + } + } +}; + +export const DetachDiskProperties: msRest.CompositeMapper = { + serializedName: "DetachDiskProperties", + type: { + name: "Composite", + className: "DetachDiskProperties", + modelProperties: { + leasedByLabVmId: { + serializedName: "leasedByLabVmId", + type: { + name: "String" + } + } + } + } +}; + +export const Disk: msRest.CompositeMapper = { + serializedName: "Disk", + type: { + name: "Composite", + className: "Disk", + modelProperties: { + ...Resource.type.modelProperties, + diskType: { + serializedName: "properties.diskType", + type: { + name: "String" + } + }, + diskSizeGiB: { + serializedName: "properties.diskSizeGiB", + type: { + name: "Number" + } + }, + leasedByLabVmId: { + serializedName: "properties.leasedByLabVmId", + type: { + name: "String" + } + }, + diskBlobName: { + serializedName: "properties.diskBlobName", + type: { + name: "String" + } + }, + diskUri: { + serializedName: "properties.diskUri", + type: { + name: "String" + } + }, + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + hostCaching: { + serializedName: "properties.hostCaching", + type: { + name: "String" + } + }, + managedDiskId: { + serializedName: "properties.managedDiskId", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + } + } + } +}; + +export const DiskFragment: msRest.CompositeMapper = { + serializedName: "DiskFragment", + type: { + name: "Composite", + className: "DiskFragment", + modelProperties: { + ...UpdateResource.type.modelProperties, + diskType: { + serializedName: "properties.diskType", + type: { + name: "String" + } + }, + diskSizeGiB: { + serializedName: "properties.diskSizeGiB", + type: { + name: "Number" + } + }, + leasedByLabVmId: { + serializedName: "properties.leasedByLabVmId", + type: { + name: "String" + } + }, + diskBlobName: { + serializedName: "properties.diskBlobName", + type: { + name: "String" + } + }, + diskUri: { + serializedName: "properties.diskUri", + type: { + name: "String" + } + }, + hostCaching: { + serializedName: "properties.hostCaching", + type: { + name: "String" + } + }, + managedDiskId: { + serializedName: "properties.managedDiskId", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentDeploymentProperties: msRest.CompositeMapper = { + serializedName: "EnvironmentDeploymentProperties", + type: { + name: "Composite", + className: "EnvironmentDeploymentProperties", + modelProperties: { + armTemplateId: { + serializedName: "armTemplateId", + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArmTemplateParameterProperties" + } + } + } + } + } + } +}; + +export const DtlEnvironment: msRest.CompositeMapper = { + serializedName: "DtlEnvironment", + type: { + name: "Composite", + className: "DtlEnvironment", + modelProperties: { + ...Resource.type.modelProperties, + deploymentProperties: { + serializedName: "properties.deploymentProperties", + type: { + name: "Composite", + className: "EnvironmentDeploymentProperties" + } + }, + armTemplateDisplayName: { + serializedName: "properties.armTemplateDisplayName", + type: { + name: "String" + } + }, + resourceGroupId: { + readOnly: true, + serializedName: "properties.resourceGroupId", + type: { + name: "String" + } + }, + createdByUser: { + readOnly: true, + serializedName: "properties.createdByUser", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentDeploymentPropertiesFragment: msRest.CompositeMapper = { + serializedName: "EnvironmentDeploymentPropertiesFragment", + type: { + name: "Composite", + className: "EnvironmentDeploymentPropertiesFragment", + modelProperties: { + armTemplateId: { + serializedName: "armTemplateId", + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArmTemplateParameterPropertiesFragment" + } + } + } + } + } + } +}; + +export const DtlEnvironmentFragment: msRest.CompositeMapper = { + serializedName: "DtlEnvironmentFragment", + type: { + name: "Composite", + className: "DtlEnvironmentFragment", + modelProperties: { + ...UpdateResource.type.modelProperties, + deploymentProperties: { + serializedName: "properties.deploymentProperties", + type: { + name: "Composite", + className: "EnvironmentDeploymentPropertiesFragment" + } + }, + armTemplateDisplayName: { + serializedName: "properties.armTemplateDisplayName", + type: { + name: "String" + } + } + } + } +}; + +export const EvaluatePoliciesProperties: msRest.CompositeMapper = { + serializedName: "EvaluatePoliciesProperties", + type: { + name: "Composite", + className: "EvaluatePoliciesProperties", + modelProperties: { + factName: { + serializedName: "factName", + type: { + name: "String" + } + }, + factData: { + serializedName: "factData", + type: { + name: "String" + } + }, + valueOffset: { + serializedName: "valueOffset", + type: { + name: "String" + } + }, + userObjectId: { + serializedName: "userObjectId", + type: { + name: "String" + } + } + } + } +}; + +export const EvaluatePoliciesRequest: msRest.CompositeMapper = { + serializedName: "EvaluatePoliciesRequest", + type: { + name: "Composite", + className: "EvaluatePoliciesRequest", + modelProperties: { + policies: { + serializedName: "policies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EvaluatePoliciesProperties" + } + } + } + } + } + } +}; + +export const PolicyViolation: msRest.CompositeMapper = { + serializedName: "PolicyViolation", + type: { + name: "Composite", + className: "PolicyViolation", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const PolicySetResult: msRest.CompositeMapper = { + serializedName: "PolicySetResult", + type: { + name: "Composite", + className: "PolicySetResult", + modelProperties: { + hasError: { + serializedName: "hasError", + type: { + name: "Boolean" + } + }, + policyViolations: { + serializedName: "policyViolations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyViolation" + } + } + } + } + } + } +}; + +export const EvaluatePoliciesResponse: msRest.CompositeMapper = { + serializedName: "EvaluatePoliciesResponse", + type: { + name: "Composite", + className: "EvaluatePoliciesResponse", + modelProperties: { + results: { + serializedName: "results", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicySetResult" + } + } + } + } + } + } +}; + +export const Event: msRest.CompositeMapper = { + serializedName: "Event", + type: { + name: "Composite", + className: "Event", + modelProperties: { + eventName: { + serializedName: "eventName", + type: { + name: "String" + } + } + } + } +}; + +export const EventFragment: msRest.CompositeMapper = { + serializedName: "EventFragment", + type: { + name: "Composite", + className: "EventFragment", + modelProperties: { + eventName: { + serializedName: "eventName", + type: { + name: "String" + } + } + } + } +}; + +export const ExportResourceUsageParameters: msRest.CompositeMapper = { + serializedName: "ExportResourceUsageParameters", + type: { + name: "Composite", + className: "ExportResourceUsageParameters", + modelProperties: { + blobStorageAbsoluteSasUri: { + serializedName: "blobStorageAbsoluteSasUri", + type: { + name: "String" + } + }, + usageStartDate: { + serializedName: "usageStartDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ExternalSubnet: msRest.CompositeMapper = { + serializedName: "ExternalSubnet", + type: { + name: "Composite", + className: "ExternalSubnet", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ExternalSubnetFragment: msRest.CompositeMapper = { + serializedName: "ExternalSubnetFragment", + type: { + name: "Composite", + className: "ExternalSubnetFragment", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const GalleryImageReference: msRest.CompositeMapper = { + serializedName: "GalleryImageReference", + type: { + name: "Composite", + className: "GalleryImageReference", + modelProperties: { + offer: { + serializedName: "offer", + type: { + name: "String" + } + }, + publisher: { + serializedName: "publisher", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "String" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const InboundNatRule: msRest.CompositeMapper = { + serializedName: "InboundNatRule", + type: { + name: "Composite", + className: "InboundNatRule", + modelProperties: { + transportProtocol: { + serializedName: "transportProtocol", + type: { + name: "String" + } + }, + frontendPort: { + serializedName: "frontendPort", + type: { + name: "Number" + } + }, + backendPort: { + serializedName: "backendPort", + type: { + name: "Number" + } + } + } + } +}; + +export const SharedPublicIpAddressConfiguration: msRest.CompositeMapper = { + serializedName: "SharedPublicIpAddressConfiguration", + type: { + name: "Composite", + className: "SharedPublicIpAddressConfiguration", + modelProperties: { + inboundNatRules: { + serializedName: "inboundNatRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundNatRule" + } + } + } + } + } + } +}; + +export const NetworkInterfaceProperties: msRest.CompositeMapper = { + serializedName: "NetworkInterfaceProperties", + type: { + name: "Composite", + className: "NetworkInterfaceProperties", + modelProperties: { + virtualNetworkId: { + serializedName: "virtualNetworkId", + type: { + name: "String" + } + }, + subnetId: { + serializedName: "subnetId", + type: { + name: "String" + } + }, + publicIpAddressId: { + serializedName: "publicIpAddressId", + type: { + name: "String" + } + }, + publicIpAddress: { + serializedName: "publicIpAddress", + type: { + name: "String" + } + }, + privateIpAddress: { + serializedName: "privateIpAddress", + type: { + name: "String" + } + }, + dnsName: { + serializedName: "dnsName", + type: { + name: "String" + } + }, + rdpAuthority: { + serializedName: "rdpAuthority", + type: { + name: "String" + } + }, + sshAuthority: { + serializedName: "sshAuthority", + type: { + name: "String" + } + }, + sharedPublicIpAddressConfiguration: { + serializedName: "sharedPublicIpAddressConfiguration", + type: { + name: "Composite", + className: "SharedPublicIpAddressConfiguration" + } + } + } + } +}; + +export const ScheduleCreationParameter: msRest.CompositeMapper = { + serializedName: "ScheduleCreationParameter", + type: { + name: "Composite", + className: "ScheduleCreationParameter", + modelProperties: { + status: { + serializedName: "properties.status", + type: { + name: "String" + } + }, + taskType: { + serializedName: "properties.taskType", + type: { + name: "String" + } + }, + weeklyRecurrence: { + serializedName: "properties.weeklyRecurrence", + type: { + name: "Composite", + className: "WeekDetails" + } + }, + dailyRecurrence: { + serializedName: "properties.dailyRecurrence", + type: { + name: "Composite", + className: "DayDetails" + } + }, + hourlyRecurrence: { + serializedName: "properties.hourlyRecurrence", + type: { + name: "Composite", + className: "HourDetails" + } + }, + timeZoneId: { + serializedName: "properties.timeZoneId", + type: { + name: "String" + } + }, + notificationSettings: { + serializedName: "properties.notificationSettings", + type: { + name: "Composite", + className: "NotificationSettings" + } + }, + targetResourceId: { + serializedName: "properties.targetResourceId", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { + serializedName: "LabVirtualMachineCreationParameter", + type: { + name: "Composite", + className: "LabVirtualMachineCreationParameter", + modelProperties: { + bulkCreationParameters: { + serializedName: "properties.bulkCreationParameters", + type: { + name: "Composite", + className: "BulkCreationParameters" + } + }, + notes: { + serializedName: "properties.notes", + type: { + name: "String" + } + }, + ownerObjectId: { + serializedName: "properties.ownerObjectId", + type: { + name: "String" + } + }, + ownerUserPrincipalName: { + serializedName: "properties.ownerUserPrincipalName", + type: { + name: "String" + } + }, + createdByUserId: { + serializedName: "properties.createdByUserId", + type: { + name: "String" + } + }, + createdByUser: { + serializedName: "properties.createdByUser", + type: { + name: "String" + } + }, + createdDate: { + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + computeId: { + serializedName: "properties.computeId", + type: { + name: "String" + } + }, + customImageId: { + serializedName: "properties.customImageId", + type: { + name: "String" + } + }, + osType: { + serializedName: "properties.osType", + type: { + name: "String" + } + }, + size: { + serializedName: "properties.size", + type: { + name: "String" + } + }, + userName: { + serializedName: "properties.userName", + type: { + name: "String" + } + }, + password: { + serializedName: "properties.password", + type: { + name: "String" + } + }, + sshKey: { + serializedName: "properties.sshKey", + type: { + name: "String" + } + }, + isAuthenticationWithSshKey: { + serializedName: "properties.isAuthenticationWithSshKey", + type: { + name: "Boolean" + } + }, + fqdn: { + serializedName: "properties.fqdn", + type: { + name: "String" + } + }, + labSubnetName: { + serializedName: "properties.labSubnetName", + type: { + name: "String" + } + }, + labVirtualNetworkId: { + serializedName: "properties.labVirtualNetworkId", + type: { + name: "String" + } + }, + disallowPublicIpAddress: { + serializedName: "properties.disallowPublicIpAddress", + type: { + name: "Boolean" + } + }, + artifacts: { + serializedName: "properties.artifacts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArtifactInstallProperties" + } + } + } + }, + artifactDeploymentStatus: { + serializedName: "properties.artifactDeploymentStatus", + type: { + name: "Composite", + className: "ArtifactDeploymentStatusProperties" + } + }, + galleryImageReference: { + serializedName: "properties.galleryImageReference", + type: { + name: "Composite", + className: "GalleryImageReference" } }, - armTemplateDisplayName: { - serializedName: "properties.armTemplateDisplayName", + planId: { + serializedName: "properties.planId", type: { name: "String" } }, - resourceGroupId: { - readOnly: true, - serializedName: "properties.resourceGroupId", + networkInterface: { + serializedName: "properties.networkInterface", type: { - name: "String" + name: "Composite", + className: "NetworkInterfaceProperties" } }, - createdByUser: { - readOnly: true, - serializedName: "properties.createdByUser", + expirationDate: { + serializedName: "properties.expirationDate", type: { - name: "String" + name: "DateTime" } }, - provisioningState: { - serializedName: "properties.provisioningState", + allowClaim: { + serializedName: "properties.allowClaim", type: { - name: "String" + name: "Boolean" } }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", + storageType: { + serializedName: "properties.storageType", type: { name: "String" } - } - } - } -}; - -export const EvaluatePoliciesProperties: msRest.CompositeMapper = { - serializedName: "EvaluatePoliciesProperties", - type: { - name: "Composite", - className: "EvaluatePoliciesProperties", - modelProperties: { - factName: { - serializedName: "factName", + }, + virtualMachineCreationSource: { + serializedName: "properties.virtualMachineCreationSource", type: { name: "String" } }, - factData: { - serializedName: "factData", + environmentId: { + serializedName: "properties.environmentId", type: { name: "String" } }, - valueOffset: { - serializedName: "valueOffset", + dataDiskParameters: { + serializedName: "properties.dataDiskParameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataDiskProperties" + } + } } - } - } - } -}; - -export const EvaluatePoliciesRequest: msRest.CompositeMapper = { - serializedName: "EvaluatePoliciesRequest", - type: { - name: "Composite", - className: "EvaluatePoliciesRequest", - modelProperties: { - policies: { - serializedName: "policies", + }, + scheduleParameters: { + serializedName: "properties.scheduleParameters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EvaluatePoliciesProperties" + className: "ScheduleCreationParameter" } } } - } - } - } -}; - -export const PolicyViolation: msRest.CompositeMapper = { - serializedName: "PolicyViolation", - type: { - name: "Composite", - className: "PolicyViolation", - modelProperties: { - code: { - serializedName: "code", + }, + lastKnownPowerState: { + serializedName: "properties.lastKnownPowerState", type: { name: "String" } }, - message: { - serializedName: "message", + name: { + serializedName: "name", type: { name: "String" } - } - } - } -}; - -export const PolicySetResult: msRest.CompositeMapper = { - serializedName: "PolicySetResult", - type: { - name: "Composite", - className: "PolicySetResult", - modelProperties: { - hasError: { - serializedName: "hasError", + }, + location: { + serializedName: "location", type: { - name: "Boolean" + name: "String" } }, - policyViolations: { - serializedName: "policyViolations", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "PolicyViolation" + name: "String" } } } @@ -1860,118 +3018,78 @@ export const PolicySetResult: msRest.CompositeMapper = { } }; -export const EvaluatePoliciesResponse: msRest.CompositeMapper = { - serializedName: "EvaluatePoliciesResponse", +export const FormulaPropertiesFromVm: msRest.CompositeMapper = { + serializedName: "FormulaPropertiesFromVm", type: { name: "Composite", - className: "EvaluatePoliciesResponse", + className: "FormulaPropertiesFromVm", modelProperties: { - results: { - serializedName: "results", + labVmId: { + serializedName: "labVmId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PolicySetResult" - } - } + name: "String" } } } } }; -export const Event: msRest.CompositeMapper = { - serializedName: "Event", +export const Formula: msRest.CompositeMapper = { + serializedName: "Formula", type: { name: "Composite", - className: "Event", + className: "Formula", modelProperties: { - eventName: { - serializedName: "eventName", + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String" } - } - } - } -}; - -export const EventFragment: msRest.CompositeMapper = { - serializedName: "EventFragment", - type: { - name: "Composite", - className: "EventFragment", - modelProperties: { - eventName: { - serializedName: "eventName", + }, + author: { + serializedName: "properties.author", type: { name: "String" } - } - } - } -}; - -export const ExportResourceUsageParameters: msRest.CompositeMapper = { - serializedName: "ExportResourceUsageParameters", - type: { - name: "Composite", - className: "ExportResourceUsageParameters", - modelProperties: { - blobStorageAbsoluteSasUri: { - serializedName: "blobStorageAbsoluteSasUri", + }, + osType: { + serializedName: "properties.osType", type: { name: "String" } }, - usageStartDate: { - serializedName: "usageStartDate", + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", type: { name: "DateTime" } - } - } - } -}; - -export const ExternalSubnet: msRest.CompositeMapper = { - serializedName: "ExternalSubnet", - type: { - name: "Composite", - className: "ExternalSubnet", - modelProperties: { - id: { - serializedName: "id", + }, + formulaContent: { + serializedName: "properties.formulaContent", type: { - name: "String" + name: "Composite", + className: "LabVirtualMachineCreationParameter" } }, - name: { - serializedName: "name", + vm: { + serializedName: "properties.vm", type: { - name: "String" + name: "Composite", + className: "FormulaPropertiesFromVm" } - } - } - } -}; - -export const ExternalSubnetFragment: msRest.CompositeMapper = { - serializedName: "ExternalSubnetFragment", - type: { - name: "Composite", - className: "ExternalSubnetFragment", - modelProperties: { - id: { - serializedName: "id", + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - name: { - serializedName: "name", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", type: { name: "String" } @@ -1980,11 +3098,11 @@ export const ExternalSubnetFragment: msRest.CompositeMapper = { } }; -export const GalleryImageReference: msRest.CompositeMapper = { - serializedName: "GalleryImageReference", +export const GalleryImageReferenceFragment: msRest.CompositeMapper = { + serializedName: "GalleryImageReferenceFragment", type: { name: "Composite", - className: "GalleryImageReference", + className: "GalleryImageReferenceFragment", modelProperties: { offer: { serializedName: "offer", @@ -2020,11 +3138,11 @@ export const GalleryImageReference: msRest.CompositeMapper = { } }; -export const InboundNatRule: msRest.CompositeMapper = { - serializedName: "InboundNatRule", +export const InboundNatRuleFragment: msRest.CompositeMapper = { + serializedName: "InboundNatRuleFragment", type: { name: "Composite", - className: "InboundNatRule", + className: "InboundNatRuleFragment", modelProperties: { transportProtocol: { serializedName: "transportProtocol", @@ -2048,11 +3166,11 @@ export const InboundNatRule: msRest.CompositeMapper = { } }; -export const SharedPublicIpAddressConfiguration: msRest.CompositeMapper = { - serializedName: "SharedPublicIpAddressConfiguration", +export const SharedPublicIpAddressConfigurationFragment: msRest.CompositeMapper = { + serializedName: "SharedPublicIpAddressConfigurationFragment", type: { name: "Composite", - className: "SharedPublicIpAddressConfiguration", + className: "SharedPublicIpAddressConfigurationFragment", modelProperties: { inboundNatRules: { serializedName: "inboundNatRules", @@ -2061,7 +3179,7 @@ export const SharedPublicIpAddressConfiguration: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "InboundNatRule" + className: "InboundNatRuleFragment" } } } @@ -2070,11 +3188,11 @@ export const SharedPublicIpAddressConfiguration: msRest.CompositeMapper = { } }; -export const NetworkInterfaceProperties: msRest.CompositeMapper = { - serializedName: "NetworkInterfaceProperties", +export const NetworkInterfacePropertiesFragment: msRest.CompositeMapper = { + serializedName: "NetworkInterfacePropertiesFragment", type: { name: "Composite", - className: "NetworkInterfaceProperties", + className: "NetworkInterfacePropertiesFragment", modelProperties: { virtualNetworkId: { serializedName: "virtualNetworkId", @@ -2128,24 +3246,109 @@ export const NetworkInterfaceProperties: msRest.CompositeMapper = { serializedName: "sharedPublicIpAddressConfiguration", type: { name: "Composite", - className: "SharedPublicIpAddressConfiguration" + className: "SharedPublicIpAddressConfigurationFragment" } } } } }; -export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { - serializedName: "LabVirtualMachineCreationParameter", +export const ScheduleCreationParameterFragment: msRest.CompositeMapper = { + serializedName: "ScheduleCreationParameterFragment", type: { name: "Composite", - className: "LabVirtualMachineCreationParameter", + className: "ScheduleCreationParameterFragment", + modelProperties: { + status: { + serializedName: "properties.status", + type: { + name: "String" + } + }, + taskType: { + serializedName: "properties.taskType", + type: { + name: "String" + } + }, + weeklyRecurrence: { + serializedName: "properties.weeklyRecurrence", + type: { + name: "Composite", + className: "WeekDetailsFragment" + } + }, + dailyRecurrence: { + serializedName: "properties.dailyRecurrence", + type: { + name: "Composite", + className: "DayDetailsFragment" + } + }, + hourlyRecurrence: { + serializedName: "properties.hourlyRecurrence", + type: { + name: "Composite", + className: "HourDetailsFragment" + } + }, + timeZoneId: { + serializedName: "properties.timeZoneId", + type: { + name: "String" + } + }, + notificationSettings: { + serializedName: "properties.notificationSettings", + type: { + name: "Composite", + className: "NotificationSettingsFragment" + } + }, + targetResourceId: { + serializedName: "properties.targetResourceId", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper = { + serializedName: "LabVirtualMachineCreationParameterFragment", + type: { + name: "Composite", + className: "LabVirtualMachineCreationParameterFragment", modelProperties: { bulkCreationParameters: { serializedName: "properties.bulkCreationParameters", type: { name: "Composite", - className: "BulkCreationParameters" + className: "BulkCreationParametersFragment" } }, notes: { @@ -2184,6 +3387,12 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { name: "DateTime" } }, + computeId: { + serializedName: "properties.computeId", + type: { + name: "String" + } + }, customImageId: { serializedName: "properties.customImageId", type: { @@ -2257,7 +3466,7 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ArtifactInstallProperties" + className: "ArtifactInstallPropertiesFragment" } } } @@ -2266,35 +3475,27 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { serializedName: "properties.artifactDeploymentStatus", type: { name: "Composite", - className: "ArtifactDeploymentStatusProperties" + className: "ArtifactDeploymentStatusPropertiesFragment" } }, galleryImageReference: { serializedName: "properties.galleryImageReference", type: { name: "Composite", - className: "GalleryImageReference" + className: "GalleryImageReferenceFragment" } }, - computeVm: { - serializedName: "properties.computeVm", + planId: { + serializedName: "properties.planId", type: { - name: "Composite", - className: "ComputeVmProperties" + name: "String" } }, networkInterface: { serializedName: "properties.networkInterface", type: { name: "Composite", - className: "NetworkInterfaceProperties" - } - }, - applicableSchedule: { - serializedName: "properties.applicableSchedule", - type: { - name: "Composite", - className: "ApplicableSchedule" + className: "NetworkInterfacePropertiesFragment" } }, expirationDate: { @@ -2327,14 +3528,32 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + dataDiskParameters: { + serializedName: "properties.dataDiskParameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataDiskPropertiesFragment" + } + } } }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", + scheduleParameters: { + serializedName: "properties.scheduleParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScheduleCreationParameterFragment" + } + } + } + }, + lastKnownPowerState: { + serializedName: "properties.lastKnownPowerState", type: { name: "String" } @@ -2366,11 +3585,11 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { } }; -export const FormulaPropertiesFromVm: msRest.CompositeMapper = { - serializedName: "FormulaPropertiesFromVm", +export const FormulaPropertiesFromVmFragment: msRest.CompositeMapper = { + serializedName: "FormulaPropertiesFromVmFragment", type: { name: "Composite", - className: "FormulaPropertiesFromVm", + className: "FormulaPropertiesFromVmFragment", modelProperties: { labVmId: { serializedName: "labVmId", @@ -2382,13 +3601,13 @@ export const FormulaPropertiesFromVm: msRest.CompositeMapper = { } }; -export const Formula: msRest.CompositeMapper = { - serializedName: "Formula", +export const FormulaFragment: msRest.CompositeMapper = { + serializedName: "FormulaFragment", type: { name: "Composite", - className: "Formula", + className: "FormulaFragment", modelProperties: { - ...Resource.type.modelProperties, + ...UpdateResource.type.modelProperties, description: { serializedName: "properties.description", type: { @@ -2407,37 +3626,18 @@ export const Formula: msRest.CompositeMapper = { name: "String" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, formulaContent: { serializedName: "properties.formulaContent", type: { name: "Composite", - className: "LabVirtualMachineCreationParameter" + className: "LabVirtualMachineCreationParameterFragment" } }, vm: { serializedName: "properties.vm", type: { name: "Composite", - className: "FormulaPropertiesFromVm" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" + className: "FormulaPropertiesFromVmFragment" } } } @@ -2488,45 +3688,17 @@ export const GalleryImage: msRest.CompositeMapper = { type: { name: "Boolean" } - } - } - } -}; - -export const GalleryImageReferenceFragment: msRest.CompositeMapper = { - serializedName: "GalleryImageReferenceFragment", - type: { - name: "Composite", - className: "GalleryImageReferenceFragment", - modelProperties: { - offer: { - serializedName: "offer", - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "String" - } }, - osType: { - serializedName: "osType", + planId: { + serializedName: "properties.planId", type: { name: "String" } }, - version: { - serializedName: "version", + isPlanAuthorized: { + serializedName: "properties.isPlanAuthorized", type: { - name: "String" + name: "Boolean" } } } @@ -2661,28 +3833,98 @@ export const IdentityProperties: msRest.CompositeMapper = { } }; -export const InboundNatRuleFragment: msRest.CompositeMapper = { - serializedName: "InboundNatRuleFragment", +export const ImportLabVirtualMachineRequest: msRest.CompositeMapper = { + serializedName: "ImportLabVirtualMachineRequest", + type: { + name: "Composite", + className: "ImportLabVirtualMachineRequest", + modelProperties: { + sourceVirtualMachineResourceId: { + serializedName: "sourceVirtualMachineResourceId", + type: { + name: "String" + } + }, + destinationVirtualMachineName: { + serializedName: "destinationVirtualMachineName", + type: { + name: "String" + } + } + } + } +}; + +export const LabAnnouncementProperties: msRest.CompositeMapper = { + serializedName: "LabAnnouncementProperties", + type: { + name: "Composite", + className: "LabAnnouncementProperties", + modelProperties: { + title: { + serializedName: "title", + type: { + name: "String" + } + }, + markdown: { + serializedName: "markdown", + type: { + name: "String" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "String" + } + }, + expirationDate: { + serializedName: "expirationDate", + type: { + name: "DateTime" + } + }, + expired: { + serializedName: "expired", + type: { + name: "Boolean" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "uniqueIdentifier", + type: { + name: "String" + } + } + } + } +}; + +export const LabSupportProperties: msRest.CompositeMapper = { + serializedName: "LabSupportProperties", type: { name: "Composite", - className: "InboundNatRuleFragment", + className: "LabSupportProperties", modelProperties: { - transportProtocol: { - serializedName: "transportProtocol", + enabled: { + serializedName: "enabled", type: { name: "String" } }, - frontendPort: { - serializedName: "frontendPort", - type: { - name: "Number" - } - }, - backendPort: { - serializedName: "backendPort", + markdown: { + serializedName: "markdown", type: { - name: "Number" + name: "String" } } } @@ -2737,6 +3979,28 @@ export const Lab: msRest.CompositeMapper = { name: "String" } }, + mandatoryArtifactsResourceIdsLinux: { + serializedName: "properties.mandatoryArtifactsResourceIdsLinux", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + mandatoryArtifactsResourceIdsWindows: { + serializedName: "properties.mandatoryArtifactsResourceIdsWindows", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, createdDate: { readOnly: true, serializedName: "properties.createdDate", @@ -2750,13 +4014,74 @@ export const Lab: msRest.CompositeMapper = { name: "String" } }, + environmentPermission: { + serializedName: "properties.environmentPermission", + type: { + name: "String" + } + }, + announcement: { + serializedName: "properties.announcement", + type: { + name: "Composite", + className: "LabAnnouncementProperties" + } + }, + support: { + serializedName: "properties.support", + type: { + name: "Composite", + className: "LabSupportProperties" + } + }, + vmCreationResourceGroup: { + readOnly: true, + serializedName: "properties.vmCreationResourceGroup", + type: { + name: "String" + } + }, + publicIpId: { + readOnly: true, + serializedName: "properties.publicIpId", + type: { + name: "String" + } + }, + loadBalancerId: { + readOnly: true, + serializedName: "properties.loadBalancerId", + type: { + name: "String" + } + }, + networkSecurityGroupId: { + readOnly: true, + serializedName: "properties.networkSecurityGroupId", + type: { + name: "String" + } + }, + extendedProperties: { + serializedName: "properties.extendedProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { + readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -2766,6 +4091,46 @@ export const Lab: msRest.CompositeMapper = { } }; +export const LabAnnouncementPropertiesFragment: msRest.CompositeMapper = { + serializedName: "LabAnnouncementPropertiesFragment", + type: { + name: "Composite", + className: "LabAnnouncementPropertiesFragment", + modelProperties: { + title: { + serializedName: "title", + type: { + name: "String" + } + }, + markdown: { + serializedName: "markdown", + type: { + name: "String" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "String" + } + }, + expirationDate: { + serializedName: "expirationDate", + type: { + name: "DateTime" + } + }, + expired: { + serializedName: "expired", + type: { + name: "Boolean" + } + } + } + } +}; + export const TargetCostProperties: msRest.CompositeMapper = { serializedName: "TargetCostProperties", type: { @@ -2999,12 +4364,14 @@ export const LabCost: msRest.CompositeMapper = { } }, provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { + readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -3014,35 +4381,98 @@ export const LabCost: msRest.CompositeMapper = { } }; +export const LabSupportPropertiesFragment: msRest.CompositeMapper = { + serializedName: "LabSupportPropertiesFragment", + type: { + name: "Composite", + className: "LabSupportPropertiesFragment", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "String" + } + }, + markdown: { + serializedName: "markdown", + type: { + name: "String" + } + } + } + } +}; + export const LabFragment: msRest.CompositeMapper = { serializedName: "LabFragment", type: { name: "Composite", className: "LabFragment", modelProperties: { - ...Resource.type.modelProperties, + ...UpdateResource.type.modelProperties, labStorageType: { serializedName: "properties.labStorageType", type: { name: "String" } }, + mandatoryArtifactsResourceIdsLinux: { + serializedName: "properties.mandatoryArtifactsResourceIdsLinux", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + mandatoryArtifactsResourceIdsWindows: { + serializedName: "properties.mandatoryArtifactsResourceIdsWindows", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, premiumDataDisks: { serializedName: "properties.premiumDataDisks", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + environmentPermission: { + serializedName: "properties.environmentPermission", type: { name: "String" } }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", + announcement: { + serializedName: "properties.announcement", type: { - name: "String" + name: "Composite", + className: "LabAnnouncementPropertiesFragment" + } + }, + support: { + serializedName: "properties.support", + type: { + name: "Composite", + className: "LabSupportPropertiesFragment" + } + }, + extendedProperties: { + serializedName: "properties.extendedProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } @@ -3109,7 +4539,6 @@ export const LabVirtualMachine: msRest.CompositeMapper = { } }, computeId: { - readOnly: true, serializedName: "properties.computeId", type: { name: "String" @@ -3207,7 +4636,14 @@ export const LabVirtualMachine: msRest.CompositeMapper = { className: "GalleryImageReference" } }, + planId: { + serializedName: "properties.planId", + type: { + name: "String" + } + }, computeVm: { + readOnly: true, serializedName: "properties.computeVm", type: { name: "Composite", @@ -3222,6 +4658,7 @@ export const LabVirtualMachine: msRest.CompositeMapper = { } }, applicableSchedule: { + readOnly: true, serializedName: "properties.applicableSchedule", type: { name: "Composite", @@ -3258,103 +4695,48 @@ export const LabVirtualMachine: msRest.CompositeMapper = { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" - } - } - } - } -}; - -export const SharedPublicIpAddressConfigurationFragment: msRest.CompositeMapper = { - serializedName: "SharedPublicIpAddressConfigurationFragment", - type: { - name: "Composite", - className: "SharedPublicIpAddressConfigurationFragment", - modelProperties: { - inboundNatRules: { - serializedName: "inboundNatRules", + dataDiskParameters: { + serializedName: "properties.dataDiskParameters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "InboundNatRuleFragment" + className: "DataDiskProperties" } } } - } - } - } -}; - -export const NetworkInterfacePropertiesFragment: msRest.CompositeMapper = { - serializedName: "NetworkInterfacePropertiesFragment", - type: { - name: "Composite", - className: "NetworkInterfacePropertiesFragment", - modelProperties: { - virtualNetworkId: { - serializedName: "virtualNetworkId", - type: { - name: "String" - } - }, - subnetId: { - serializedName: "subnetId", - type: { - name: "String" - } - }, - publicIpAddressId: { - serializedName: "publicIpAddressId", - type: { - name: "String" - } - }, - publicIpAddress: { - serializedName: "publicIpAddress", - type: { - name: "String" - } - }, - privateIpAddress: { - serializedName: "privateIpAddress", - type: { - name: "String" - } }, - dnsName: { - serializedName: "dnsName", + scheduleParameters: { + serializedName: "properties.scheduleParameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScheduleCreationParameter" + } + } } }, - rdpAuthority: { - serializedName: "rdpAuthority", + lastKnownPowerState: { + serializedName: "properties.lastKnownPowerState", type: { name: "String" } }, - sshAuthority: { - serializedName: "sshAuthority", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - sharedPublicIpAddressConfiguration: { - serializedName: "sharedPublicIpAddressConfiguration", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", type: { - name: "Composite", - className: "SharedPublicIpAddressConfigurationFragment" + name: "String" } } } @@ -3367,7 +4749,7 @@ export const LabVirtualMachineFragment: msRest.CompositeMapper = { name: "Composite", className: "LabVirtualMachineFragment", modelProperties: { - ...Resource.type.modelProperties, + ...UpdateResource.type.modelProperties, notes: { serializedName: "properties.notes", type: { @@ -3404,6 +4786,12 @@ export const LabVirtualMachineFragment: msRest.CompositeMapper = { name: "DateTime" } }, + computeId: { + serializedName: "properties.computeId", + type: { + name: "String" + } + }, customImageId: { serializedName: "properties.customImageId", type: { @@ -3496,11 +4884,10 @@ export const LabVirtualMachineFragment: msRest.CompositeMapper = { className: "GalleryImageReferenceFragment" } }, - computeVm: { - serializedName: "properties.computeVm", + planId: { + serializedName: "properties.planId", type: { - name: "Composite", - className: "ComputeVmPropertiesFragment" + name: "String" } }, networkInterface: { @@ -3510,13 +4897,6 @@ export const LabVirtualMachineFragment: msRest.CompositeMapper = { className: "NetworkInterfacePropertiesFragment" } }, - applicableSchedule: { - serializedName: "properties.applicableSchedule", - type: { - name: "Composite", - className: "ApplicableScheduleFragment" - } - }, expirationDate: { serializedName: "properties.expirationDate", type: { @@ -3547,14 +4927,32 @@ export const LabVirtualMachineFragment: msRest.CompositeMapper = { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + dataDiskParameters: { + serializedName: "properties.dataDiskParameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataDiskPropertiesFragment" + } + } } }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", + scheduleParameters: { + serializedName: "properties.scheduleParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScheduleCreationParameterFragment" + } + } + } + }, + lastKnownPowerState: { + serializedName: "properties.lastKnownPowerState", type: { name: "String" } @@ -3576,6 +4974,18 @@ export const NotificationChannel: msRest.CompositeMapper = { name: "String" } }, + emailRecipient: { + serializedName: "properties.emailRecipient", + type: { + name: "String" + } + }, + notificationLocale: { + serializedName: "properties.notificationLocale", + type: { + name: "String" + } + }, description: { serializedName: "properties.description", type: { @@ -3602,12 +5012,14 @@ export const NotificationChannel: msRest.CompositeMapper = { } }, provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { + readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -3623,13 +5035,25 @@ export const NotificationChannelFragment: msRest.CompositeMapper = { name: "Composite", className: "NotificationChannelFragment", modelProperties: { - ...Resource.type.modelProperties, + ...UpdateResource.type.modelProperties, webHookUrl: { serializedName: "properties.webHookUrl", type: { name: "String" } }, + emailRecipient: { + serializedName: "properties.emailRecipient", + type: { + name: "String" + } + }, + notificationLocale: { + serializedName: "properties.notificationLocale", + type: { + name: "String" + } + }, description: { serializedName: "properties.description", type: { @@ -3647,18 +5071,6 @@ export const NotificationChannelFragment: msRest.CompositeMapper = { } } } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" - } } } } @@ -3845,12 +5257,14 @@ export const Policy: msRest.CompositeMapper = { } }, provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { + readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -3866,7 +5280,7 @@ export const PolicyFragment: msRest.CompositeMapper = { name: "Composite", className: "PolicyFragment", modelProperties: { - ...Resource.type.modelProperties, + ...UpdateResource.type.modelProperties, description: { serializedName: "properties.description", type: { @@ -3902,18 +5316,6 @@ export const PolicyFragment: msRest.CompositeMapper = { type: { name: "String" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" - } } } } @@ -3963,6 +5365,38 @@ export const PortFragment: msRest.CompositeMapper = { } }; +export const RdpConnection: msRest.CompositeMapper = { + serializedName: "RdpConnection", + type: { + name: "Composite", + className: "RdpConnection", + modelProperties: { + contents: { + serializedName: "contents", + type: { + name: "String" + } + } + } + } +}; + +export const ResizeLabVirtualMachineProperties: msRest.CompositeMapper = { + serializedName: "ResizeLabVirtualMachineProperties", + type: { + name: "Composite", + className: "ResizeLabVirtualMachineProperties", + modelProperties: { + size: { + serializedName: "size", + type: { + name: "String" + } + } + } + } +}; + export const RetargetScheduleProperties: msRest.CompositeMapper = { serializedName: "RetargetScheduleProperties", type: { @@ -3999,12 +5433,76 @@ export const Secret: msRest.CompositeMapper = { } }, provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + } + } + } +}; + +export const SecretFragment: msRest.CompositeMapper = { + serializedName: "SecretFragment", + type: { + name: "Composite", + className: "SecretFragment", + modelProperties: { + ...UpdateResource.type.modelProperties, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceFabric: msRest.CompositeMapper = { + serializedName: "ServiceFabric", + type: { + name: "Composite", + className: "ServiceFabric", + modelProperties: { + ...Resource.type.modelProperties, + externalServiceFabricId: { + serializedName: "properties.externalServiceFabricId", + type: { + name: "String" + } + }, + environmentId: { + serializedName: "properties.environmentId", + type: { + name: "String" + } + }, + applicableSchedule: { + readOnly: true, + serializedName: "properties.applicableSchedule", + type: { + name: "Composite", + className: "ApplicableSchedule" + } + }, + provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { + readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -4014,6 +5512,29 @@ export const Secret: msRest.CompositeMapper = { } }; +export const ServiceFabricFragment: msRest.CompositeMapper = { + serializedName: "ServiceFabricFragment", + type: { + name: "Composite", + className: "ServiceFabricFragment", + modelProperties: { + ...UpdateResource.type.modelProperties, + externalServiceFabricId: { + serializedName: "properties.externalServiceFabricId", + type: { + name: "String" + } + }, + environmentId: { + serializedName: "properties.environmentId", + type: { + name: "String" + } + } + } + } +}; + export const ServiceRunner: msRest.CompositeMapper = { serializedName: "ServiceRunner", type: { @@ -4074,6 +5595,18 @@ export const ShutdownNotificationContent: msRest.CompositeMapper = { name: "String" } }, + vmUrl: { + serializedName: "vmUrl", + type: { + name: "String" + } + }, + minutesUntilShutdown: { + serializedName: "minutesUntilShutdown", + type: { + name: "String" + } + }, eventType: { serializedName: "eventType", type: { @@ -4393,12 +5926,14 @@ export const User: msRest.CompositeMapper = { } }, provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { + readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -4476,7 +6011,7 @@ export const UserFragment: msRest.CompositeMapper = { name: "Composite", className: "UserFragment", modelProperties: { - ...Resource.type.modelProperties, + ...UpdateResource.type.modelProperties, identity: { serializedName: "properties.identity", type: { @@ -4490,18 +6025,6 @@ export const UserFragment: msRest.CompositeMapper = { name: "Composite", className: "UserSecretStoreFragment" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" - } } } } @@ -4539,6 +6062,7 @@ export const VirtualNetwork: msRest.CompositeMapper = { } }, externalSubnets: { + readOnly: true, serializedName: "properties.externalSubnets", type: { name: "Sequence", @@ -4570,12 +6094,14 @@ export const VirtualNetwork: msRest.CompositeMapper = { } }, provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } }, uniqueIdentifier: { + readOnly: true, serializedName: "properties.uniqueIdentifier", type: { name: "String" @@ -4591,7 +6117,7 @@ export const VirtualNetworkFragment: msRest.CompositeMapper = { name: "Composite", className: "VirtualNetworkFragment", modelProperties: { - ...Resource.type.modelProperties, + ...UpdateResource.type.modelProperties, allowedSubnets: { serializedName: "properties.allowedSubnets", type: { @@ -4616,18 +6142,6 @@ export const VirtualNetworkFragment: msRest.CompositeMapper = { name: "String" } }, - externalSubnets: { - serializedName: "properties.externalSubnets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExternalSubnetFragment" - } - } - } - }, subnetOverrides: { serializedName: "properties.subnetOverrides", type: { @@ -4639,18 +6153,6 @@ export const VirtualNetworkFragment: msRest.CompositeMapper = { } } } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - uniqueIdentifier: { - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" - } } } } @@ -4685,11 +6187,11 @@ export const ProviderOperationResult: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationLab: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_Lab_", +export const LabList: msRest.CompositeMapper = { + serializedName: "LabList", type: { name: "Composite", - className: "ResponseWithContinuationLab", + className: "LabList", modelProperties: { value: { serializedName: "", @@ -4713,11 +6215,11 @@ export const ResponseWithContinuationLab: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationLabVhd: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_LabVhd_", +export const LabVhdList: msRest.CompositeMapper = { + serializedName: "LabVhdList", type: { name: "Composite", - className: "ResponseWithContinuationLabVhd", + className: "LabVhdList", modelProperties: { value: { serializedName: "", @@ -4741,11 +6243,11 @@ export const ResponseWithContinuationLabVhd: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationSchedule: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_Schedule_", +export const ScheduleList: msRest.CompositeMapper = { + serializedName: "ScheduleList", type: { name: "Composite", - className: "ResponseWithContinuationSchedule", + className: "ScheduleList", modelProperties: { value: { serializedName: "", @@ -4769,11 +6271,11 @@ export const ResponseWithContinuationSchedule: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationArtifactSource: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_ArtifactSource_", +export const ArtifactSourceList: msRest.CompositeMapper = { + serializedName: "ArtifactSourceList", type: { name: "Composite", - className: "ResponseWithContinuationArtifactSource", + className: "ArtifactSourceList", modelProperties: { value: { serializedName: "", @@ -4797,11 +6299,11 @@ export const ResponseWithContinuationArtifactSource: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationArmTemplate: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_ArmTemplate_", +export const ArmTemplateList: msRest.CompositeMapper = { + serializedName: "ArmTemplateList", type: { name: "Composite", - className: "ResponseWithContinuationArmTemplate", + className: "ArmTemplateList", modelProperties: { value: { serializedName: "", @@ -4825,11 +6327,11 @@ export const ResponseWithContinuationArmTemplate: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationArtifact: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_Artifact_", +export const ArtifactList: msRest.CompositeMapper = { + serializedName: "ArtifactList", type: { name: "Composite", - className: "ResponseWithContinuationArtifact", + className: "ArtifactList", modelProperties: { value: { serializedName: "", @@ -4853,11 +6355,11 @@ export const ResponseWithContinuationArtifact: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationCustomImage: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_CustomImage_", +export const CustomImageList: msRest.CompositeMapper = { + serializedName: "CustomImageList", type: { name: "Composite", - className: "ResponseWithContinuationCustomImage", + className: "CustomImageList", modelProperties: { value: { serializedName: "", @@ -4881,11 +6383,11 @@ export const ResponseWithContinuationCustomImage: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationFormula: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_Formula_", +export const FormulaList: msRest.CompositeMapper = { + serializedName: "FormulaList", type: { name: "Composite", - className: "ResponseWithContinuationFormula", + className: "FormulaList", modelProperties: { value: { serializedName: "", @@ -4909,11 +6411,11 @@ export const ResponseWithContinuationFormula: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationGalleryImage: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_GalleryImage_", +export const GalleryImageList: msRest.CompositeMapper = { + serializedName: "GalleryImageList", type: { name: "Composite", - className: "ResponseWithContinuationGalleryImage", + className: "GalleryImageList", modelProperties: { value: { serializedName: "", @@ -4937,11 +6439,11 @@ export const ResponseWithContinuationGalleryImage: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationNotificationChannel: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_NotificationChannel_", +export const NotificationChannelList: msRest.CompositeMapper = { + serializedName: "NotificationChannelList", type: { name: "Composite", - className: "ResponseWithContinuationNotificationChannel", + className: "NotificationChannelList", modelProperties: { value: { serializedName: "", @@ -4965,11 +6467,11 @@ export const ResponseWithContinuationNotificationChannel: msRest.CompositeMapper } }; -export const ResponseWithContinuationPolicy: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_Policy_", +export const PolicyList: msRest.CompositeMapper = { + serializedName: "PolicyList", type: { name: "Composite", - className: "ResponseWithContinuationPolicy", + className: "PolicyList", modelProperties: { value: { serializedName: "", @@ -4993,11 +6495,11 @@ export const ResponseWithContinuationPolicy: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationServiceRunner: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_ServiceRunner_", +export const ServiceRunnerList: msRest.CompositeMapper = { + serializedName: "ServiceRunnerList", type: { name: "Composite", - className: "ResponseWithContinuationServiceRunner", + className: "ServiceRunnerList", modelProperties: { value: { serializedName: "", @@ -5021,11 +6523,11 @@ export const ResponseWithContinuationServiceRunner: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationUser: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_User_", +export const UserList: msRest.CompositeMapper = { + serializedName: "UserList", type: { name: "Composite", - className: "ResponseWithContinuationUser", + className: "UserList", modelProperties: { value: { serializedName: "", @@ -5049,11 +6551,11 @@ export const ResponseWithContinuationUser: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationDisk: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_Disk_", +export const DiskList: msRest.CompositeMapper = { + serializedName: "DiskList", type: { name: "Composite", - className: "ResponseWithContinuationDisk", + className: "DiskList", modelProperties: { value: { serializedName: "", @@ -5077,11 +6579,11 @@ export const ResponseWithContinuationDisk: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationDtlEnvironment: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_DtlEnvironment_", +export const DtlEnvironmentList: msRest.CompositeMapper = { + serializedName: "DtlEnvironmentList", type: { name: "Composite", - className: "ResponseWithContinuationDtlEnvironment", + className: "DtlEnvironmentList", modelProperties: { value: { serializedName: "", @@ -5105,11 +6607,11 @@ export const ResponseWithContinuationDtlEnvironment: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationSecret: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_Secret_", +export const SecretList: msRest.CompositeMapper = { + serializedName: "SecretList", type: { name: "Composite", - className: "ResponseWithContinuationSecret", + className: "SecretList", modelProperties: { value: { serializedName: "", @@ -5133,11 +6635,39 @@ export const ResponseWithContinuationSecret: msRest.CompositeMapper = { } }; -export const ResponseWithContinuationLabVirtualMachine: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_LabVirtualMachine_", +export const ServiceFabricList: msRest.CompositeMapper = { + serializedName: "ServiceFabricList", + type: { + name: "Composite", + className: "ServiceFabricList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceFabric" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const LabVirtualMachineList: msRest.CompositeMapper = { + serializedName: "LabVirtualMachineList", type: { name: "Composite", - className: "ResponseWithContinuationLabVirtualMachine", + className: "LabVirtualMachineList", modelProperties: { value: { serializedName: "", @@ -5161,11 +6691,11 @@ export const ResponseWithContinuationLabVirtualMachine: msRest.CompositeMapper = } }; -export const ResponseWithContinuationVirtualNetwork: msRest.CompositeMapper = { - serializedName: "ResponseWithContinuation_VirtualNetwork_", +export const VirtualNetworkList: msRest.CompositeMapper = { + serializedName: "VirtualNetworkList", type: { name: "Composite", - className: "ResponseWithContinuationVirtualNetwork", + className: "VirtualNetworkList", modelProperties: { value: { serializedName: "", diff --git a/packages/@azure/arm-devtestlabs/lib/models/notificationChannelsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/notificationChannelsMappers.ts index 2d59254b3d67..742ab059452e 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/notificationChannelsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/notificationChannelsMappers.ts @@ -9,13 +9,14 @@ */ export { - ResponseWithContinuationNotificationChannel, + NotificationChannelList, NotificationChannel, Resource, BaseResource, Event, CloudError, NotificationChannelFragment, + UpdateResource, EventFragment, NotifyParameters, Schedule, @@ -40,10 +41,23 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -51,15 +65,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -68,21 +98,19 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -99,7 +127,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/parameters.ts b/packages/@azure/arm-devtestlabs/lib/models/parameters.ts index 8a7469513425..4d9dc9956d4e 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/parameters.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/parameters.ts @@ -25,7 +25,7 @@ export const apiVersion: msRest.OperationQueryParameter = { mapper: { required: true, serializedName: "api-version", - defaultValue: '2016-05-15', + defaultValue: '2018-09-15', type: { name: "String" } @@ -138,6 +138,16 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const serviceFabricName: msRest.OperationURLParameter = { + parameterPath: "serviceFabricName", + mapper: { + required: true, + serializedName: "serviceFabricName", + type: { + name: "String" + } + } +}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { diff --git a/packages/@azure/arm-devtestlabs/lib/models/policiesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/policiesMappers.ts index de68aedb0fd2..f64d92936376 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/policiesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/policiesMappers.ts @@ -9,12 +9,13 @@ */ export { - ResponseWithContinuationPolicy, + PolicyList, Policy, Resource, BaseResource, CloudError, PolicyFragment, + UpdateResource, Schedule, WeekDetails, DayDetails, @@ -37,10 +38,23 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -48,15 +62,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -65,23 +95,21 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, EventFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -98,7 +126,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/schedulesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/schedulesMappers.ts index 5429a3df0517..c9d5c7833953 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/schedulesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/schedulesMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationSchedule, + ScheduleList, Schedule, Resource, BaseResource, @@ -19,6 +19,7 @@ export { NotificationSettings, CloudError, ScheduleFragment, + UpdateResource, WeekDetailsFragment, DayDetailsFragment, HourDetailsFragment, @@ -35,10 +36,23 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -46,15 +60,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -63,18 +93,13 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -82,6 +107,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -98,7 +126,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/secretsMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/secretsMappers.ts index 48b6c49295e8..8a0011dd8996 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/secretsMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/secretsMappers.ts @@ -9,11 +9,13 @@ */ export { - ResponseWithContinuationSecret, + SecretList, Secret, Resource, BaseResource, CloudError, + SecretFragment, + UpdateResource, Schedule, WeekDetails, DayDetails, @@ -36,10 +38,23 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -47,15 +62,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -64,24 +95,21 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, EventFragment, Policy, PolicyFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -98,7 +126,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/serviceRunnersMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/serviceRunnersMappers.ts index b906967639e4..b12f9353c762 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/serviceRunnersMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/serviceRunnersMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationServiceRunner, + ServiceRunnerList, ServiceRunner, Resource, BaseResource, @@ -21,22 +21,17 @@ export { HourDetails, NotificationSettings, ApplicableSchedule, - ScheduleFragment, - WeekDetailsFragment, - DayDetailsFragment, - HourDetailsFragment, - NotificationSettingsFragment, - ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, Artifact, ArtifactSource, - ArtifactSourceFragment, CustomImage, CustomImagePropertiesFromVm, WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, Disk, DtlEnvironment, EnvironmentDeploymentProperties, @@ -48,15 +43,17 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -64,43 +61,23 @@ export { LabCostSummaryProperties, LabCostDetailsProperties, LabResourceCostProperties, - LabFragment, LabVirtualMachine, - LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, NotificationChannel, Event, - NotificationChannelFragment, - EventFragment, Policy, - PolicyFragment, Secret, + ServiceFabric, User, UserIdentity, UserSecretStore, - UserFragment, - UserIdentityFragment, - UserSecretStoreFragment, VirtualNetwork, Subnet, ExternalSubnet, SubnetOverride, SubnetSharedPublicIpAddressConfiguration, - Port, - VirtualNetworkFragment, - SubnetFragment, - ExternalSubnetFragment, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfigurationFragment, - PortFragment + Port } from "../models/mappers"; diff --git a/packages/@azure/arm-devtestlabs/lib/models/usersMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/usersMappers.ts index 028cdea12722..3d4b55bbfc91 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/usersMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/usersMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationUser, + UserList, User, Resource, BaseResource, @@ -17,6 +17,7 @@ export { UserSecretStore, CloudError, UserFragment, + UpdateResource, UserIdentityFragment, UserSecretStoreFragment, Schedule, @@ -41,10 +42,23 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -52,15 +66,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -69,18 +99,13 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -88,6 +113,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, VirtualNetwork, @@ -98,7 +126,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/virtualMachineSchedulesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/virtualMachineSchedulesMappers.ts index 5429a3df0517..c9d5c7833953 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/virtualMachineSchedulesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/virtualMachineSchedulesMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationSchedule, + ScheduleList, Schedule, Resource, BaseResource, @@ -19,6 +19,7 @@ export { NotificationSettings, CloudError, ScheduleFragment, + UpdateResource, WeekDetailsFragment, DayDetailsFragment, HourDetailsFragment, @@ -35,10 +36,23 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -46,15 +60,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -63,18 +93,13 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -82,6 +107,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -98,7 +126,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/virtualMachinesMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/virtualMachinesMappers.ts index 4d4a79ab546c..c197025e4caf 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/virtualMachinesMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/virtualMachinesMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationLabVirtualMachine, + LabVirtualMachineList, LabVirtualMachine, Resource, BaseResource, @@ -29,28 +29,32 @@ export { DayDetails, HourDetails, NotificationSettings, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, CloudError, LabVirtualMachineFragment, + UpdateResource, ArtifactInstallPropertiesFragment, ArtifactParameterPropertiesFragment, ArtifactDeploymentStatusPropertiesFragment, GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, NetworkInterfacePropertiesFragment, SharedPublicIpAddressConfigurationFragment, InboundNatRuleFragment, - ApplicableScheduleFragment, - ScheduleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, WeekDetailsFragment, DayDetailsFragment, HourDetailsFragment, NotificationSettingsFragment, - DataDiskProperties, - AttachNewDataDiskOptions, ApplyArtifactsRequest, DetachDataDiskProperties, + RdpConnection, + ResizeLabVirtualMachineProperties, + ScheduleFragment, + ApplicableScheduleFragment, ArmTemplate, ParametersValueFileInfo, Artifact, @@ -61,16 +65,35 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -79,6 +102,8 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -86,6 +111,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, @@ -102,7 +130,6 @@ export { Port, VirtualNetworkFragment, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment diff --git a/packages/@azure/arm-devtestlabs/lib/models/virtualNetworksMappers.ts b/packages/@azure/arm-devtestlabs/lib/models/virtualNetworksMappers.ts index 7ab24e8b848e..eaa5366d25f1 100644 --- a/packages/@azure/arm-devtestlabs/lib/models/virtualNetworksMappers.ts +++ b/packages/@azure/arm-devtestlabs/lib/models/virtualNetworksMappers.ts @@ -9,7 +9,7 @@ */ export { - ResponseWithContinuationVirtualNetwork, + VirtualNetworkList, VirtualNetwork, Resource, BaseResource, @@ -20,8 +20,8 @@ export { Port, CloudError, VirtualNetworkFragment, + UpdateResource, SubnetFragment, - ExternalSubnetFragment, SubnetOverrideFragment, SubnetSharedPublicIpAddressConfigurationFragment, PortFragment, @@ -47,10 +47,23 @@ export { WindowsOsInfo, LinuxOsInfo, CustomImagePropertiesCustom, + DataDiskStorageTypeInfo, + CustomImagePropertiesFromPlan, + CustomImageFragment, + CustomImagePropertiesFromVmFragment, + WindowsOsInfoFragment, + LinuxOsInfoFragment, + CustomImagePropertiesCustomFragment, + DataDiskStorageTypeInfoFragment, + CustomImagePropertiesFromPlanFragment, Disk, + DiskFragment, DtlEnvironment, EnvironmentDeploymentProperties, ArmTemplateParameterProperties, + DtlEnvironmentFragment, + EnvironmentDeploymentPropertiesFragment, + ArmTemplateParameterPropertiesFragment, Formula, LabVirtualMachineCreationParameter, BulkCreationParameters, @@ -58,15 +71,31 @@ export { ArtifactParameterProperties, ArtifactDeploymentStatusProperties, GalleryImageReference, - ComputeVmProperties, - ComputeVmInstanceViewStatus, - ComputeDataDisk, NetworkInterfaceProperties, SharedPublicIpAddressConfiguration, InboundNatRule, + DataDiskProperties, + AttachNewDataDiskOptions, + ScheduleCreationParameter, FormulaPropertiesFromVm, + FormulaFragment, + LabVirtualMachineCreationParameterFragment, + BulkCreationParametersFragment, + ArtifactInstallPropertiesFragment, + ArtifactParameterPropertiesFragment, + ArtifactDeploymentStatusPropertiesFragment, + GalleryImageReferenceFragment, + NetworkInterfacePropertiesFragment, + SharedPublicIpAddressConfigurationFragment, + InboundNatRuleFragment, + DataDiskPropertiesFragment, + AttachNewDataDiskOptionsFragment, + ScheduleCreationParameterFragment, + FormulaPropertiesFromVmFragment, GalleryImage, Lab, + LabAnnouncementProperties, + LabSupportProperties, LabCost, TargetCostProperties, CostThresholdProperties, @@ -75,18 +104,13 @@ export { LabCostDetailsProperties, LabResourceCostProperties, LabFragment, + LabAnnouncementPropertiesFragment, + LabSupportPropertiesFragment, LabVirtualMachine, + ComputeVmProperties, + ComputeVmInstanceViewStatus, + ComputeDataDisk, LabVirtualMachineFragment, - ArtifactInstallPropertiesFragment, - ArtifactParameterPropertiesFragment, - ArtifactDeploymentStatusPropertiesFragment, - GalleryImageReferenceFragment, - ComputeVmPropertiesFragment, - ComputeVmInstanceViewStatusFragment, - ComputeDataDiskFragment, - NetworkInterfacePropertiesFragment, - SharedPublicIpAddressConfigurationFragment, - InboundNatRuleFragment, NotificationChannel, Event, NotificationChannelFragment, @@ -94,6 +118,9 @@ export { Policy, PolicyFragment, Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, ServiceRunner, IdentityProperties, User, diff --git a/packages/@azure/arm-devtestlabs/lib/operations/armTemplates.ts b/packages/@azure/arm-devtestlabs/lib/operations/armTemplates.ts index 9cb82b1a89c1..fb8b2e69d877 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/armTemplates.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/armTemplates.ts @@ -41,7 +41,7 @@ export class ArmTemplates { * @param artifactSourceName The name of the artifact source. * @param callback The callback */ - list(resourceGroupName: string, labName: string, artifactSourceName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, artifactSourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -49,8 +49,8 @@ export class ArmTemplates { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, artifactSourceName: string, options: Models.ArmTemplatesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, artifactSourceName: string, options?: Models.ArmTemplatesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, artifactSourceName: string, options: Models.ArmTemplatesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, artifactSourceName: string, options?: Models.ArmTemplatesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -113,14 +113,14 @@ export class ArmTemplates { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -154,7 +154,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationArmTemplate + bodyMapper: Mappers.ArmTemplateList }, default: { bodyMapper: Mappers.CloudError @@ -203,7 +203,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationArmTemplate + bodyMapper: Mappers.ArmTemplateList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/artifactSources.ts b/packages/@azure/arm-devtestlabs/lib/operations/artifactSources.ts index 8a2a12e85f46..866fdbaf59b9 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/artifactSources.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/artifactSources.ts @@ -39,15 +39,15 @@ export class ArtifactSources { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.ArtifactSourcesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.ArtifactSourcesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.ArtifactSourcesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.ArtifactSourcesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -221,14 +221,14 @@ export class ArtifactSources { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -261,7 +261,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationArtifactSource + bodyMapper: Mappers.ArtifactSourceList }, default: { bodyMapper: Mappers.CloudError @@ -403,7 +403,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationArtifactSource + bodyMapper: Mappers.ArtifactSourceList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/artifacts.ts b/packages/@azure/arm-devtestlabs/lib/operations/artifacts.ts index 7562241a4b78..bda29b2c22b4 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/artifacts.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/artifacts.ts @@ -41,7 +41,7 @@ export class Artifacts { * @param artifactSourceName The name of the artifact source. * @param callback The callback */ - list(resourceGroupName: string, labName: string, artifactSourceName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, artifactSourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -49,8 +49,8 @@ export class Artifacts { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, artifactSourceName: string, options: Models.ArtifactsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, artifactSourceName: string, options?: Models.ArtifactsListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, artifactSourceName: string, options: Models.ArtifactsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, artifactSourceName: string, options?: Models.ArtifactsListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -161,14 +161,14 @@ export class Artifacts { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -202,7 +202,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationArtifact + bodyMapper: Mappers.ArtifactList }, default: { bodyMapper: Mappers.CloudError @@ -285,7 +285,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationArtifact + bodyMapper: Mappers.ArtifactList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/customImages.ts b/packages/@azure/arm-devtestlabs/lib/operations/customImages.ts index e67b5c7d5968..2cca0338cff5 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/customImages.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/customImages.ts @@ -40,15 +40,15 @@ export class CustomImages { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.CustomImagesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.CustomImagesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.CustomImagesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.CustomImagesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -122,6 +122,46 @@ export class CustomImages { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Modify properties of custom images. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the custom image. + * @param customImage A custom image. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, labName: string, name: string, customImage: Models.CustomImageFragment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the custom image. + * @param customImage A custom image. + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, name: string, customImage: Models.CustomImageFragment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the custom image. + * @param customImage A custom image. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, name: string, customImage: Models.CustomImageFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, name: string, customImage: Models.CustomImageFragment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + customImage, + options + }, + updateOperationSpec, + callback) as Promise; + } + /** * Create or replace an existing custom image. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -175,14 +215,14 @@ export class CustomImages { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -215,7 +255,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationCustomImage + bodyMapper: Mappers.CustomImageList }, default: { bodyMapper: Mappers.CloudError @@ -251,6 +291,39 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "customImage", + mapper: { + ...Mappers.CustomImageFragment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CustomImage + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}", @@ -303,6 +376,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { @@ -324,7 +398,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationCustomImage + bodyMapper: Mappers.CustomImageList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/disks.ts b/packages/@azure/arm-devtestlabs/lib/operations/disks.ts index 15d24b88d8ef..0fb3a741ba9a 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/disks.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/disks.ts @@ -42,7 +42,7 @@ export class Disks { * @param userName The name of the user profile. * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -50,8 +50,8 @@ export class Disks { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, options: Models.DisksListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, userName: string, options?: Models.DisksListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, userName: string, options: Models.DisksListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, options?: Models.DisksListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,6 +132,50 @@ export class Disks { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Modify properties of disks. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param userName The name of the user profile. + * @param name The name of the disk. + * @param disk A Disk. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, labName: string, userName: string, name: string, disk: Models.DiskFragment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param userName The name of the user profile. + * @param name The name of the disk. + * @param disk A Disk. + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, userName: string, name: string, disk: Models.DiskFragment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param userName The name of the user profile. + * @param name The name of the disk. + * @param disk A Disk. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, userName: string, name: string, disk: Models.DiskFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, userName: string, name: string, disk: Models.DiskFragment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + userName, + name, + disk, + options + }, + updateOperationSpec, + callback) as Promise; + } + /** * Attach and create the lease of the disk to the virtual machine. This operation can take a while * to complete. @@ -271,14 +315,14 @@ export class Disks { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -312,7 +356,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationDisk + bodyMapper: Mappers.DiskList }, default: { bodyMapper: Mappers.CloudError @@ -349,6 +393,40 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.userName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "disk", + mapper: { + ...Mappers.DiskFragment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Disk + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}", @@ -403,6 +481,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { @@ -490,7 +569,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationDisk + bodyMapper: Mappers.DiskList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/environments.ts b/packages/@azure/arm-devtestlabs/lib/operations/environments.ts index 471fd93164ca..de68c8979107 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/environments.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/environments.ts @@ -42,7 +42,7 @@ export class Environments { * @param userName The name of the user profile. * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -50,8 +50,8 @@ export class Environments { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, options: Models.EnvironmentsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, userName: string, options?: Models.EnvironmentsListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, userName: string, options: Models.EnvironmentsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, options?: Models.EnvironmentsListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,6 +132,50 @@ export class Environments { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Modify properties of environments. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param userName The name of the user profile. + * @param name The name of the environment. + * @param dtlEnvironment An environment, which is essentially an ARM template deployment. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironmentFragment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param userName The name of the user profile. + * @param name The name of the environment. + * @param dtlEnvironment An environment, which is essentially an ARM template deployment. + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironmentFragment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param userName The name of the user profile. + * @param name The name of the environment. + * @param dtlEnvironment An environment, which is essentially an ARM template deployment. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironmentFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironmentFragment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + userName, + name, + dtlEnvironment, + options + }, + updateOperationSpec, + callback) as Promise; + } + /** * Create or replace an existing environment. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -189,14 +233,14 @@ export class Environments { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -230,7 +274,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationDtlEnvironment + bodyMapper: Mappers.DtlEnvironmentList }, default: { bodyMapper: Mappers.CloudError @@ -267,6 +311,40 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.userName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "dtlEnvironment", + mapper: { + ...Mappers.DtlEnvironmentFragment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DtlEnvironment + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}", @@ -321,6 +399,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { @@ -342,7 +421,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationDtlEnvironment + bodyMapper: Mappers.DtlEnvironmentList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/formulas.ts b/packages/@azure/arm-devtestlabs/lib/operations/formulas.ts index cdc8efd67879..16989f3f6be2 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/formulas.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/formulas.ts @@ -40,15 +40,15 @@ export class Formulas { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.FormulasListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.FormulasListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.FormulasListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.FormulasListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -145,6 +145,46 @@ export class Formulas { callback); } + /** + * Modify properties of formulas. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the formula. + * @param formula A formula for creating a VM, specifying an image base and other parameters + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, labName: string, name: string, formula: Models.FormulaFragment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the formula. + * @param formula A formula for creating a VM, specifying an image base and other parameters + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, name: string, formula: Models.FormulaFragment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the formula. + * @param formula A formula for creating a VM, specifying an image base and other parameters + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, name: string, formula: Models.FormulaFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, name: string, formula: Models.FormulaFragment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + formula, + options + }, + updateOperationSpec, + callback) as Promise; + } + /** * Create or replace an existing Formula. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -178,14 +218,14 @@ export class Formulas { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -218,7 +258,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationFormula + bodyMapper: Mappers.FormulaList }, default: { bodyMapper: Mappers.CloudError @@ -279,6 +319,39 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "formula", + mapper: { + ...Mappers.FormulaFragment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Formula + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}", @@ -327,7 +400,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationFormula + bodyMapper: Mappers.FormulaList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/galleryImages.ts b/packages/@azure/arm-devtestlabs/lib/operations/galleryImages.ts index 61ffeaaf7f87..1008125b71b0 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/galleryImages.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/galleryImages.ts @@ -39,15 +39,15 @@ export class GalleryImages { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.GalleryImagesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.GalleryImagesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.GalleryImagesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.GalleryImagesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -69,14 +69,14 @@ export class GalleryImages { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -109,7 +109,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationGalleryImage + bodyMapper: Mappers.GalleryImageList }, default: { bodyMapper: Mappers.CloudError @@ -130,7 +130,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationGalleryImage + bodyMapper: Mappers.GalleryImageList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/globalSchedules.ts b/packages/@azure/arm-devtestlabs/lib/operations/globalSchedules.ts index ee6268c71626..8b59cb7c7abf 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/globalSchedules.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/globalSchedules.ts @@ -36,13 +36,13 @@ export class GlobalSchedules { /** * @param callback The callback */ - listBySubscription(callback: msRest.ServiceCallback): void; + listBySubscription(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - listBySubscription(options: Models.GlobalSchedulesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscription(options?: Models.GlobalSchedulesListBySubscriptionOptionalParams, callback?: msRest.ServiceCallback): Promise { + listBySubscription(options: Models.GlobalSchedulesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.GlobalSchedulesListBySubscriptionOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -62,14 +62,14 @@ export class GlobalSchedules { * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: Models.GlobalSchedulesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: Models.GlobalSchedulesListByResourceGroupOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options: Models.GlobalSchedulesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.GlobalSchedulesListByResourceGroupOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -289,14 +289,14 @@ export class GlobalSchedules { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -317,14 +317,14 @@ export class GlobalSchedules { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(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 */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -355,7 +355,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSchedule + bodyMapper: Mappers.ScheduleList }, default: { bodyMapper: Mappers.CloudError @@ -383,7 +383,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSchedule + bodyMapper: Mappers.ScheduleList }, default: { bodyMapper: Mappers.CloudError @@ -576,7 +576,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSchedule + bodyMapper: Mappers.ScheduleList }, default: { bodyMapper: Mappers.CloudError @@ -597,7 +597,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSchedule + bodyMapper: Mappers.ScheduleList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/index.ts b/packages/@azure/arm-devtestlabs/lib/operations/index.ts index 0371a9d15fbc..be4417019e72 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/index.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/index.ts @@ -28,6 +28,8 @@ export * from "./users"; export * from "./disks"; export * from "./environments"; export * from "./secrets"; +export * from "./serviceFabrics"; +export * from "./serviceFabricSchedules"; export * from "./virtualMachines"; export * from "./virtualMachineSchedules"; export * from "./virtualNetworks"; diff --git a/packages/@azure/arm-devtestlabs/lib/operations/labs.ts b/packages/@azure/arm-devtestlabs/lib/operations/labs.ts index a064120e1532..8492195fdcdd 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/labs.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/labs.ts @@ -36,13 +36,13 @@ export class Labs { /** * @param callback The callback */ - listBySubscription(callback: msRest.ServiceCallback): void; + listBySubscription(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - listBySubscription(options: Models.LabsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscription(options?: Models.LabsListBySubscriptionOptionalParams, callback?: msRest.ServiceCallback): Promise { + listBySubscription(options: Models.LabsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.LabsListBySubscriptionOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -62,14 +62,14 @@ export class Labs { * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: Models.LabsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: Models.LabsListByResourceGroupOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options: Models.LabsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.LabsListByResourceGroupOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -248,6 +248,20 @@ export class Labs { callback) as Promise; } + /** + * Import a virtual machine into a different lab. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param name The name of the lab. + * @param importLabVirtualMachineRequest This represents the payload required to import a virtual + * machine from a different lab into the current one + * @param [options] The optional parameters + * @returns Promise + */ + importVirtualMachine(resourceGroupName: string, name: string, importLabVirtualMachineRequest: Models.ImportLabVirtualMachineRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginImportVirtualMachine(resourceGroupName,name,importLabVirtualMachineRequest,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * List disk images available for custom image creation. * @param resourceGroupName The name of the resource group. @@ -261,15 +275,15 @@ export class Labs { * @param name The name of the lab. * @param callback The callback */ - listVhds(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + listVhds(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param options The optional parameters * @param callback The callback */ - listVhds(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listVhds(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listVhds(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVhds(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -378,6 +392,27 @@ export class Labs { options); } + /** + * Import a virtual machine into a different lab. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param name The name of the lab. + * @param importLabVirtualMachineRequest This represents the payload required to import a virtual + * machine from a different lab into the current one + * @param [options] The optional parameters + * @returns Promise + */ + beginImportVirtualMachine(resourceGroupName: string, name: string, importLabVirtualMachineRequest: Models.ImportLabVirtualMachineRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + importLabVirtualMachineRequest, + options + }, + beginImportVirtualMachineOperationSpec, + options); + } + /** * List labs in a subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -389,14 +424,14 @@ export class Labs { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -417,14 +452,14 @@ export class Labs { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(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 */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -445,14 +480,14 @@ export class Labs { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listVhdsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listVhdsNext(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 */ - listVhdsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listVhdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listVhdsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVhdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -483,7 +518,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationLab + bodyMapper: Mappers.LabList }, default: { bodyMapper: Mappers.CloudError @@ -511,7 +546,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationLab + bodyMapper: Mappers.LabList }, default: { bodyMapper: Mappers.CloudError @@ -626,7 +661,7 @@ const listVhdsOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationLabVhd + bodyMapper: Mappers.LabVhdList }, default: { bodyMapper: Mappers.CloudError @@ -685,6 +720,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { @@ -780,6 +816,37 @@ const beginExportResourceUsageOperationSpec: msRest.OperationSpec = { serializer }; +const beginImportVirtualMachineOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "importLabVirtualMachineRequest", + mapper: { + ...Mappers.ImportLabVirtualMachineRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -792,7 +859,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationLab + bodyMapper: Mappers.LabList }, default: { bodyMapper: Mappers.CloudError @@ -813,7 +880,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationLab + bodyMapper: Mappers.LabList }, default: { bodyMapper: Mappers.CloudError @@ -834,7 +901,7 @@ const listVhdsNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationLabVhd + bodyMapper: Mappers.LabVhdList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/notificationChannels.ts b/packages/@azure/arm-devtestlabs/lib/operations/notificationChannels.ts index 5feb0e15c13b..2abd8a541f4d 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/notificationChannels.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/notificationChannels.ts @@ -39,15 +39,15 @@ export class NotificationChannels { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.NotificationChannelsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.NotificationChannelsListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.NotificationChannelsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.NotificationChannelsListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -261,14 +261,14 @@ export class NotificationChannels { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -301,7 +301,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationNotificationChannel + bodyMapper: Mappers.NotificationChannelList }, default: { bodyMapper: Mappers.CloudError @@ -474,7 +474,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationNotificationChannel + bodyMapper: Mappers.NotificationChannelList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/policies.ts b/packages/@azure/arm-devtestlabs/lib/operations/policies.ts index 7a889261f3eb..741f169dc9cf 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/policies.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/policies.ts @@ -41,7 +41,7 @@ export class Policies { * @param policySetName The name of the policy set. * @param callback The callback */ - list(resourceGroupName: string, labName: string, policySetName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, policySetName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -49,8 +49,8 @@ export class Policies { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, policySetName: string, options: Models.PoliciesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, policySetName: string, options?: Models.PoliciesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, policySetName: string, options: Models.PoliciesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, policySetName: string, options?: Models.PoliciesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -241,14 +241,14 @@ export class Policies { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -282,7 +282,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationPolicy + bodyMapper: Mappers.PolicyList }, default: { bodyMapper: Mappers.CloudError @@ -428,7 +428,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationPolicy + bodyMapper: Mappers.PolicyList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/schedules.ts b/packages/@azure/arm-devtestlabs/lib/operations/schedules.ts index 77fe068c354b..20e72001f4d4 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/schedules.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/schedules.ts @@ -40,15 +40,15 @@ export class Schedules { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.SchedulesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.SchedulesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.SchedulesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.SchedulesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -239,7 +239,7 @@ export class Schedules { * @param name The name of the schedule. * @param callback The callback */ - listApplicable(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; + listApplicable(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -247,8 +247,8 @@ export class Schedules { * @param options The optional parameters * @param callback The callback */ - listApplicable(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listApplicable(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listApplicable(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listApplicable(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -291,14 +291,14 @@ export class Schedules { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -319,14 +319,14 @@ export class Schedules { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listApplicableNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listApplicableNext(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 */ - listApplicableNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listApplicableNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listApplicableNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listApplicableNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -359,7 +359,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSchedule + bodyMapper: Mappers.ScheduleList }, default: { bodyMapper: Mappers.CloudError @@ -506,7 +506,7 @@ const listApplicableOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSchedule + bodyMapper: Mappers.ScheduleList }, default: { bodyMapper: Mappers.CloudError @@ -552,7 +552,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSchedule + bodyMapper: Mappers.ScheduleList }, default: { bodyMapper: Mappers.CloudError @@ -573,7 +573,7 @@ const listApplicableNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSchedule + bodyMapper: Mappers.ScheduleList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/secrets.ts b/packages/@azure/arm-devtestlabs/lib/operations/secrets.ts index 55fc81908ab1..c6c6704b710c 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/secrets.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/secrets.ts @@ -9,6 +9,7 @@ */ import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/secretsMappers"; import * as Parameters from "../models/parameters"; @@ -41,7 +42,7 @@ export class Secrets { * @param userName The name of the user profile. * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -49,8 +50,8 @@ export class Secrets { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, userName: string, options: Models.SecretsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, userName: string, options?: Models.SecretsListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, userName: string, options: Models.SecretsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, userName: string, options?: Models.SecretsListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -103,7 +104,7 @@ export class Secrets { } /** - * Create or replace an existing secret. + * Create or replace an existing secret. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. @@ -112,78 +113,117 @@ export class Secrets { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,labName,userName,name,secret,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete secret. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param userName The name of the user profile. + * @param name The name of the secret. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. - * @param secret A secret. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. - * @param secret A secret. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, labName, userName, name, - secret, options }, - createOrUpdateOperationSpec, - callback) as Promise; + deleteMethodOperationSpec, + callback); } /** - * Delete secret. + * Modify properties of secrets. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. + * @param secret A secret. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.SecretFragment, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. + * @param secret A secret. * @param callback The callback */ - deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.SecretFragment, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. + * @param secret A secret. * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.SecretFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.SecretFragment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, labName, userName, name, + secret, options }, - deleteMethodOperationSpec, - callback); + updateOperationSpec, + callback) as Promise; + } + + /** + * Create or replace an existing secret. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param userName The name of the user profile. + * @param name The name of the secret. + * @param secret A secret. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Models.Secret, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + userName, + name, + secret, + options + }, + beginCreateOrUpdateOperationSpec, + options); } /** @@ -197,14 +237,14 @@ export class Secrets { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -238,7 +278,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSecret + bodyMapper: Mappers.SecretList }, default: { bodyMapper: Mappers.CloudError @@ -275,8 +315,34 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.userName, + Parameters.name + ], + 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.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}", urlParameters: [ Parameters.subscriptionId, @@ -294,7 +360,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "secret", mapper: { - ...Mappers.Secret, + ...Mappers.SecretFragment, required: true } }, @@ -302,9 +368,6 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.Secret }, - 201: { - bodyMapper: Mappers.Secret - }, default: { bodyMapper: Mappers.CloudError } @@ -312,8 +375,8 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}", urlParameters: [ Parameters.subscriptionId, @@ -328,9 +391,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "secret", + mapper: { + ...Mappers.Secret, + required: true + } + }, responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.Secret + }, + 201: { + bodyMapper: Mappers.Secret + }, default: { bodyMapper: Mappers.CloudError } @@ -350,7 +424,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSecret + bodyMapper: Mappers.SecretList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/serviceRunners.ts b/packages/@azure/arm-devtestlabs/lib/operations/serviceRunners.ts index c6f47562ee90..cadc1d1a716a 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/serviceRunners.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/serviceRunners.ts @@ -39,15 +39,15 @@ export class ServiceRunners { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.ServiceRunnersListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.ServiceRunnersListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.ServiceRunnersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.ServiceRunnersListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -181,14 +181,14 @@ export class ServiceRunners { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -220,7 +220,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationServiceRunner + bodyMapper: Mappers.ServiceRunnerList }, default: { bodyMapper: Mappers.CloudError @@ -328,7 +328,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationServiceRunner + bodyMapper: Mappers.ServiceRunnerList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/users.ts b/packages/@azure/arm-devtestlabs/lib/operations/users.ts index f9bc1f4152c9..755376b460fc 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/users.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/users.ts @@ -40,15 +40,15 @@ export class Users { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.UsersListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.UsersListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.UsersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.UsersListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class Users { } /** - * Create or replace an existing user profile. + * Create or replace an existing user profile. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the user profile. @@ -104,35 +104,9 @@ export class Users { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the user profile. - * @param user Profile of a lab user. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param labName The name of the lab. - * @param name The name of the user profile. - * @param user Profile of a lab user. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - labName, - name, - user, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,labName,name,user,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -188,6 +162,28 @@ export class Users { callback) as Promise; } + /** + * Create or replace an existing user profile. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the user profile. + * @param user Profile of a lab user. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, labName: string, name: string, user: Models.User, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + name, + user, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + /** * Delete user profile. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -219,14 +215,14 @@ export class Users { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -259,7 +255,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationUser + bodyMapper: Mappers.UserList }, default: { bodyMapper: Mappers.CloudError @@ -295,8 +291,8 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}", urlParameters: [ Parameters.subscriptionId, @@ -313,7 +309,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "user", mapper: { - ...Mappers.User, + ...Mappers.UserFragment, required: true } }, @@ -321,9 +317,6 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.User }, - 201: { - bodyMapper: Mappers.User - }, default: { bodyMapper: Mappers.CloudError } @@ -331,8 +324,8 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}", urlParameters: [ Parameters.subscriptionId, @@ -349,7 +342,7 @@ const updateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "user", mapper: { - ...Mappers.UserFragment, + ...Mappers.User, required: true } }, @@ -357,6 +350,9 @@ const updateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.User }, + 201: { + bodyMapper: Mappers.User + }, default: { bodyMapper: Mappers.CloudError } @@ -380,6 +376,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { @@ -401,7 +398,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationUser + bodyMapper: Mappers.UserList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/virtualMachineSchedules.ts b/packages/@azure/arm-devtestlabs/lib/operations/virtualMachineSchedules.ts index 0aa5a1269ad1..0fa35f9db05d 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/virtualMachineSchedules.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/virtualMachineSchedules.ts @@ -42,7 +42,7 @@ export class VirtualMachineSchedules { * @param virtualMachineName The name of the virtual machine. * @param callback The callback */ - list(resourceGroupName: string, labName: string, virtualMachineName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, virtualMachineName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. @@ -50,8 +50,8 @@ export class VirtualMachineSchedules { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, virtualMachineName: string, options: Models.VirtualMachineSchedulesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, virtualMachineName: string, options?: Models.VirtualMachineSchedulesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, virtualMachineName: string, options: Models.VirtualMachineSchedulesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, virtualMachineName: string, options?: Models.VirtualMachineSchedulesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -278,14 +278,14 @@ export class VirtualMachineSchedules { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -319,7 +319,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSchedule + bodyMapper: Mappers.ScheduleList }, default: { bodyMapper: Mappers.CloudError @@ -491,7 +491,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationSchedule + bodyMapper: Mappers.ScheduleList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/virtualMachines.ts b/packages/@azure/arm-devtestlabs/lib/operations/virtualMachines.ts index 11bb90b280e2..11161662d18c 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/virtualMachines.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/virtualMachines.ts @@ -40,15 +40,15 @@ export class VirtualMachines { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.VirtualMachinesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.VirtualMachinesListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.VirtualMachinesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.VirtualMachinesListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -220,7 +220,43 @@ export class VirtualMachines { } /** - * Lists all applicable schedules + * Gets a string that represents the contents of the RDP file for the virtual machine + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + getRdpFileContents(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param callback The callback + */ + getRdpFileContents(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param options The optional parameters + * @param callback The callback + */ + getRdpFileContents(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getRdpFileContents(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + options + }, + getRdpFileContentsOperationSpec, + callback) as Promise; + } + + /** + * Lists the applicable start/stop schedules, if any. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the virtual machine. @@ -255,6 +291,46 @@ export class VirtualMachines { callback) as Promise; } + /** + * Redeploy a virtual machine This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + redeploy(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRedeploy(resourceGroupName,labName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Resize Virtual Machine. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param resizeLabVirtualMachineProperties Request body for resizing a virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + resize(resourceGroupName: string, labName: string, name: string, resizeLabVirtualMachineProperties: Models.ResizeLabVirtualMachineProperties, options?: msRest.RequestOptionsBase): Promise { + return this.beginResize(resourceGroupName,labName,name,resizeLabVirtualMachineProperties,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Restart a virtual machine. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + restart(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestart(resourceGroupName,labName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * Start a virtual machine. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -281,6 +357,33 @@ export class VirtualMachines { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Transfers all data disks attached to the virtual machine to be owned by the current user. This + * operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + transferDisks(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginTransferDisks(resourceGroupName,labName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Release ownership of an existing virtual machine This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + unClaim(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginUnClaim(resourceGroupName,labName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * Create or replace an existing Virtual machine. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -411,6 +514,68 @@ export class VirtualMachines { options); } + /** + * Redeploy a virtual machine This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + beginRedeploy(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + name, + options + }, + beginRedeployOperationSpec, + options); + } + + /** + * Resize Virtual Machine. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param resizeLabVirtualMachineProperties Request body for resizing a virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + beginResize(resourceGroupName: string, labName: string, name: string, resizeLabVirtualMachineProperties: Models.ResizeLabVirtualMachineProperties, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + name, + resizeLabVirtualMachineProperties, + options + }, + beginResizeOperationSpec, + options); + } + + /** + * Restart a virtual machine. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestart(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + name, + options + }, + beginRestartOperationSpec, + options); + } + /** * Start a virtual machine. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. @@ -451,6 +616,47 @@ export class VirtualMachines { options); } + /** + * Transfers all data disks attached to the virtual machine to be owned by the current user. This + * operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + beginTransferDisks(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + name, + options + }, + beginTransferDisksOperationSpec, + options); + } + + /** + * Release ownership of an existing virtual machine This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + beginUnClaim(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + name, + options + }, + beginUnClaimOperationSpec, + options); + } + /** * List virtual machines in a given lab. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -462,14 +668,14 @@ export class VirtualMachines { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -502,7 +708,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationLabVirtualMachine + bodyMapper: Mappers.LabVirtualMachineList }, default: { bodyMapper: Mappers.CloudError @@ -571,6 +777,32 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; +const getRdpFileContentsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/getRdpFileContents", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RdpConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listApplicableSchedulesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules", @@ -649,6 +881,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { @@ -779,6 +1012,88 @@ const beginDetachDataDiskOperationSpec: msRest.OperationSpec = { serializer }; +const beginRedeployOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/redeploy", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginResizeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/resize", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "resizeLabVirtualMachineProperties", + mapper: { + ...Mappers.ResizeLabVirtualMachineProperties, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRestartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/restart", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginStartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start", @@ -829,6 +1144,56 @@ const beginStopOperationSpec: msRest.OperationSpec = { serializer }; +const beginTransferDisksOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/transferDisks", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUnClaimOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/unClaim", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + 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", @@ -841,7 +1206,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationLabVirtualMachine + bodyMapper: Mappers.LabVirtualMachineList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/lib/operations/virtualNetworks.ts b/packages/@azure/arm-devtestlabs/lib/operations/virtualNetworks.ts index bc22c11086a3..1349e2b5789d 100644 --- a/packages/@azure/arm-devtestlabs/lib/operations/virtualNetworks.ts +++ b/packages/@azure/arm-devtestlabs/lib/operations/virtualNetworks.ts @@ -40,15 +40,15 @@ export class VirtualNetworks { * @param labName The name of the lab. * @param callback The callback */ - list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, labName: string, options: Models.VirtualNetworksListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, labName: string, options?: Models.VirtualNetworksListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.VirtualNetworksListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.VirtualNetworksListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -215,14 +215,14 @@ export class VirtualNetworks { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -255,7 +255,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationVirtualNetwork + bodyMapper: Mappers.VirtualNetworkList }, default: { bodyMapper: Mappers.CloudError @@ -376,6 +376,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { @@ -397,7 +398,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ResponseWithContinuationVirtualNetwork + bodyMapper: Mappers.VirtualNetworkList }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-devtestlabs/package.json b/packages/@azure/arm-devtestlabs/package.json index 0839dea5acc1..6e8499e00f87 100644 --- a/packages/@azure/arm-devtestlabs/package.json +++ b/packages/@azure/arm-devtestlabs/package.json @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-devtestlabs.js.map'\" -o ./dist/arm-devtestlabs.min.js ./dist/arm-devtestlabs.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-hdinsight/LICENSE.txt b/packages/@azure/arm-hdinsight/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-hdinsight/LICENSE.txt +++ b/packages/@azure/arm-hdinsight/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-hdinsight/README.md b/packages/@azure/arm-hdinsight/README.md index 90f4333eb091..079d55d64e38 100644 --- a/packages/@azure/arm-hdinsight/README.md +++ b/packages/@azure/arm-hdinsight/README.md @@ -1,81 +1,81 @@ -# Azure HDInsightManagementClient SDK for JavaScript -This package contains an isomorphic SDK for HDInsightManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-hdinsight -``` - - -## How to use - -### nodejs - Authentication, client creation and get clusters as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { HDInsightManagementClient, HDInsightManagementModels, HDInsightManagementMappers } from "@azure/arm-hdinsight"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new HDInsightManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const clusterName = "testclusterName"; - client.clusters.get(resourceGroupName, clusterName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and get clusters as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-hdinsight sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure HDInsightManagementClient SDK for JavaScript +This package contains an isomorphic SDK for HDInsightManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-hdinsight +``` + + +## How to use + +### nodejs - Authentication, client creation and get clusters as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { HDInsightManagementClient, HDInsightManagementModels, HDInsightManagementMappers } from "@azure/arm-hdinsight"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new HDInsightManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const clusterName = "testclusterName"; + client.clusters.get(resourceGroupName, clusterName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and get clusters as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-hdinsight sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-hdinsight/lib/hDInsightManagementClientContext.ts b/packages/@azure/arm-hdinsight/lib/hDInsightManagementClientContext.ts index 8d7647058236..1e8735107ed5 100644 --- a/packages/@azure/arm-hdinsight/lib/hDInsightManagementClientContext.ts +++ b/packages/@azure/arm-hdinsight/lib/hDInsightManagementClientContext.ts @@ -16,16 +16,9 @@ const packageName = "@azure/arm-hdinsight"; const packageVersion = "1.0.0-preview"; export class HDInsightManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - - apiVersion: string; - - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; + apiVersion?: string; /** * Initializes a new instance of the HDInsightManagementClient class. diff --git a/packages/@azure/arm-hdinsight/package.json b/packages/@azure/arm-hdinsight/package.json index 47880d0f7e2a..49f48dfc23ef 100644 --- a/packages/@azure/arm-hdinsight/package.json +++ b/packages/@azure/arm-hdinsight/package.json @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-hdinsight.js.map'\" -o ./dist/arm-hdinsight.min.js ./dist/arm-hdinsight.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts index ac27625bd398..72703a6ed692 100644 --- a/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts @@ -57,12 +57,14 @@ export { ApplicationGatewayBackendHttpSettings, ApplicationGatewayConnectionDraining, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayUrlPathMap, ApplicationGatewayPathRule, ApplicationGatewayRequestRoutingRule, ApplicationGatewayRedirectConfiguration, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, TagsObject, ApplicationGatewayListResult, @@ -114,6 +116,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts b/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts index 15efaa40479b..c83b8c9bd1b0 100644 --- a/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts +++ b/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts b/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts index 2c47b87b9b67..6f7a417cab71 100644 --- a/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts +++ b/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts b/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts index 3acec4e1335f..02340e549199 100644 --- a/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts +++ b/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts b/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts index 382804f5c297..0bca1842f92d 100644 --- a/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts +++ b/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts @@ -64,6 +64,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -75,6 +76,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts b/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts index 69ef6f6b4746..22feb3feab0c 100644 --- a/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts +++ b/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts @@ -55,6 +55,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,6 +67,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,6 +111,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts b/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts index fc5b587e4e20..e514fd4c41f7 100644 --- a/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts +++ b/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts @@ -62,6 +62,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -73,6 +74,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -116,6 +118,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts b/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts index e18316959961..d311efa691b2 100644 --- a/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts +++ b/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts b/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts index 19ece5574234..6f1b6da623d3 100644 --- a/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts index 522810f7e5ab..28b10e9daba5 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts index 45b22b84c909..9925352030c8 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -106,6 +108,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts index 439eab1fd931..823df35663ae 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts @@ -61,6 +61,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -72,6 +73,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts index e9792a3c4b3b..b5fc58fe2d7d 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts @@ -72,6 +72,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -83,6 +84,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -114,6 +116,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts index 002c92b27281..95c99cdddfd0 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts @@ -55,6 +55,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,6 +67,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts index 6dc1130fc88b..db80482962d0 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts @@ -62,6 +62,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -73,6 +74,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts index b4b1c1cc0daa..e1ce41edf69d 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts @@ -71,6 +71,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -82,6 +83,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -114,6 +116,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts index 1374f7b62c59..96dbea83dfd8 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts @@ -59,6 +59,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -70,6 +71,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteCrossConnectionPeering, ExpressRouteCrossConnection, ExpressRouteCircuitReference, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts index bdba74264f14..5880412e35a7 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts @@ -55,6 +55,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,6 +67,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts index 1d4b1a209e34..9ff88de9ea0a 100644 --- a/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts @@ -55,6 +55,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,6 +67,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,6 +111,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts b/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts index 787bfcadea78..1e11a89cff07 100644 --- a/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/index.ts b/packages/@azure/arm-network/lib/models/index.ts index 7ea6812cc625..279c2f5b88d0 100644 --- a/packages/@azure/arm-network/lib/models/index.ts +++ b/packages/@azure/arm-network/lib/models/index.ts @@ -1992,6 +1992,26 @@ export interface ApplicationGatewayFrontendPort extends SubResource { type?: string; } +/** + * @interface + * An interface representing ApplicationGatewayCustomError. + * Customer error of an application gateway. + * + */ +export interface ApplicationGatewayCustomError { + /** + * @member {ApplicationGatewayCustomErrorStatusCode} [statusCode] Status code + * of the application gateway customer error. Possible values include: + * 'HttpStatus403', 'HttpStatus502' + */ + statusCode?: ApplicationGatewayCustomErrorStatusCode; + /** + * @member {string} [customErrorPageUrl] Error page URL of the application + * gateway customer error. + */ + customErrorPageUrl?: string; +} + /** * @interface * An interface representing ApplicationGatewayHttpListener. @@ -2036,6 +2056,11 @@ export interface ApplicationGatewayHttpListener extends SubResource { * 'Failed'. */ provisioningState?: string; + /** + * @member {ApplicationGatewayCustomError[]} [customErrorConfigurations] + * Custom error configurations of the HTTP listener. + */ + customErrorConfigurations?: ApplicationGatewayCustomError[]; /** * @member {string} [name] Name of the HTTP listener that is unique within an * Application Gateway. @@ -2391,6 +2416,31 @@ export interface ApplicationGatewayFirewallDisabledRuleGroup { rules?: number[]; } +/** + * @interface + * An interface representing ApplicationGatewayFirewallExclusion. + * Allow to exclude some variable satisfy the condition for the WAF check + * + */ +export interface ApplicationGatewayFirewallExclusion { + /** + * @member {string} matchVariable The variable to be excluded. + */ + matchVariable: string; + /** + * @member {string} selectorMatchOperator When matchVariable is a collection, + * operate on the selector to specify which elements in the collection this + * exclusion applies to. + */ + selectorMatchOperator: string; + /** + * @member {string} selector When matchVariable is a collection, operator + * used to specify which elements in the collection this exclusion applies + * to. + */ + selector: string; +} + /** * @interface * An interface representing ApplicationGatewayWebApplicationFirewallConfiguration. @@ -2431,6 +2481,21 @@ export interface ApplicationGatewayWebApplicationFirewallConfiguration { * @member {number} [maxRequestBodySize] Maxium request body size for WAF. */ maxRequestBodySize?: number; + /** + * @member {number} [maxRequestBodySizeInKb] Maxium request body size in Kb + * for WAF. + */ + maxRequestBodySizeInKb?: number; + /** + * @member {number} [fileUploadLimitInMb] Maxium file upload size in Mb for + * WAF. + */ + fileUploadLimitInMb?: number; + /** + * @member {ApplicationGatewayFirewallExclusion[]} [exclusions] The exclusion + * list. + */ + exclusions?: ApplicationGatewayFirewallExclusion[]; } /** @@ -2575,6 +2640,11 @@ export interface ApplicationGateway extends Resource { * 'Failed'. */ provisioningState?: string; + /** + * @member {ApplicationGatewayCustomError[]} [customErrorConfigurations] + * Custom error configurations of the application gateway resource. + */ + customErrorConfigurations?: ApplicationGatewayCustomError[]; /** * @member {string} [etag] A unique read-only string that changes whenever * the resource is updated. @@ -3700,8 +3770,8 @@ export interface ExpressRouteCircuitSku { name?: string; /** * @member {ExpressRouteCircuitSkuTier} [tier] The tier of the SKU. Possible - * values are 'Standard' and 'Premium'. Possible values include: 'Standard', - * 'Premium' + * values are 'Standard', 'Premium' or 'Basic'. Possible values include: + * 'Standard', 'Premium', 'Basic' */ tier?: ExpressRouteCircuitSkuTier; /** @@ -3784,6 +3854,24 @@ export interface ExpressRouteCircuit extends Resource { * [serviceProviderProperties] The ServiceProviderProperties. */ serviceProviderProperties?: ExpressRouteCircuitServiceProviderProperties; + /** + * @member {SubResource} [expressRoutePort] The reference to the + * ExpressRoutePort resource when the circuit is provisioned on an + * ExpressRoutePort resource. + */ + expressRoutePort?: SubResource; + /** + * @member {number} [bandwidthInGbps] The bandwidth of the circuit when the + * circuit is provisioned on an ExpressRoutePort resource. + */ + bandwidthInGbps?: number; + /** + * @member {number} [stag] The identifier of the circuit traffic. Outer tag + * for QinQ encapsulation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly stag?: number; /** * @member {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and @@ -4393,6 +4481,221 @@ export interface ExpressRouteConnectionList { value?: ExpressRouteConnection[]; } +/** + * @interface + * An interface representing ExpressRoutePortsLocationBandwidths. + * @summary ExpressRoutePorts Location Bandwidths + * + * Real-time inventory of available ExpressRoute port bandwidths. + * + */ +export interface ExpressRoutePortsLocationBandwidths { + /** + * @member {string} [offerName] Bandwidth descriptive name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly offerName?: string; + /** + * @member {number} [valueInGbps] Bandwidth value in Gbps + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly valueInGbps?: number; +} + +/** + * @interface + * An interface representing ExpressRoutePortsLocation. + * @summary ExpressRoutePorts Peering Location + * + * Definition of the ExpressRoutePorts peering location resource. + * + * @extends Resource + */ +export interface ExpressRoutePortsLocation extends Resource { + /** + * @member {string} [address] Address of peering location. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly address?: string; + /** + * @member {string} [contact] Contact details of peering locations. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly contact?: string; + /** + * @member {ExpressRoutePortsLocationBandwidths[]} [availableBandwidths] The + * inventory of available ExpressRoutePort bandwidths. + */ + availableBandwidths?: ExpressRoutePortsLocationBandwidths[]; + /** + * @member {string} [provisioningState] The provisioning state of the + * ExpressRoutePortLocation resource. Possible values are: 'Succeeded', + * 'Updating', 'Deleting', and 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; +} + +/** + * @interface + * An interface representing ExpressRouteLink. + * @summary ExpressRouteLink + * + * ExpressRouteLink child resource definition. + * + * @extends SubResource + */ +export interface ExpressRouteLink extends SubResource { + /** + * @member {string} [routerName] Name of Azure router associated with + * physical port. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly routerName?: string; + /** + * @member {string} [interfaceName] Name of Azure router interface. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly interfaceName?: string; + /** + * @member {string} [patchPanelId] Mapping between physical port to patch + * panel port. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly patchPanelId?: string; + /** + * @member {string} [rackId] Mapping of physical patch panel to rack. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly rackId?: string; + /** + * @member {ExpressRouteLinkConnectorType} [connectorType] Physical fiber + * port type. Possible values include: 'LC', 'SC' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly connectorType?: ExpressRouteLinkConnectorType; + /** + * @member {ExpressRouteLinkAdminState} [adminState] Administrative state of + * the physical port. Possible values include: 'Enabled', 'Disabled' + */ + adminState?: ExpressRouteLinkAdminState; + /** + * @member {string} [provisioningState] The provisioning state of the + * ExpressRouteLink resource. Possible values are: 'Succeeded', 'Updating', + * 'Deleting', and 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; + /** + * @member {string} [name] Name of child port resource that is unique among + * child port resources of the parent. + */ + name?: string; + /** + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly etag?: string; +} + +/** + * @interface + * An interface representing ExpressRoutePort. + * @summary ExpressRoute Port + * + * ExpressRoutePort resource definition. + * + * @extends Resource + */ +export interface ExpressRoutePort extends Resource { + /** + * @member {string} [peeringLocation] The name of the peering location that + * the ExpressRoutePort is mapped to physically. + */ + peeringLocation?: string; + /** + * @member {number} [bandwidthInGbps] Bandwidth of procured ports in Gbps + */ + bandwidthInGbps?: number; + /** + * @member {number} [provisionedBandwidthInGbps] Aggregate Gbps of associated + * circuit bandwidths. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisionedBandwidthInGbps?: number; + /** + * @member {string} [mtu] Maximum transmission unit of the physical port + * pair(s) + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly mtu?: string; + /** + * @member {ExpressRoutePortsEncapsulation} [encapsulation] Encapsulation + * method on physical ports. Possible values include: 'Dot1Q', 'QinQ' + */ + encapsulation?: ExpressRoutePortsEncapsulation; + /** + * @member {string} [etherType] Ethertype of the physical port. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly etherType?: string; + /** + * @member {string} [allocationDate] Date of the physical port allocation to + * be used in Letter of Authorization. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly allocationDate?: string; + /** + * @member {ExpressRouteLink[]} [links] ExpressRouteLink Sub-Resources. The + * set of physical links of the ExpressRoutePort resource + */ + links?: ExpressRouteLink[]; + /** + * @member {SubResource[]} [circuits] Reference the ExpressRoute circuit(s) + * that are provisioned on this ExpressRoutePort resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly circuits?: SubResource[]; + /** + * @member {string} [provisioningState] The provisioning state of the + * ExpressRoutePort resource. Possible values are: 'Succeeded', 'Updating', + * 'Deleting', and 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; + /** + * @member {string} [resourceGuid] The resource GUID property of the + * ExpressRoutePort resource. + */ + resourceGuid?: string; + /** + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly etag?: string; +} + /** * @interface * An interface representing LoadBalancerSku. @@ -6817,11 +7120,11 @@ export interface ConnectionMonitorQueryResult { /** * @interface - * An interface representing TrafficQuery. + * An interface representing NetworkConfigurationDiagnosticProfile. * Parameters to compare with network configuration. * */ -export interface TrafficQuery { +export interface NetworkConfigurationDiagnosticProfile { /** * @member {Direction} direction The direction of the traffic. Accepted * values are 'Inbound' and 'Outbound'. Possible values include: 'Inbound', @@ -6865,9 +7168,16 @@ export interface NetworkConfigurationDiagnosticParameters { */ targetResourceId: string; /** - * @member {TrafficQuery[]} queries List of traffic queries. + * @member {VerbosityLevel} [verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + */ + verbosityLevel?: VerbosityLevel; + /** + * @member {NetworkConfigurationDiagnosticProfile[]} profiles List of network + * configuration diagnostic profiles. */ - queries: TrafficQuery[]; + profiles: NetworkConfigurationDiagnosticProfile[]; } /** @@ -6937,6 +7247,11 @@ export interface EvaluatedNetworkSecurityGroup { * @member {string} [networkSecurityGroupId] Network security group ID. */ networkSecurityGroupId?: string; + /** + * @member {string} [appliedTo] Resource ID of nic or subnet to which network + * security group is applied. + */ + appliedTo?: string; /** * @member {MatchedRule} [matchedRule] */ @@ -6981,9 +7296,9 @@ export interface NetworkSecurityGroupResult { */ export interface NetworkConfigurationDiagnosticResult { /** - * @member {TrafficQuery} [trafficQuery] + * @member {NetworkConfigurationDiagnosticProfile} [profile] */ - trafficQuery?: TrafficQuery; + profile?: NetworkConfigurationDiagnosticProfile; /** * @member {NetworkSecurityGroupResult} [networkSecurityGroupResult] */ @@ -9749,20 +10064,6 @@ export interface VirtualNetworksGetOptionalParams extends msRest.RequestOptionsB expand?: string; } -/** - * @interface - * An interface representing VirtualNetworksCheckIPAddressAvailabilityOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface VirtualNetworksCheckIPAddressAvailabilityOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [ipAddress] The private IP address to be verified. - */ - ipAddress?: string; -} - /** * @interface * An interface representing SubnetsGetOptionalParams. @@ -10059,6 +10360,54 @@ export interface ExpressRouteCrossConnectionPeeringList extends Array + */ +export interface ExpressRoutePortsLocationListResult extends Array { + /** + * @member {string} [nextLink] The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ExpressRoutePortListResult. + * @summary ExpressRoute Port List Result + * + * Response for ListExpressRoutePorts API service call. + * + * @extends Array + */ +export interface ExpressRoutePortListResult extends Array { + /** + * @member {string} [nextLink] The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ExpressRouteLinkListResult. + * @summary ExpressRouteLink List Result + * + * Response for ListExpressRouteLinks API service call. + * + * @extends Array + */ +export interface ExpressRouteLinkListResult extends Array { + /** + * @member {string} [nextLink] The URL to get the next set of results. + */ + nextLink?: string; +} + /** * @interface * An interface representing the InterfaceEndpointListResult. @@ -10155,6 +10504,22 @@ export interface LoadBalancerLoadBalancingRuleListResult extends Array + */ +export interface LoadBalancerOutboundRuleListResult extends Array { + /** + * @member {string} [nextLink] The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + /** * @interface * An interface representing the NetworkInterfaceListResult. @@ -11064,6 +11429,22 @@ export enum ApplicationGatewaySslCipherSuite { TLSRSAWITH3DESEDECBCSHA = 'TLS_RSA_WITH_3DES_EDE_CBC_SHA', } +/** + * Defines values for ApplicationGatewayCustomErrorStatusCode. + * Possible values include: 'HttpStatus403', 'HttpStatus502' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApplicationGatewayCustomErrorStatusCode = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApplicationGatewayCustomErrorStatusCode { + HttpStatus403 = 'HttpStatus403', + HttpStatus502 = 'HttpStatus502', +} + /** * Defines values for ApplicationGatewayRequestRoutingRuleType. * Possible values include: 'Basic', 'PathBasedRouting' @@ -11200,7 +11581,7 @@ export enum AzureFirewallNatRCActionType { /** * Defines values for AzureFirewallNetworkRuleProtocol. - * Possible values include: 'TCP', 'UDP', 'Any' + * Possible values include: 'TCP', 'UDP', 'Any', 'ICMP' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: @@ -11213,6 +11594,7 @@ export enum AzureFirewallNetworkRuleProtocol { TCP = 'TCP', UDP = 'UDP', Any = 'Any', + ICMP = 'ICMP', } /** @@ -11334,7 +11716,7 @@ export enum ExpressRouteCircuitPeeringState { /** * Defines values for ExpressRouteCircuitSkuTier. - * Possible values include: 'Standard', 'Premium' + * Possible values include: 'Standard', 'Premium', 'Basic' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: @@ -11346,6 +11728,7 @@ export enum ExpressRouteCircuitPeeringState { export enum ExpressRouteCircuitSkuTier { Standard = 'Standard', Premium = 'Premium', + Basic = 'Basic', } /** @@ -11384,8 +11767,56 @@ export enum ServiceProviderProvisioningState { } /** - * Defines values for LoadBalancerSkuName. - * Possible values include: 'Basic', 'Standard' + * Defines values for ExpressRouteLinkConnectorType. + * Possible values include: 'LC', 'SC' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ExpressRouteLinkConnectorType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ExpressRouteLinkConnectorType { + LC = 'LC', + SC = 'SC', +} + +/** + * Defines values for ExpressRouteLinkAdminState. + * Possible values include: 'Enabled', 'Disabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ExpressRouteLinkAdminState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ExpressRouteLinkAdminState { + Enabled = 'Enabled', + Disabled = 'Disabled', +} + +/** + * Defines values for ExpressRoutePortsEncapsulation. + * Possible values include: 'Dot1Q', 'QinQ' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ExpressRoutePortsEncapsulation = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ExpressRoutePortsEncapsulation { + Dot1Q = 'Dot1Q', + QinQ = 'QinQ', +} + +/** + * Defines values for LoadBalancerSkuName. + * Possible values include: 'Basic', 'Standard' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: @@ -11779,6 +12210,23 @@ export enum EvaluationState { Completed = 'Completed', } +/** + * Defines values for VerbosityLevel. + * Possible values include: 'Normal', 'Minimum', 'Full' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: VerbosityLevel = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum VerbosityLevel { + Normal = 'Normal', + Minimum = 'Minimum', + Full = 'Full', +} + /** * Defines values for PublicIPPrefixSkuName. * Possible values include: 'Standard' @@ -14330,6 +14778,291 @@ export type ExpressRouteConnectionsBeginCreateOrUpdateResponse = ExpressRouteCon }; }; +/** + * Contains response data for the list operation. + */ +export type ExpressRoutePortsLocationsListResponse = ExpressRoutePortsLocationListResult & { + /** + * 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: ExpressRoutePortsLocationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ExpressRoutePortsLocationsGetResponse = ExpressRoutePortsLocation & { + /** + * 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: ExpressRoutePortsLocation; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ExpressRoutePortsLocationsListNextResponse = ExpressRoutePortsLocationListResult & { + /** + * 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: ExpressRoutePortsLocationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ExpressRoutePortsGetResponse = ExpressRoutePort & { + /** + * 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: ExpressRoutePort; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ExpressRoutePortsCreateOrUpdateResponse = ExpressRoutePort & { + /** + * 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: ExpressRoutePort; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type ExpressRoutePortsUpdateTagsResponse = ExpressRoutePort & { + /** + * 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: ExpressRoutePort; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type ExpressRoutePortsListByResourceGroupResponse = ExpressRoutePortListResult & { + /** + * 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: ExpressRoutePortListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ExpressRoutePortsListResponse = ExpressRoutePortListResult & { + /** + * 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: ExpressRoutePortListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ExpressRoutePortsBeginCreateOrUpdateResponse = ExpressRoutePort & { + /** + * 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: ExpressRoutePort; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type ExpressRoutePortsBeginUpdateTagsResponse = ExpressRoutePort & { + /** + * 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: ExpressRoutePort; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type ExpressRoutePortsListByResourceGroupNextResponse = ExpressRoutePortListResult & { + /** + * 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: ExpressRoutePortListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ExpressRoutePortsListNextResponse = ExpressRoutePortListResult & { + /** + * 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: ExpressRoutePortListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ExpressRouteLinksGetResponse = ExpressRouteLink & { + /** + * 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: ExpressRouteLink; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ExpressRouteLinksListResponse = ExpressRouteLinkListResult & { + /** + * 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: ExpressRouteLinkListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ExpressRouteLinksListNextResponse = ExpressRouteLinkListResult & { + /** + * 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: ExpressRouteLinkListResult; + }; +}; + /** * Contains response data for the get operation. */ @@ -14900,6 +15633,63 @@ export type LoadBalancerLoadBalancingRulesListNextResponse = LoadBalancerLoadBal }; }; +/** + * Contains response data for the list operation. + */ +export type LoadBalancerOutboundRulesListResponse = LoadBalancerOutboundRuleListResult & { + /** + * 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: LoadBalancerOutboundRuleListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LoadBalancerOutboundRulesGetResponse = OutboundRule & { + /** + * 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: OutboundRule; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type LoadBalancerOutboundRulesListNextResponse = LoadBalancerOutboundRuleListResult & { + /** + * 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: LoadBalancerOutboundRuleListResult; + }; +}; + /** * Contains response data for the list operation. */ diff --git a/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts b/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts index 35e15ce8ce87..df10a912a858 100644 --- a/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts +++ b/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts index 405bf7b501b9..fd2bf21e6ded 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts index d548e17d0a28..485ed18150d0 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts index 67914e1ee54e..afcdfa293aa3 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -108,6 +110,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, Probe, InboundNatPool, OutboundRule, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts index f12d7a68eabf..3d13879ea246 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts index b78be22dd7ab..30c734265c37 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -108,6 +110,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, InboundNatPool, OutboundRule, diff --git a/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts index 80756a94c71d..58fcf6253418 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts @@ -60,6 +60,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -71,6 +72,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -114,6 +116,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, ContainerNetworkInterfaceConfiguration, ContainerNetworkInterface, Container, diff --git a/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts index 50674894b631..1e5986d2a9de 100644 --- a/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts @@ -57,6 +57,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -68,6 +69,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -111,6 +113,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/mappers.ts b/packages/@azure/arm-network/lib/models/mappers.ts index 24d5e46919c6..fbaad053a663 100644 --- a/packages/@azure/arm-network/lib/models/mappers.ts +++ b/packages/@azure/arm-network/lib/models/mappers.ts @@ -2614,6 +2614,28 @@ export const ApplicationGatewayFrontendPort: msRest.CompositeMapper = { } }; +export const ApplicationGatewayCustomError: msRest.CompositeMapper = { + serializedName: "ApplicationGatewayCustomError", + type: { + name: "Composite", + className: "ApplicationGatewayCustomError", + modelProperties: { + statusCode: { + serializedName: "statusCode", + type: { + name: "String" + } + }, + customErrorPageUrl: { + serializedName: "customErrorPageUrl", + type: { + name: "String" + } + } + } + } +}; + export const ApplicationGatewayHttpListener: msRest.CompositeMapper = { serializedName: "ApplicationGatewayHttpListener", type: { @@ -2666,6 +2688,18 @@ export const ApplicationGatewayHttpListener: msRest.CompositeMapper = { name: "String" } }, + customErrorConfigurations: { + serializedName: "properties.customErrorConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayCustomError" + } + } + } + }, name: { serializedName: "name", type: { @@ -3140,6 +3174,37 @@ export const ApplicationGatewayFirewallDisabledRuleGroup: msRest.CompositeMapper } }; +export const ApplicationGatewayFirewallExclusion: msRest.CompositeMapper = { + serializedName: "ApplicationGatewayFirewallExclusion", + type: { + name: "Composite", + className: "ApplicationGatewayFirewallExclusion", + modelProperties: { + matchVariable: { + required: true, + serializedName: "matchVariable", + type: { + name: "String" + } + }, + selectorMatchOperator: { + required: true, + serializedName: "selectorMatchOperator", + type: { + name: "String" + } + }, + selector: { + required: true, + serializedName: "selector", + type: { + name: "String" + } + } + } + } +}; + export const ApplicationGatewayWebApplicationFirewallConfiguration: msRest.CompositeMapper = { serializedName: "ApplicationGatewayWebApplicationFirewallConfiguration", type: { @@ -3201,6 +3266,38 @@ export const ApplicationGatewayWebApplicationFirewallConfiguration: msRest.Compo type: { name: "Number" } + }, + maxRequestBodySizeInKb: { + serializedName: "maxRequestBodySizeInKb", + constraints: { + InclusiveMaximum: 128, + InclusiveMinimum: 8 + }, + type: { + name: "Number" + } + }, + fileUploadLimitInMb: { + serializedName: "fileUploadLimitInMb", + constraints: { + InclusiveMaximum: 500, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + exclusions: { + serializedName: "exclusions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayFirewallExclusion" + } + } + } } } } @@ -3448,6 +3545,18 @@ export const ApplicationGateway: msRest.CompositeMapper = { name: "String" } }, + customErrorConfigurations: { + serializedName: "properties.customErrorConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayCustomError" + } + } + } + }, etag: { serializedName: "etag", type: { @@ -5121,6 +5230,26 @@ export const ExpressRouteCircuit: msRest.CompositeMapper = { className: "ExpressRouteCircuitServiceProviderProperties" } }, + expressRoutePort: { + serializedName: "properties.expressRoutePort", + type: { + name: "Composite", + className: "SubResource" + } + }, + bandwidthInGbps: { + serializedName: "properties.bandwidthInGbps", + type: { + name: "Number" + } + }, + stag: { + readOnly: true, + serializedName: "properties.stag", + type: { + name: "Number" + } + }, provisioningState: { serializedName: "properties.provisioningState", type: { @@ -5915,6 +6044,248 @@ export const ExpressRouteConnectionList: msRest.CompositeMapper = { } }; +export const ExpressRoutePortsLocationBandwidths: msRest.CompositeMapper = { + serializedName: "ExpressRoutePortsLocationBandwidths", + type: { + name: "Composite", + className: "ExpressRoutePortsLocationBandwidths", + modelProperties: { + offerName: { + readOnly: true, + serializedName: "offerName", + type: { + name: "String" + } + }, + valueInGbps: { + readOnly: true, + serializedName: "valueInGbps", + type: { + name: "Number" + } + } + } + } +}; + +export const ExpressRoutePortsLocation: msRest.CompositeMapper = { + serializedName: "ExpressRoutePortsLocation", + type: { + name: "Composite", + className: "ExpressRoutePortsLocation", + modelProperties: { + ...Resource.type.modelProperties, + address: { + readOnly: true, + serializedName: "properties.address", + type: { + name: "String" + } + }, + contact: { + readOnly: true, + serializedName: "properties.contact", + type: { + name: "String" + } + }, + availableBandwidths: { + serializedName: "properties.availableBandwidths", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRoutePortsLocationBandwidths" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const ExpressRouteLink: msRest.CompositeMapper = { + serializedName: "ExpressRouteLink", + type: { + name: "Composite", + className: "ExpressRouteLink", + modelProperties: { + ...SubResource.type.modelProperties, + routerName: { + readOnly: true, + serializedName: "properties.routerName", + type: { + name: "String" + } + }, + interfaceName: { + readOnly: true, + serializedName: "properties.interfaceName", + type: { + name: "String" + } + }, + patchPanelId: { + readOnly: true, + serializedName: "properties.patchPanelId", + type: { + name: "String" + } + }, + rackId: { + readOnly: true, + serializedName: "properties.rackId", + type: { + name: "String" + } + }, + connectorType: { + readOnly: true, + serializedName: "properties.connectorType", + type: { + name: "String" + } + }, + adminState: { + serializedName: "properties.adminState", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ExpressRoutePort: msRest.CompositeMapper = { + serializedName: "ExpressRoutePort", + type: { + name: "Composite", + className: "ExpressRoutePort", + modelProperties: { + ...Resource.type.modelProperties, + peeringLocation: { + serializedName: "properties.peeringLocation", + type: { + name: "String" + } + }, + bandwidthInGbps: { + serializedName: "properties.bandwidthInGbps", + type: { + name: "Number" + } + }, + provisionedBandwidthInGbps: { + readOnly: true, + serializedName: "properties.provisionedBandwidthInGbps", + type: { + name: "Number" + } + }, + mtu: { + readOnly: true, + serializedName: "properties.mtu", + type: { + name: "String" + } + }, + encapsulation: { + serializedName: "properties.encapsulation", + type: { + name: "String" + } + }, + etherType: { + readOnly: true, + serializedName: "properties.etherType", + type: { + name: "String" + } + }, + allocationDate: { + readOnly: true, + serializedName: "properties.allocationDate", + type: { + name: "String" + } + }, + links: { + serializedName: "properties.links", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteLink" + } + } + } + }, + circuits: { + readOnly: true, + serializedName: "properties.circuits", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const LoadBalancerSku: msRest.CompositeMapper = { serializedName: "LoadBalancerSku", type: { @@ -9206,11 +9577,11 @@ export const ConnectionMonitorQueryResult: msRest.CompositeMapper = { } }; -export const TrafficQuery: msRest.CompositeMapper = { - serializedName: "TrafficQuery", +export const NetworkConfigurationDiagnosticProfile: msRest.CompositeMapper = { + serializedName: "NetworkConfigurationDiagnosticProfile", type: { name: "Composite", - className: "TrafficQuery", + className: "NetworkConfigurationDiagnosticProfile", modelProperties: { direction: { required: true, @@ -9264,15 +9635,21 @@ export const NetworkConfigurationDiagnosticParameters: msRest.CompositeMapper = name: "String" } }, - queries: { + verbosityLevel: { + serializedName: "verbosityLevel", + type: { + name: "String" + } + }, + profiles: { required: true, - serializedName: "queries", + serializedName: "profiles", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TrafficQuery" + className: "NetworkConfigurationDiagnosticProfile" } } } @@ -9361,6 +9738,12 @@ export const EvaluatedNetworkSecurityGroup: msRest.CompositeMapper = { name: "String" } }, + appliedTo: { + serializedName: "appliedTo", + type: { + name: "String" + } + }, matchedRule: { serializedName: "matchedRule", type: { @@ -9420,11 +9803,11 @@ export const NetworkConfigurationDiagnosticResult: msRest.CompositeMapper = { name: "Composite", className: "NetworkConfigurationDiagnosticResult", modelProperties: { - trafficQuery: { - serializedName: "trafficQuery", + profile: { + serializedName: "profile", type: { name: "Composite", - className: "TrafficQuery" + className: "NetworkConfigurationDiagnosticProfile" } }, networkSecurityGroupResult: { @@ -13082,6 +13465,90 @@ export const ExpressRouteCrossConnectionPeeringList: msRest.CompositeMapper = { } }; +export const ExpressRoutePortsLocationListResult: msRest.CompositeMapper = { + serializedName: "ExpressRoutePortsLocationListResult", + type: { + name: "Composite", + className: "ExpressRoutePortsLocationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRoutePortsLocation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExpressRoutePortListResult: msRest.CompositeMapper = { + serializedName: "ExpressRoutePortListResult", + type: { + name: "Composite", + className: "ExpressRoutePortListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRoutePort" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExpressRouteLinkListResult: msRest.CompositeMapper = { + serializedName: "ExpressRouteLinkListResult", + type: { + name: "Composite", + className: "ExpressRouteLinkListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteLink" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const InterfaceEndpointListResult: msRest.CompositeMapper = { serializedName: "InterfaceEndpointListResult", type: { @@ -13256,6 +13723,35 @@ export const LoadBalancerLoadBalancingRuleListResult: msRest.CompositeMapper = { } }; +export const LoadBalancerOutboundRuleListResult: msRest.CompositeMapper = { + serializedName: "LoadBalancerOutboundRuleListResult", + type: { + name: "Composite", + className: "LoadBalancerOutboundRuleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundRule" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const NetworkInterfaceListResult: msRest.CompositeMapper = { serializedName: "NetworkInterfaceListResult", type: { diff --git a/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts index 5baa0698ba4e..344027e30b02 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts index d849bacf142c..ca7bd7b74463 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts @@ -59,6 +59,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -70,6 +71,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -113,6 +115,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, ContainerNetworkInterfaceConfiguration, ContainerNetworkInterface, Container, diff --git a/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts index eb9577e6c6b9..6fda7e232095 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts index e66898bb453b..3804dccf33e3 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts @@ -61,6 +61,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -72,6 +73,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -115,6 +117,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts b/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts index 33f625532b80..b35b177d21e6 100644 --- a/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts @@ -59,6 +59,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -70,6 +71,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -113,6 +115,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts b/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts index 59b78a500579..235d3464816b 100644 --- a/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -108,6 +110,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts b/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts index 600b1d506526..e231e7a36d4d 100644 --- a/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts @@ -64,7 +64,7 @@ export { AvailableProvidersListState, AvailableProvidersListCity, NetworkConfigurationDiagnosticParameters, - TrafficQuery, + NetworkConfigurationDiagnosticProfile, NetworkConfigurationDiagnosticResponse, NetworkConfigurationDiagnosticResult, NetworkSecurityGroupResult, @@ -108,6 +108,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -119,6 +120,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -162,6 +164,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts index 93a42e99e38f..a2ef1b02ef70 100644 --- a/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts @@ -61,6 +61,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -72,6 +73,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -115,6 +117,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts index 0ea3cb8a4406..cefefe3f2694 100644 --- a/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts @@ -60,6 +60,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -71,6 +72,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -114,6 +116,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/parameters.ts b/packages/@azure/arm-network/lib/models/parameters.ts index 27c3aaec808d..f74182279047 100644 --- a/packages/@azure/arm-network/lib/models/parameters.ts +++ b/packages/@azure/arm-network/lib/models/parameters.ts @@ -196,6 +196,16 @@ export const expressRouteGatewayName: msRest.OperationURLParameter = { } } }; +export const expressRoutePortName: msRest.OperationURLParameter = { + parameterPath: "expressRoutePortName", + mapper: { + required: true, + serializedName: "expressRoutePortName", + type: { + name: "String" + } + } +}; export const frontendIPConfigurationName: msRest.OperationURLParameter = { parameterPath: "frontendIPConfigurationName", mapper: { @@ -249,11 +259,9 @@ export const interfaceEndpointName: msRest.OperationURLParameter = { } }; export const ipAddress: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "ipAddress" - ], + parameterPath: "ipAddress", mapper: { + required: true, serializedName: "ipAddress", type: { name: "String" @@ -270,6 +278,16 @@ export const ipConfigurationName: msRest.OperationURLParameter = { } } }; +export const linkName: msRest.OperationURLParameter = { + parameterPath: "linkName", + mapper: { + required: true, + serializedName: "linkName", + type: { + name: "String" + } + } +}; export const loadBalancerName: msRest.OperationURLParameter = { parameterPath: "loadBalancerName", mapper: { @@ -326,6 +344,16 @@ export const location1: msRest.OperationURLParameter = { } } }; +export const locationName: msRest.OperationURLParameter = { + parameterPath: "locationName", + mapper: { + required: true, + serializedName: "locationName", + type: { + name: "String" + } + } +}; export const networkInterfaceName: msRest.OperationURLParameter = { parameterPath: "networkInterfaceName", mapper: { @@ -377,6 +405,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const outboundRuleName: msRest.OperationURLParameter = { + parameterPath: "outboundRuleName", + mapper: { + required: true, + serializedName: "outboundRuleName", + type: { + name: "String" + } + } +}; export const p2SVpnServerConfigurationName: msRest.OperationURLParameter = { parameterPath: "p2SVpnServerConfigurationName", mapper: { @@ -599,16 +637,6 @@ export const virtualHubName: msRest.OperationURLParameter = { } } }; -export const virtualmachineIndex: msRest.OperationURLParameter = { - parameterPath: "virtualmachineIndex", - mapper: { - required: true, - serializedName: "virtualmachineIndex", - type: { - name: "String" - } - } -}; export const virtualMachineScaleSetName: msRest.OperationURLParameter = { parameterPath: "virtualMachineScaleSetName", mapper: { @@ -659,31 +687,41 @@ export const virtualNetworkPeeringName: msRest.OperationURLParameter = { } } }; -export const virtualWanName: msRest.OperationURLParameter = { - parameterPath: "virtualWanName", +export const virtualWANName0: msRest.OperationURLParameter = { + parameterPath: "virtualWANName", mapper: { required: true, - serializedName: "virtualWanName", + serializedName: "virtualWANName", type: { name: "String" } } }; -export const virtualWANName0: msRest.OperationURLParameter = { +export const virtualWANName1: msRest.OperationURLParameter = { parameterPath: "virtualWANName", mapper: { required: true, - serializedName: "virtualWANName", + serializedName: "VirtualWANName", type: { name: "String" } } }; -export const virtualWANName1: msRest.OperationURLParameter = { - parameterPath: "virtualWANName", +export const virtualWanName: msRest.OperationURLParameter = { + parameterPath: "virtualWanName", mapper: { required: true, - serializedName: "VirtualWANName", + serializedName: "virtualWanName", + type: { + name: "String" + } + } +}; +export const virtualmachineIndex: msRest.OperationURLParameter = { + parameterPath: "virtualmachineIndex", + mapper: { + required: true, + serializedName: "virtualmachineIndex", type: { name: "String" } diff --git a/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts b/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts index ae0b843b9e9d..216322ad2dfb 100644 --- a/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts +++ b/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -108,6 +110,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts b/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts index f3415ab9761f..e24ea81e48a2 100644 --- a/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts +++ b/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts @@ -57,6 +57,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -68,6 +69,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -111,6 +113,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts b/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts index 0332bdd075f0..a011ff65a87f 100644 --- a/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts @@ -55,6 +55,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,6 +67,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -108,6 +110,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts b/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts index c27355f4bd4f..af6c903ea7ba 100644 --- a/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts @@ -62,6 +62,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -73,6 +74,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -108,6 +110,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/routeTablesMappers.ts b/packages/@azure/arm-network/lib/models/routeTablesMappers.ts index c4996c44f818..37c23bfc68c9 100644 --- a/packages/@azure/arm-network/lib/models/routeTablesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeTablesMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -108,6 +110,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/routesMappers.ts b/packages/@azure/arm-network/lib/models/routesMappers.ts index ad9e8640aee9..d0df9cb83a13 100644 --- a/packages/@azure/arm-network/lib/models/routesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routesMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/securityRulesMappers.ts b/packages/@azure/arm-network/lib/models/securityRulesMappers.ts index 833cf45221ff..3562a31faf7b 100644 --- a/packages/@azure/arm-network/lib/models/securityRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/securityRulesMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts b/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts index 2577866a4e02..7a27cf228057 100644 --- a/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts +++ b/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -108,6 +110,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts b/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts index e7c207a63e57..c5a5ef77399a 100644 --- a/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/subnetsMappers.ts b/packages/@azure/arm-network/lib/models/subnetsMappers.ts index 5998a68b3995..6bc7344da403 100644 --- a/packages/@azure/arm-network/lib/models/subnetsMappers.ts +++ b/packages/@azure/arm-network/lib/models/subnetsMappers.ts @@ -53,6 +53,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -64,6 +65,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -107,6 +109,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts b/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts index a60d80935e1b..98159313f293 100644 --- a/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts @@ -59,6 +59,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -70,6 +71,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -113,6 +115,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts index 36c76cc10fe4..4261fd73b1c3 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts @@ -68,6 +68,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -79,6 +80,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -122,6 +124,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts index c161cdaf6f51..898893037d45 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts @@ -74,6 +74,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -85,6 +86,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -128,6 +130,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts index b73870b9d6d0..5290d870c507 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts @@ -55,6 +55,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -66,6 +67,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -109,6 +111,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts index 4ddc6e51ca97..c44120a674f3 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts @@ -54,6 +54,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -65,6 +66,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -108,6 +110,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts index 70b32752b2c4..9b017c355191 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts @@ -62,6 +62,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -73,6 +74,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -116,6 +118,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/virtualWansMappers.ts b/packages/@azure/arm-network/lib/models/virtualWansMappers.ts index 38fed399ec85..1a2bad1525d9 100644 --- a/packages/@azure/arm-network/lib/models/virtualWansMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualWansMappers.ts @@ -62,6 +62,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -73,6 +74,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -116,6 +118,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts index 47efff0fb67c..f5fb6561282d 100644 --- a/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts @@ -56,6 +56,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -67,6 +68,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -110,6 +112,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts index 58ce57cef511..86322d21de5d 100644 --- a/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts @@ -59,6 +59,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -70,6 +71,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -113,6 +115,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts b/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts index 8893f5a1fa17..6c476893ef60 100644 --- a/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts @@ -59,6 +59,7 @@ export { ApplicationGatewayFrontendIPConfiguration, ApplicationGatewayFrontendPort, ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, ApplicationGatewayPathRule, ApplicationGatewayProbe, ApplicationGatewayProbeHealthResponseMatch, @@ -70,6 +71,7 @@ export { ApplicationGatewaySslPolicy, ApplicationGatewayWebApplicationFirewallConfiguration, ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, ApplicationGatewayAutoscaleConfiguration, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -113,6 +115,10 @@ export { ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, LoadBalancingRule, Probe, InboundNatPool, diff --git a/packages/@azure/arm-network/lib/networkManagementClient.ts b/packages/@azure/arm-network/lib/networkManagementClient.ts index 533477e48e95..c9ce79173fe7 100644 --- a/packages/@azure/arm-network/lib/networkManagementClient.ts +++ b/packages/@azure/arm-network/lib/networkManagementClient.ts @@ -35,12 +35,16 @@ class NetworkManagementClient extends NetworkManagementClientContext { expressRouteCrossConnectionPeerings: operations.ExpressRouteCrossConnectionPeerings; expressRouteGateways: operations.ExpressRouteGateways; expressRouteConnections: operations.ExpressRouteConnections; + expressRoutePortsLocations: operations.ExpressRoutePortsLocations; + expressRoutePorts: operations.ExpressRoutePorts; + expressRouteLinks: operations.ExpressRouteLinks; interfaceEndpoints: operations.InterfaceEndpoints; loadBalancers: operations.LoadBalancers; loadBalancerBackendAddressPools: operations.LoadBalancerBackendAddressPools; loadBalancerFrontendIPConfigurations: operations.LoadBalancerFrontendIPConfigurations; inboundNatRules: operations.InboundNatRules; loadBalancerLoadBalancingRules: operations.LoadBalancerLoadBalancingRules; + loadBalancerOutboundRules: operations.LoadBalancerOutboundRules; loadBalancerNetworkInterfaces: operations.LoadBalancerNetworkInterfaces; loadBalancerProbes: operations.LoadBalancerProbes; networkInterfaces: operations.NetworkInterfaces; @@ -108,12 +112,16 @@ class NetworkManagementClient extends NetworkManagementClientContext { this.expressRouteCrossConnectionPeerings = new operations.ExpressRouteCrossConnectionPeerings(this); this.expressRouteGateways = new operations.ExpressRouteGateways(this); this.expressRouteConnections = new operations.ExpressRouteConnections(this); + this.expressRoutePortsLocations = new operations.ExpressRoutePortsLocations(this); + this.expressRoutePorts = new operations.ExpressRoutePorts(this); + this.expressRouteLinks = new operations.ExpressRouteLinks(this); this.interfaceEndpoints = new operations.InterfaceEndpoints(this); this.loadBalancers = new operations.LoadBalancers(this); this.loadBalancerBackendAddressPools = new operations.LoadBalancerBackendAddressPools(this); this.loadBalancerFrontendIPConfigurations = new operations.LoadBalancerFrontendIPConfigurations(this); this.inboundNatRules = new operations.InboundNatRules(this); this.loadBalancerLoadBalancingRules = new operations.LoadBalancerLoadBalancingRules(this); + this.loadBalancerOutboundRules = new operations.LoadBalancerOutboundRules(this); this.loadBalancerNetworkInterfaces = new operations.LoadBalancerNetworkInterfaces(this); this.loadBalancerProbes = new operations.LoadBalancerProbes(this); this.networkInterfaces = new operations.NetworkInterfaces(this); diff --git a/packages/@azure/arm-network/lib/networkManagementClientContext.ts b/packages/@azure/arm-network/lib/networkManagementClientContext.ts index d47314229d76..699c941d9b30 100644 --- a/packages/@azure/arm-network/lib/networkManagementClientContext.ts +++ b/packages/@azure/arm-network/lib/networkManagementClientContext.ts @@ -16,15 +16,9 @@ const packageName = "@azure/arm-network"; const packageVersion = "1.0.0"; export class NetworkManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; - /** * Initializes a new instance of the NetworkManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. diff --git a/packages/@azure/arm-network/lib/operations/index.ts b/packages/@azure/arm-network/lib/operations/index.ts index 2fba54a3fc3e..aac883cb909b 100644 --- a/packages/@azure/arm-network/lib/operations/index.ts +++ b/packages/@azure/arm-network/lib/operations/index.ts @@ -25,12 +25,16 @@ export * from "./expressRouteCrossConnections"; export * from "./expressRouteCrossConnectionPeerings"; export * from "./expressRouteGateways"; export * from "./expressRouteConnections"; +export * from "./expressRoutePortsLocations"; +export * from "./expressRoutePorts"; +export * from "./expressRouteLinks"; export * from "./interfaceEndpoints"; export * from "./loadBalancers"; export * from "./loadBalancerBackendAddressPools"; export * from "./loadBalancerFrontendIPConfigurations"; export * from "./inboundNatRules"; export * from "./loadBalancerLoadBalancingRules"; +export * from "./loadBalancerOutboundRules"; export * from "./loadBalancerNetworkInterfaces"; export * from "./loadBalancerProbes"; export * from "./networkInterfaces"; diff --git a/packages/@azure/arm-network/lib/operations/virtualNetworks.ts b/packages/@azure/arm-network/lib/operations/virtualNetworks.ts index ce1743845be3..7950a2364313 100644 --- a/packages/@azure/arm-network/lib/operations/virtualNetworks.ts +++ b/packages/@azure/arm-network/lib/operations/virtualNetworks.ts @@ -153,28 +153,32 @@ export class VirtualNetworks { * Checks whether a private IP address is available for use. * @param resourceGroupName The name of the resource group. * @param virtualNetworkName The name of the virtual network. + * @param ipAddress The private IP address to be verified. * @param [options] The optional parameters * @returns Promise */ - checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, options?: Models.VirtualNetworksCheckIPAddressAvailabilityOptionalParams): Promise; + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param virtualNetworkName The name of the virtual network. + * @param ipAddress The private IP address to be verified. * @param callback The callback */ - checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, callback: msRest.ServiceCallback): void; + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param virtualNetworkName The name of the virtual network. + * @param ipAddress The private IP address to be verified. * @param options The optional parameters * @param callback The callback */ - checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, options: Models.VirtualNetworksCheckIPAddressAvailabilityOptionalParams, callback: msRest.ServiceCallback): void; - checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, options?: Models.VirtualNetworksCheckIPAddressAvailabilityOptionalParams, callback?: msRest.ServiceCallback): Promise { + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualNetworkName, + ipAddress, options }, checkIPAddressAvailabilityOperationSpec, diff --git a/packages/@azure/arm-network/package.json b/packages/@azure/arm-network/package.json index af51b0cf4f72..4e73774ec287 100644 --- a/packages/@azure/arm-network/package.json +++ b/packages/@azure/arm-network/package.json @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-network.js.map'\" -o ./dist/arm-network.min.js ./dist/arm-network.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-sql/README.md b/packages/@azure/arm-sql/README.md index fd114bf7f2b5..53d21b390613 100644 --- a/packages/@azure/arm-sql/README.md +++ b/packages/@azure/arm-sql/README.md @@ -1,83 +1,83 @@ -# Azure SqlManagementClient SDK for JavaScript -This package contains an isomorphic SDK for SqlManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-sql -``` - - -## How to use - -### nodejs - Authentication, client creation and get recoverableDatabases as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { SqlManagementClient, SqlManagementModels, SqlManagementMappers } from "@azure/arm-sql"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SqlManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const serverName = "testserverName"; - const databaseName = "testdatabaseName"; - client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and get recoverableDatabases as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-sql sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure SqlManagementClient SDK for JavaScript +This package contains an isomorphic SDK for SqlManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-sql +``` + + +## How to use + +### nodejs - Authentication, client creation and get recoverableDatabases as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { SqlManagementClient, SqlManagementModels, SqlManagementMappers } from "@azure/arm-sql"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new SqlManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const serverName = "testserverName"; + const databaseName = "testdatabaseName"; + client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and get recoverableDatabases as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-sql sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts index 77fbde5f43b3..d3613306eb3f 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts @@ -15,6 +15,7 @@ export { BaseResource, VulnerabilityAssessmentRecurringScansProperties, CloudError, + DatabaseVulnerabilityAssessmentListResult, RecoverableDatabase, RestorableDroppedDatabase, TrackedResource, diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index 540a9d64f83b..d97795b5192f 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -3143,7 +3143,7 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { predicateExpression?: string; /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are + * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -3155,13 +3155,13 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. + * the auditing storage account. If state is Enabled and storageEndpoint is + * specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. + * the audit logs in the storage account. */ retentionDays?: number; /** @@ -3249,6 +3249,27 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; + /** + * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' + * and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with + * 'SQLSecurityAuditEvents' diagnostic logs category on the database should + * be also created. + * Note that for server level audit you should use the 'master' database as + * . + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + */ + isAzureMonitorTargetEnabled?: boolean; } /** @@ -3266,7 +3287,7 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { predicateExpression?: string; /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are + * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -3278,13 +3299,13 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. + * the auditing storage account. If state is Enabled and storageEndpoint is + * specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. + * the audit logs in the storage account. */ retentionDays?: number; /** @@ -3372,6 +3393,27 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; + /** + * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' + * and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with + * 'SQLSecurityAuditEvents' diagnostic logs category on the database should + * be also created. + * Note that for server level audit you should use the 'master' database as + * . + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + */ + isAzureMonitorTargetEnabled?: boolean; } /** @@ -3384,7 +3426,7 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { export interface ServerBlobAuditingPolicy extends ProxyResource { /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are + * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -3396,13 +3438,13 @@ export interface ServerBlobAuditingPolicy extends ProxyResource { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. + * the auditing storage account. If state is Enabled and storageEndpoint is + * specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. + * the audit logs in the storage account. */ retentionDays?: number; /** @@ -3490,6 +3532,27 @@ export interface ServerBlobAuditingPolicy extends ProxyResource { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; + /** + * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' + * and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with + * 'SQLSecurityAuditEvents' diagnostic logs category on the database should + * be also created. + * Note that for server level audit you should use the 'master' database as + * . + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + */ + isAzureMonitorTargetEnabled?: boolean; } /** @@ -3508,7 +3571,7 @@ export interface DatabaseBlobAuditingPolicy extends ProxyResource { readonly kind?: string; /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are + * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -3520,13 +3583,13 @@ export interface DatabaseBlobAuditingPolicy extends ProxyResource { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. + * the auditing storage account. If state is Enabled and storageEndpoint is + * specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. + * the audit logs in the storage account. */ retentionDays?: number; /** @@ -3614,6 +3677,27 @@ export interface DatabaseBlobAuditingPolicy extends ProxyResource { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; + /** + * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' + * and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with + * 'SQLSecurityAuditEvents' diagnostic logs category on the database should + * be also created. + * Note that for server level audit you should use the 'master' database as + * . + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + */ + isAzureMonitorTargetEnabled?: boolean; } /** @@ -3678,11 +3762,12 @@ export interface VulnerabilityAssessmentRecurringScansProperties { */ export interface DatabaseVulnerabilityAssessment extends ProxyResource { /** - * @member {string} storageContainerPath A blob storage container path to + * @member {string} [storageContainerPath] A blob storage container path to * hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). + * https://myStorage.blob.core.windows.net/VaScans/). It is required if + * server level vulnerability assessment policy doesn't set */ - storageContainerPath: string; + storageContainerPath?: string; /** * @member {string} [storageContainerSasKey] A shared access signature (SAS * Key) that has write access to the blob container specified in @@ -3692,8 +3777,9 @@ export interface DatabaseVulnerabilityAssessment extends ProxyResource { storageContainerSasKey?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the vulnerability assessment storage account. If 'StorageContainerSasKey' - * isn't specified, storageAccountAccessKey is required. + * the storage account for vulnerability assessment scan results. If + * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. */ storageAccountAccessKey?: string; /** @@ -7222,6 +7308,22 @@ export interface VirtualNetworkRuleListResult extends Array readonly nextLink?: string; } +/** + * @interface + * An interface representing the DatabaseVulnerabilityAssessmentListResult. + * A list of the database's vulnerability assessments. + * + * @extends Array + */ +export interface DatabaseVulnerabilityAssessmentListResult extends Array { + /** + * @member {string} [nextLink] Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + /** * @interface * An interface representing the JobAgentListResult. @@ -12074,6 +12176,44 @@ export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVul }; }; +/** + * Contains response data for the listByDatabase operation. + */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { + /** + * 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: DatabaseVulnerabilityAssessmentListResult; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { + /** + * 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: DatabaseVulnerabilityAssessmentListResult; + }; +}; + /** * Contains response data for the listByServer operation. */ @@ -13879,6 +14019,44 @@ export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = Data }; }; +/** + * Contains response data for the listByDatabase operation. + */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { + /** + * 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: DatabaseVulnerabilityAssessmentListResult; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { + /** + * 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: DatabaseVulnerabilityAssessmentListResult; + }; +}; + /** * Contains response data for the get operation. */ diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts index 77fbde5f43b3..d3613306eb3f 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts @@ -15,6 +15,7 @@ export { BaseResource, VulnerabilityAssessmentRecurringScansProperties, CloudError, + DatabaseVulnerabilityAssessmentListResult, RecoverableDatabase, RestorableDroppedDatabase, TrackedResource, diff --git a/packages/@azure/arm-sql/lib/models/mappers.ts b/packages/@azure/arm-sql/lib/models/mappers.ts index 1209800c98d2..fe6bdb437e26 100644 --- a/packages/@azure/arm-sql/lib/models/mappers.ts +++ b/packages/@azure/arm-sql/lib/models/mappers.ts @@ -3838,6 +3838,12 @@ export const ExtendedDatabaseBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } } } } @@ -3907,6 +3913,12 @@ export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } } } } @@ -3970,6 +3982,12 @@ export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } } } } @@ -4040,6 +4058,12 @@ export const DatabaseBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } } } } @@ -4133,7 +4157,6 @@ export const DatabaseVulnerabilityAssessment: msRest.CompositeMapper = { modelProperties: { ...ProxyResource.type.modelProperties, storageContainerPath: { - required: true, serializedName: "properties.storageContainerPath", type: { name: "String" @@ -8341,6 +8364,36 @@ export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { } }; +export const DatabaseVulnerabilityAssessmentListResult: msRest.CompositeMapper = { + serializedName: "DatabaseVulnerabilityAssessmentListResult", + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessment" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const JobAgentListResult: msRest.CompositeMapper = { serializedName: "JobAgentListResult", type: { diff --git a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts index 40519a05d735..4cc14b598567 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts @@ -146,6 +146,76 @@ export class DatabaseVulnerabilityAssessments { deleteMethodOperationSpec, callback); } + + /** + * Lists the vulnerability assessment policies associated with a database. + * @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 serverName The name of the server. + * @param databaseName The name of the database for which the vulnerability assessment policies are + * defined. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: 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 serverName The name of the server. + * @param databaseName The name of the database for which the vulnerability assessment policies are + * defined. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: 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 serverName The name of the server. + * @param databaseName The name of the database for which the vulnerability assessment policies are + * defined. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Lists the vulnerability assessment policies associated with a database. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(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 + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -238,3 +308,50 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts index e3f16e6df7c5..e750987e8fc4 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts @@ -146,6 +146,73 @@ export class ManagedDatabaseVulnerabilityAssessments { deleteMethodOperationSpec, callback); } + + /** + * Lists the vulnerability assessments of a managed database. + * @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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database for which the vulnerability assessment is defined. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database for which the vulnerability assessment is defined. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database for which the vulnerability assessment is defined. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Lists the vulnerability assessments of a managed database. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(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 + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -238,3 +305,50 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts index 3b7dd7021f73..90e0186f833f 100644 --- a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts +++ b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts @@ -16,15 +16,9 @@ const packageName = "@azure/arm-sql"; const packageVersion = "1.0.0-preview"; export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; - /** * Initializes a new instance of the SqlManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. diff --git a/packages/@azure/arm-storage/README.md b/packages/@azure/arm-storage/README.md index 3ec0faccedfe..7e4ffefa24c4 100644 --- a/packages/@azure/arm-storage/README.md +++ b/packages/@azure/arm-storage/README.md @@ -62,7 +62,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log('An error occurred:'); + console.log("An error occurred:"); console.error(err); }); }); diff --git a/packages/@azure/arm-storage/lib/models/blobContainersMappers.ts b/packages/@azure/arm-storage/lib/models/blobContainersMappers.ts index ecf091ad7c17..02ac7441ffca 100644 --- a/packages/@azure/arm-storage/lib/models/blobContainersMappers.ts +++ b/packages/@azure/arm-storage/lib/models/blobContainersMappers.ts @@ -29,6 +29,10 @@ export { BlobContainersExtendImmutabilityPolicyHeaders, ProxyResource, TrackedResource, + BlobServiceProperties, + CorsRules, + CorsRule, + DeleteRetentionPolicy, StorageAccountManagementPolicies, StorageAccount, Sku, diff --git a/packages/@azure/arm-storage/lib/models/index.ts b/packages/@azure/arm-storage/lib/models/index.ts index 69e0c36a2773..e1a99b5055bf 100644 --- a/packages/@azure/arm-storage/lib/models/index.ts +++ b/packages/@azure/arm-storage/lib/models/index.ts @@ -1626,6 +1626,106 @@ export interface ListContainerItems { value?: ListContainerItem[]; } +/** + * @interface + * An interface representing CorsRule. + * Specifies a CORS rule for the Blob service. + * + */ +export interface CorsRule { + /** + * @member {string[]} allowedOrigins Required if CorsRule element is present. + * A list of origin domains that will be allowed via CORS, or "*" to allow + * all domains + */ + allowedOrigins: string[]; + /** + * @member {string[]} allowedMethods Required if CorsRule element is present. + * A list of HTTP methods that are allowed to be executed by the origin. + */ + allowedMethods: string[]; + /** + * @member {number} maxAgeInSeconds Required if CorsRule element is present. + * The number of seconds that the client/browser should cache a preflight + * response. + */ + maxAgeInSeconds: number; + /** + * @member {string[]} exposedHeaders Required if CorsRule element is present. + * A list of response headers to expose to CORS clients. + */ + exposedHeaders: string[]; + /** + * @member {string[]} allowedHeaders Required if CorsRule element is present. + * A list of headers allowed to be part of the cross-origin request. + */ + allowedHeaders: string[]; +} + +/** + * @interface + * An interface representing CorsRules. + * Sets the CORS rules. You can include up to five CorsRule elements in the + * request. + * + */ +export interface CorsRules { + /** + * @member {CorsRule[]} [corsRules] The List of CORS rules. You can include + * up to five CorsRule elements in the request. + */ + corsRules?: CorsRule[]; +} + +/** + * @interface + * An interface representing DeleteRetentionPolicy. + * The blob service properties for soft delete. + * + */ +export interface DeleteRetentionPolicy { + /** + * @member {boolean} [enabled] Indicates whether DeleteRetentionPolicy is + * enabled for the Blob service. + */ + enabled?: boolean; + /** + * @member {number} [days] Indicates the number of days that the deleted blob + * should be retained. The minimum specified value can be 1 and the maximum + * value can be 365. + */ + days?: number; +} + +/** + * @interface + * An interface representing BlobServiceProperties. + * The properties of a storage account’s Blob service. + * + * @extends Resource + */ +export interface BlobServiceProperties extends Resource { + /** + * @member {CorsRules} [cors] Specifies CORS rules for the Blob service. You + * can include up to five CorsRule elements in the request. If no CorsRule + * elements are included in the request body, all CORS rules will be deleted, + * and CORS will be disabled for the Blob service. + */ + cors?: CorsRules; + /** + * @member {string} [defaultServiceVersion] DefaultServiceVersion indicates + * the default version to use for requests to the Blob service if an incoming + * request’s version is not specified. Possible values include version + * 2008-10-27 and all more recent versions. + */ + defaultServiceVersion?: string; + /** + * @member {DeleteRetentionPolicy} [deleteRetentionPolicy] The blob service + * properties for soft delete. + */ + deleteRetentionPolicy?: DeleteRetentionPolicy; +} + /** * @interface * An interface representing StorageAccountManagementPolicies. @@ -2536,6 +2636,44 @@ export type UsagesListByLocationResponse = UsageListResult & { }; }; +/** + * Contains response data for the setServiceProperties operation. + */ +export type BlobServicesSetServicePropertiesResponse = BlobServiceProperties & { + /** + * 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: BlobServiceProperties; + }; +}; + +/** + * Contains response data for the getServiceProperties operation. + */ +export type BlobServicesGetServicePropertiesResponse = BlobServiceProperties & { + /** + * 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: BlobServiceProperties; + }; +}; + /** * Contains response data for the list operation. */ diff --git a/packages/@azure/arm-storage/lib/models/managementPoliciesMappers.ts b/packages/@azure/arm-storage/lib/models/managementPoliciesMappers.ts index 45681a471395..87035d9f663a 100644 --- a/packages/@azure/arm-storage/lib/models/managementPoliciesMappers.ts +++ b/packages/@azure/arm-storage/lib/models/managementPoliciesMappers.ts @@ -24,6 +24,10 @@ export { TagProperty, ImmutabilityPolicy, ListContainerItem, + BlobServiceProperties, + CorsRules, + CorsRule, + DeleteRetentionPolicy, StorageAccount, Sku, SKUCapability, diff --git a/packages/@azure/arm-storage/lib/models/mappers.ts b/packages/@azure/arm-storage/lib/models/mappers.ts index d17794b6f334..08bb747f0fb1 100644 --- a/packages/@azure/arm-storage/lib/models/mappers.ts +++ b/packages/@azure/arm-storage/lib/models/mappers.ts @@ -2020,6 +2020,150 @@ export const ListContainerItems: msRest.CompositeMapper = { } }; +export const CorsRule: msRest.CompositeMapper = { + serializedName: "CorsRule", + type: { + name: "Composite", + className: "CorsRule", + modelProperties: { + allowedOrigins: { + required: true, + serializedName: "allowedOrigins", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + allowedMethods: { + required: true, + serializedName: "allowedMethods", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + maxAgeInSeconds: { + required: true, + serializedName: "maxAgeInSeconds", + type: { + name: "Number" + } + }, + exposedHeaders: { + required: true, + serializedName: "exposedHeaders", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + allowedHeaders: { + required: true, + serializedName: "allowedHeaders", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const CorsRules: msRest.CompositeMapper = { + serializedName: "CorsRules", + type: { + name: "Composite", + className: "CorsRules", + modelProperties: { + corsRules: { + serializedName: "corsRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CorsRule" + } + } + } + } + } + } +}; + +export const DeleteRetentionPolicy: msRest.CompositeMapper = { + serializedName: "DeleteRetentionPolicy", + type: { + name: "Composite", + className: "DeleteRetentionPolicy", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + days: { + serializedName: "days", + constraints: { + InclusiveMaximum: 365, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const BlobServiceProperties: msRest.CompositeMapper = { + serializedName: "BlobServiceProperties", + type: { + name: "Composite", + className: "BlobServiceProperties", + modelProperties: { + ...Resource.type.modelProperties, + cors: { + serializedName: "properties.cors", + type: { + name: "Composite", + className: "CorsRules" + } + }, + defaultServiceVersion: { + serializedName: "properties.defaultServiceVersion", + type: { + name: "String" + } + }, + deleteRetentionPolicy: { + serializedName: "properties.deleteRetentionPolicy", + type: { + name: "Composite", + className: "DeleteRetentionPolicy" + } + } + } + } +}; + export const StorageAccountManagementPolicies: msRest.CompositeMapper = { serializedName: "StorageAccountManagementPolicies", type: { diff --git a/packages/@azure/arm-storage/lib/models/parameters.ts b/packages/@azure/arm-storage/lib/models/parameters.ts index 38399d0c043a..dfd46ced604f 100644 --- a/packages/@azure/arm-storage/lib/models/parameters.ts +++ b/packages/@azure/arm-storage/lib/models/parameters.ts @@ -64,6 +64,18 @@ export const apiVersion1: msRest.OperationQueryParameter = { } } }; +export const blobServicesName: msRest.OperationURLParameter = { + parameterPath: "blobServicesName", + mapper: { + required: true, + isConstant: true, + serializedName: "BlobServicesName", + defaultValue: 'default', + type: { + name: "String" + } + } +}; export const containerName: msRest.OperationURLParameter = { parameterPath: "containerName", mapper: { diff --git a/packages/@azure/arm-storage/lib/models/storageAccountsMappers.ts b/packages/@azure/arm-storage/lib/models/storageAccountsMappers.ts index 0bbda624db1a..4b1d9870be49 100644 --- a/packages/@azure/arm-storage/lib/models/storageAccountsMappers.ts +++ b/packages/@azure/arm-storage/lib/models/storageAccountsMappers.ts @@ -48,6 +48,10 @@ export { TagProperty, ImmutabilityPolicy, ListContainerItem, + BlobServiceProperties, + CorsRules, + CorsRule, + DeleteRetentionPolicy, StorageAccountManagementPolicies } from "../models/mappers"; diff --git a/packages/@azure/arm-storage/lib/operations/index.ts b/packages/@azure/arm-storage/lib/operations/index.ts index 63564cfbb271..f2550d352ee2 100644 --- a/packages/@azure/arm-storage/lib/operations/index.ts +++ b/packages/@azure/arm-storage/lib/operations/index.ts @@ -12,5 +12,6 @@ export * from "./operations"; export * from "./skus"; export * from "./storageAccounts"; export * from "./usages"; +export * from "./blobServices"; export * from "./blobContainers"; export * from "./managementPolicies"; diff --git a/packages/@azure/arm-storage/lib/storageManagementClient.ts b/packages/@azure/arm-storage/lib/storageManagementClient.ts index 3587b701d226..5b16c605cc07 100644 --- a/packages/@azure/arm-storage/lib/storageManagementClient.ts +++ b/packages/@azure/arm-storage/lib/storageManagementClient.ts @@ -21,6 +21,7 @@ class StorageManagementClient extends StorageManagementClientContext { skus: operations.Skus; storageAccounts: operations.StorageAccounts; usages: operations.Usages; + blobServices: operations.BlobServices; blobContainers: operations.BlobContainers; managementPolicies: operations.ManagementPolicies; @@ -36,6 +37,7 @@ class StorageManagementClient extends StorageManagementClientContext { this.skus = new operations.Skus(this); this.storageAccounts = new operations.StorageAccounts(this); this.usages = new operations.Usages(this); + this.blobServices = new operations.BlobServices(this); this.blobContainers = new operations.BlobContainers(this); this.managementPolicies = new operations.ManagementPolicies(this); } diff --git a/packages/@azure/arm-storage/lib/storageManagementClientContext.ts b/packages/@azure/arm-storage/lib/storageManagementClientContext.ts index e4a8897e0fbd..1e77a264d69d 100644 --- a/packages/@azure/arm-storage/lib/storageManagementClientContext.ts +++ b/packages/@azure/arm-storage/lib/storageManagementClientContext.ts @@ -16,15 +16,9 @@ const packageName = "@azure/arm-storage"; const packageVersion = "1.0.0-preview"; export class StorageManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; - /** * Initializes a new instance of the StorageManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. diff --git a/packages/@azure/arm-storage/package.json b/packages/@azure/arm-storage/package.json index 46fd1513ef84..164e5950417a 100644 --- a/packages/@azure/arm-storage/package.json +++ b/packages/@azure/arm-storage/package.json @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-storage.js.map'\" -o ./dist/arm-storage.min.js ./dist/arm-storage.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/graph/README.md b/packages/@azure/graph/README.md index 3fceeaa2479d..960e011a3112 100644 --- a/packages/@azure/graph/README.md +++ b/packages/@azure/graph/README.md @@ -62,7 +62,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log('An error occurred:'); + console.log("An error occurred:"); console.error(err); }); }); diff --git a/packages/@azure/graph/lib/graphRbacManagementClientContext.ts b/packages/@azure/graph/lib/graphRbacManagementClientContext.ts index 2e08d61f79c7..1426fb2421ed 100644 --- a/packages/@azure/graph/lib/graphRbacManagementClientContext.ts +++ b/packages/@azure/graph/lib/graphRbacManagementClientContext.ts @@ -16,17 +16,10 @@ const packageName = "@azure/graph"; const packageVersion = "1.0.0"; export class GraphRbacManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - - apiVersion: string; - + apiVersion?: string; tenantID: string; - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; - /** * Initializes a new instance of the GraphRbacManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. diff --git a/packages/@azure/graph/lib/models/deletedApplicationsMappers.ts b/packages/@azure/graph/lib/models/deletedApplicationsMappers.ts index 9c1e66573d1a..8f257066e9f6 100644 --- a/packages/@azure/graph/lib/models/deletedApplicationsMappers.ts +++ b/packages/@azure/graph/lib/models/deletedApplicationsMappers.ts @@ -13,6 +13,8 @@ export { Application, DirectoryObject, AppRole, + RequiredResourceAccess, + ResourceAccess, GraphError, ApplicationListResult, ADGroup, diff --git a/packages/@azure/graph/lib/models/groupsMappers.ts b/packages/@azure/graph/lib/models/groupsMappers.ts index 41148eb95f9a..3d00ed56ed4c 100644 --- a/packages/@azure/graph/lib/models/groupsMappers.ts +++ b/packages/@azure/graph/lib/models/groupsMappers.ts @@ -24,6 +24,8 @@ export { AddOwnerParameters, Application, AppRole, + RequiredResourceAccess, + ResourceAccess, ServicePrincipal, User, SignInName diff --git a/packages/@azure/graph/lib/models/index.ts b/packages/@azure/graph/lib/models/index.ts index 4dac26b305a9..0a272387705a 100644 --- a/packages/@azure/graph/lib/models/index.ts +++ b/packages/@azure/graph/lib/models/index.ts @@ -436,6 +436,14 @@ export interface Application { * grant flow for OAuth2 */ oauth2AllowImplicitFlow?: boolean; + /** + * @member {RequiredResourceAccess[]} [requiredResourceAccess] Specifies + * resources that this application requires access to and the set of OAuth + * permission scopes and application roles that it needs under each of those + * resources. This pre-configuration of required resource access drives the + * consent experience. + */ + requiredResourceAccess?: RequiredResourceAccess[]; } /** diff --git a/packages/@azure/graph/lib/models/mappers.ts b/packages/@azure/graph/lib/models/mappers.ts index 1e045553ec1f..d3c85f8f8f40 100644 --- a/packages/@azure/graph/lib/models/mappers.ts +++ b/packages/@azure/graph/lib/models/mappers.ts @@ -625,6 +625,23 @@ export const Application: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + requiredResourceAccess: { + serializedName: "requiredResourceAccess", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RequiredResourceAccess", + additionalProperties: { + type: { + name: "Object" + } + } + } + } + } } }, additionalProperties: DirectoryObject.type.additionalProperties diff --git a/packages/@azure/graph/lib/models/objectsMappers.ts b/packages/@azure/graph/lib/models/objectsMappers.ts index 31053b267d56..48ec347b8ac6 100644 --- a/packages/@azure/graph/lib/models/objectsMappers.ts +++ b/packages/@azure/graph/lib/models/objectsMappers.ts @@ -16,6 +16,8 @@ export { CloudError, Application, AppRole, + RequiredResourceAccess, + ResourceAccess, ADGroup, ServicePrincipal, User, diff --git a/packages/@azure/graph/lib/models/servicePrincipalsMappers.ts b/packages/@azure/graph/lib/models/servicePrincipalsMappers.ts index 25e5110eed1b..8d81554f24cd 100644 --- a/packages/@azure/graph/lib/models/servicePrincipalsMappers.ts +++ b/packages/@azure/graph/lib/models/servicePrincipalsMappers.ts @@ -25,6 +25,8 @@ export { PasswordCredentialListResult, PasswordCredentialsUpdateParameters, Application, + RequiredResourceAccess, + ResourceAccess, ADGroup, User, SignInName diff --git a/packages/@azure/graph/lib/models/signedInUserMappers.ts b/packages/@azure/graph/lib/models/signedInUserMappers.ts index 46091acfb367..8b06f0505013 100644 --- a/packages/@azure/graph/lib/models/signedInUserMappers.ts +++ b/packages/@azure/graph/lib/models/signedInUserMappers.ts @@ -17,6 +17,8 @@ export { DirectoryObjectListResult, Application, AppRole, + RequiredResourceAccess, + ResourceAccess, ADGroup, ServicePrincipal } from "../models/mappers"; diff --git a/packages/@azure/graph/lib/models/usersMappers.ts b/packages/@azure/graph/lib/models/usersMappers.ts index e5dc4c474429..b5a83a95b4c9 100644 --- a/packages/@azure/graph/lib/models/usersMappers.ts +++ b/packages/@azure/graph/lib/models/usersMappers.ts @@ -23,6 +23,8 @@ export { UserGetMemberGroupsResult, Application, AppRole, + RequiredResourceAccess, + ResourceAccess, ADGroup, ServicePrincipal } from "../models/mappers"; diff --git a/packages/@azure/graph/package.json b/packages/@azure/graph/package.json index 87a6895793ff..301cc12f396a 100644 --- a/packages/@azure/graph/package.json +++ b/packages/@azure/graph/package.json @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/graph.js.map'\" -o ./dist/graph.min.js ./dist/graph.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/loganalytics/.npmignore b/packages/@azure/loganalytics/.npmignore index 3b46bc6202d8..a07a455ac10c 100644 --- a/packages/@azure/loganalytics/.npmignore +++ b/packages/@azure/loganalytics/.npmignore @@ -1,35 +1,35 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/loganalytics/LICENSE.txt b/packages/@azure/loganalytics/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/loganalytics/LICENSE.txt +++ b/packages/@azure/loganalytics/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/tsconfig.json b/tsconfig.json index b67725f7e3c4..fe9da71502c1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,59 @@ { - "compilerOptions": { - "lib": [ "es2015" ] - } -} + "compilerOptions": { + /* Basic Options */ + "target": "ES2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + // "lib": [], /* Specify library files to be included in the compilation. */ + // "allowJs": true, /* Allow javascript files to be compiled. */ + // "checkJs": true, /* Report errors in .js files. */ + // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ + // "declaration": true, /* Generates corresponding '.d.ts' file. */ + // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + // "sourceMap": true, /* Generates corresponding '.map' file. */ + // "outFile": "./", /* Concatenate and emit output to single file. */ + // "outDir": "./", /* Redirect output structure to the directory. */ + // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ + // "composite": true, /* Enable project compilation */ + // "removeComments": true, /* Do not emit comments to output. */ + // "noEmit": true, /* Do not emit outputs. */ + "importHelpers": true, /* Import emit helpers from 'tslib'. */ + // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ + // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ + + /* Strict Type-Checking Options */ + "strict": true, /* Enable all strict type-checking options. */ + "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ + "strictNullChecks": true, /* Enable strict null checks. */ + "strictFunctionTypes": true, /* Enable strict checking of function types. */ + "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ + "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ + "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ + + /* Additional Checks */ + "noUnusedLocals": true, /* Report errors on unused locals. */ + "noUnusedParameters": true, /* Report errors on unused parameters. */ + "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ + "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ + + /* Module Resolution Options */ + // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ + // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ + // "typeRoots": [], /* List of folders to include type definitions from. */ + // "types": [], /* Type declaration files to be included in compilation. */ + // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ + "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ + + /* Source Map Options */ + // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ + // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ + + /* Experimental Options */ + // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ + // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + } +} \ No newline at end of file From 2ca35ed2781be7980bc8c9010e84fe10804a9a24 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 2 Nov 2018 18:49:41 +0000 Subject: [PATCH 11/21] Regenerate @azure/arm-datamigration --- .../lib/dataMigrationServiceClientContext.ts | 6 +- .../lib/models/filesMappers.ts | 5 + .../arm-datamigration/lib/models/index.ts | 128 +++++++++++++++++- .../arm-datamigration/lib/models/mappers.ts | 99 +++++++++++++- .../lib/models/projectsMappers.ts | 5 + .../lib/models/servicesMappers.ts | 5 + .../lib/models/tasksMappers.ts | 5 + .../@azure/arm-datamigration/package.json | 4 +- 8 files changed, 252 insertions(+), 5 deletions(-) diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index efe391fbe54f..594169f396a4 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -36,6 +36,11 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.acceptLanguage = 'en-US'; @@ -45,7 +50,6 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC this.credentials = credentials; this.subscriptionId = subscriptionId; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts index 5a4756b2d0a3..46ceb3913e71 100644 --- a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts @@ -44,6 +44,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index df4cb4215707..308b8d96c728 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -206,7 +206,7 @@ export interface MigrateSyncCompleteCommandInput { /** * Contains the possible cases for CommandProperties. */ -export type CommandPropertiesUnion = CommandProperties | MigrateSyncCompleteCommandProperties; +export type CommandPropertiesUnion = CommandProperties | MigrateSyncCompleteCommandProperties | MongoDbCancelCommand | MongoDbFinishCommand | MongoDbRestartCommand; /** * @interface @@ -6521,6 +6521,132 @@ export interface MigrateSchemaSqlTaskOutputError { readonly error?: ReportableException; } +/** + * @interface + * An interface representing MongoDbCommandInput. + * Describes the input to the 'cancel' and 'restart' MongoDB migration commands + * + */ +export interface MongoDbCommandInput { + /** + * @member {string} [objectName] The qualified name of a database or + * collection to act upon, or null to act upon the entire migration + */ + objectName?: string; +} + +/** + * @interface + * An interface representing MongoDbCancelCommand. + * Properties for the command that cancels a migration in whole or in part + * + */ +export interface MongoDbCancelCommand { + /** + * @member {string} commandType Polymorphic Discriminator + */ + commandType: "cancel"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {CommandState} [state] The state of the command. This is ignored + * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: CommandState; + /** + * @member {MongoDbCommandInput} [input] Command input + */ + input?: MongoDbCommandInput; +} + +/** + * @interface + * An interface representing MongoDbFinishCommandInput. + * Describes the input to the 'finish' MongoDB migration command + * + * @extends MongoDbCommandInput + */ +export interface MongoDbFinishCommandInput extends MongoDbCommandInput { + /** + * @member {boolean} immediate If true, replication for the affected objects + * will be stopped immediately. If false, the migrator will finish replaying + * queued events before finishing the replication. + */ + immediate: boolean; +} + +/** + * @interface + * An interface representing MongoDbFinishCommand. + * Properties for the command that finishes a migration in whole or in part + * + */ +export interface MongoDbFinishCommand { + /** + * @member {string} commandType Polymorphic Discriminator + */ + commandType: "finish"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {CommandState} [state] The state of the command. This is ignored + * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: CommandState; + /** + * @member {MongoDbFinishCommandInput} [input] Command input + */ + input?: MongoDbFinishCommandInput; +} + +/** + * @interface + * An interface representing MongoDbRestartCommand. + * Properties for the command that restarts a migration in whole or in part + * + */ +export interface MongoDbRestartCommand { + /** + * @member {string} commandType Polymorphic Discriminator + */ + commandType: "restart"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {CommandState} [state] The state of the command. This is ignored + * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: CommandState; + /** + * @member {MongoDbCommandInput} [input] Command input + */ + input?: MongoDbCommandInput; +} + /** * @interface * An interface representing Database. diff --git a/packages/@azure/arm-datamigration/lib/models/mappers.ts b/packages/@azure/arm-datamigration/lib/models/mappers.ts index 93a282240460..4e0f01e7cc4d 100644 --- a/packages/@azure/arm-datamigration/lib/models/mappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/mappers.ts @@ -7539,6 +7539,100 @@ export const MigrateSchemaSqlTaskOutputError: msRest.CompositeMapper = { } }; +export const MongoDbCommandInput: msRest.CompositeMapper = { + serializedName: "MongoDbCommandInput", + type: { + name: "Composite", + className: "MongoDbCommandInput", + modelProperties: { + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + } + } + } +}; + +export const MongoDbCancelCommand: msRest.CompositeMapper = { + serializedName: "cancel", + type: { + name: "Composite", + polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, + uberParent: "CommandProperties", + className: "MongoDbCancelCommand", + modelProperties: { + ...CommandProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MongoDbCommandInput" + } + } + } + } +}; + +export const MongoDbFinishCommandInput: msRest.CompositeMapper = { + serializedName: "MongoDbFinishCommandInput", + type: { + name: "Composite", + className: "MongoDbFinishCommandInput", + modelProperties: { + ...MongoDbCommandInput.type.modelProperties, + immediate: { + required: true, + serializedName: "immediate", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MongoDbFinishCommand: msRest.CompositeMapper = { + serializedName: "finish", + type: { + name: "Composite", + polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, + uberParent: "CommandProperties", + className: "MongoDbFinishCommand", + modelProperties: { + ...CommandProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MongoDbFinishCommandInput" + } + } + } + } +}; + +export const MongoDbRestartCommand: msRest.CompositeMapper = { + serializedName: "restart", + type: { + name: "Composite", + polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, + uberParent: "CommandProperties", + className: "MongoDbRestartCommand", + modelProperties: { + ...CommandProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MongoDbCommandInput" + } + } + } + } +}; + export const Database: msRest.CompositeMapper = { serializedName: "Database", type: { @@ -8411,5 +8505,8 @@ export const discriminators = { 'MigrateSchemaSqlServerSqlDbTaskOutput.MigrationLevelOutput' : MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, 'MigrateSchemaSqlServerSqlDbTaskOutput.DatabaseLevelOutput' : MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, 'MigrateSchemaSqlServerSqlDbTaskOutput.SchemaErrorOutput' : MigrateSchemaSqlServerSqlDbTaskOutputError, - 'MigrateSchemaSqlServerSqlDbTaskOutput.ErrorOutput' : MigrateSchemaSqlTaskOutputError + 'MigrateSchemaSqlServerSqlDbTaskOutput.ErrorOutput' : MigrateSchemaSqlTaskOutputError, + 'CommandProperties.cancel' : MongoDbCancelCommand, + 'CommandProperties.finish' : MongoDbFinishCommand, + 'CommandProperties.restart' : MongoDbRestartCommand }; diff --git a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts index ceb2f581d846..631f9113b591 100644 --- a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts @@ -45,6 +45,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts index 79838c59b053..321ade207068 100644 --- a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts @@ -50,6 +50,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts index ae230665f672..c4d10a034385 100644 --- a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts @@ -123,6 +123,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, SyncMigrationDatabaseErrorEvent, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index dc6c02910ad3..3ae188c7e9c6 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -4,8 +4,8 @@ "description": "DataMigrationServiceClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.457", "tslib": "^1.9.3" }, "keywords": [ From f854caa67fb37572b1bc9446c109902c1c209c17 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 2 Nov 2018 18:50:41 +0000 Subject: [PATCH 12/21] Remove .npmignores --- packages/@azure/arm-appservice/.npmignore | 35 ----------------------- packages/@azure/arm-cosmosdb/.npmignore | 35 ----------------------- packages/@azure/arm-network/.npmignore | 35 ----------------------- packages/@azure/arm-storage/.npmignore | 35 ----------------------- packages/@azure/graph/.npmignore | 35 ----------------------- 5 files changed, 175 deletions(-) delete mode 100644 packages/@azure/arm-appservice/.npmignore delete mode 100644 packages/@azure/arm-cosmosdb/.npmignore delete mode 100644 packages/@azure/arm-network/.npmignore delete mode 100644 packages/@azure/arm-storage/.npmignore delete mode 100644 packages/@azure/graph/.npmignore diff --git a/packages/@azure/arm-appservice/.npmignore b/packages/@azure/arm-appservice/.npmignore deleted file mode 100644 index 3b46bc6202d8..000000000000 --- a/packages/@azure/arm-appservice/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config diff --git a/packages/@azure/arm-cosmosdb/.npmignore b/packages/@azure/arm-cosmosdb/.npmignore deleted file mode 100644 index 3b46bc6202d8..000000000000 --- a/packages/@azure/arm-cosmosdb/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config diff --git a/packages/@azure/arm-network/.npmignore b/packages/@azure/arm-network/.npmignore deleted file mode 100644 index a07a455ac10c..000000000000 --- a/packages/@azure/arm-network/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config diff --git a/packages/@azure/arm-storage/.npmignore b/packages/@azure/arm-storage/.npmignore deleted file mode 100644 index 3b46bc6202d8..000000000000 --- a/packages/@azure/arm-storage/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config diff --git a/packages/@azure/graph/.npmignore b/packages/@azure/graph/.npmignore deleted file mode 100644 index 3b46bc6202d8..000000000000 --- a/packages/@azure/graph/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config From c0fde5a257f028fc69e4b50c7da0af5487552717 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 5 Nov 2018 13:00:28 -0800 Subject: [PATCH 13/21] Generated from 5d5ddf88a2234f1ae59a8d3d4d5aadc3423e58f9 (#402) Fix Version value to fix Ruby SDK Generation --- .../lib/dataMigrationServiceClientContext.ts | 2 + .../arm-datamigration/lib/models/index.ts | 619 +++--------------- .../lib/models/parameters.ts | 2 - .../arm-datamigration/lib/operations/files.ts | 16 +- .../lib/operations/operations.ts | 4 +- .../lib/operations/projects.ts | 12 +- .../lib/operations/resourceSkus.ts | 4 +- .../lib/operations/services.ts | 20 +- .../arm-datamigration/lib/operations/tasks.ts | 16 +- .../lib/operations/usages.ts | 4 +- .../@azure/arm-datamigration/package.json | 2 +- 11 files changed, 120 insertions(+), 581 deletions(-) diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 594169f396a4..6e4b755a16fe 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -17,6 +17,7 @@ const packageVersion = "1.0.0-preview"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; + apiVersion?: string; subscriptionId: string; /** @@ -43,6 +44,7 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC super(credentials, options); + this.apiVersion = '2018-07-15-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index 308b8d96c728..978c6652c980 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -7320,811 +7320,350 @@ export interface FileList extends Array { /** * Defines values for CommandState. - * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CommandState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', 'Failed' * @readonly * @enum {string} */ -export enum CommandState { - Unknown = 'Unknown', - Accepted = 'Accepted', - Running = 'Running', - Succeeded = 'Succeeded', - Failed = 'Failed', -} +export type CommandState = 'Unknown' | 'Accepted' | 'Running' | 'Succeeded' | 'Failed'; /** * Defines values for SqlSourcePlatform. * Possible values include: 'SqlOnPrem' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SqlSourcePlatform = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SqlSourcePlatform { - SqlOnPrem = 'SqlOnPrem', -} +export type SqlSourcePlatform = 'SqlOnPrem'; /** * Defines values for AuthenticationType. - * Possible values include: 'None', 'WindowsAuthentication', - * 'SqlAuthentication', 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: AuthenticationType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', + * 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' * @readonly * @enum {string} */ -export enum AuthenticationType { - None = 'None', - WindowsAuthentication = 'WindowsAuthentication', - SqlAuthentication = 'SqlAuthentication', - ActiveDirectoryIntegrated = 'ActiveDirectoryIntegrated', - ActiveDirectoryPassword = 'ActiveDirectoryPassword', -} +export type AuthenticationType = 'None' | 'WindowsAuthentication' | 'SqlAuthentication' | 'ActiveDirectoryIntegrated' | 'ActiveDirectoryPassword'; /** * Defines values for MongoDbErrorType. * Possible values include: 'Error', 'ValidationError', 'Warning' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbErrorType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbErrorType { - Error = 'Error', - ValidationError = 'ValidationError', - Warning = 'Warning', -} +export type MongoDbErrorType = 'Error' | 'ValidationError' | 'Warning'; /** * Defines values for MongoDbMigrationState. - * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', - * 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', - * 'Complete', 'Canceled', 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbMigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', + * 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' * @readonly * @enum {string} */ -export enum MongoDbMigrationState { - NotStarted = 'NotStarted', - ValidatingInput = 'ValidatingInput', - Initializing = 'Initializing', - Restarting = 'Restarting', - Copying = 'Copying', - InitialReplay = 'InitialReplay', - Replaying = 'Replaying', - Finalizing = 'Finalizing', - Complete = 'Complete', - Canceled = 'Canceled', - Failed = 'Failed', -} +export type MongoDbMigrationState = 'NotStarted' | 'ValidatingInput' | 'Initializing' | 'Restarting' | 'Copying' | 'InitialReplay' | 'Replaying' | 'Finalizing' | 'Complete' | 'Canceled' | 'Failed'; /** * Defines values for MongoDbShardKeyOrder. * Possible values include: 'Forward', 'Reverse', 'Hashed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbShardKeyOrder = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbShardKeyOrder { - Forward = 'Forward', - Reverse = 'Reverse', - Hashed = 'Hashed', -} +export type MongoDbShardKeyOrder = 'Forward' | 'Reverse' | 'Hashed'; /** * Defines values for MongoDbReplication. * Possible values include: 'Disabled', 'OneTime', 'Continuous' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbReplication = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbReplication { - Disabled = 'Disabled', - OneTime = 'OneTime', - Continuous = 'Continuous', -} +export type MongoDbReplication = 'Disabled' | 'OneTime' | 'Continuous'; /** * Defines values for BackupType. - * Possible values include: 'Database', 'TransactionLog', 'File', - * 'DifferentialDatabase', 'DifferentialFile', 'Partial', 'DifferentialPartial' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: BackupType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', + * 'DifferentialFile', 'Partial', 'DifferentialPartial' * @readonly * @enum {string} */ -export enum BackupType { - Database = 'Database', - TransactionLog = 'TransactionLog', - File = 'File', - DifferentialDatabase = 'DifferentialDatabase', - DifferentialFile = 'DifferentialFile', - Partial = 'Partial', - DifferentialPartial = 'DifferentialPartial', -} +export type BackupType = 'Database' | 'TransactionLog' | 'File' | 'DifferentialDatabase' | 'DifferentialFile' | 'Partial' | 'DifferentialPartial'; /** * Defines values for BackupMode. * Possible values include: 'CreateBackup', 'ExistingBackup' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: BackupMode = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupMode { - CreateBackup = 'CreateBackup', - ExistingBackup = 'ExistingBackup', -} +export type BackupMode = 'CreateBackup' | 'ExistingBackup'; /** * Defines values for SyncTableMigrationState. - * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', - * 'CANCELED', 'ERROR', 'FAILED' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncTableMigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED' * @readonly * @enum {string} */ -export enum SyncTableMigrationState { - BEFORELOAD = 'BEFORE_LOAD', - FULLLOAD = 'FULL_LOAD', - COMPLETED = 'COMPLETED', - CANCELED = 'CANCELED', - ERROR = 'ERROR', - FAILED = 'FAILED', -} +export type SyncTableMigrationState = 'BEFORE_LOAD' | 'FULL_LOAD' | 'COMPLETED' | 'CANCELED' | 'ERROR' | 'FAILED'; /** * Defines values for SyncDatabaseMigrationReportingState. - * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', - * 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - * 'CANCELLING', 'CANCELLED', 'FAILED' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncDatabaseMigrationReportingState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', + * 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED' * @readonly * @enum {string} */ -export enum SyncDatabaseMigrationReportingState { - UNDEFINED = 'UNDEFINED', - CONFIGURING = 'CONFIGURING', - INITIALIAZING = 'INITIALIAZING', - STARTING = 'STARTING', - RUNNING = 'RUNNING', - READYTOCOMPLETE = 'READY_TO_COMPLETE', - COMPLETING = 'COMPLETING', - COMPLETE = 'COMPLETE', - CANCELLING = 'CANCELLING', - CANCELLED = 'CANCELLED', - FAILED = 'FAILED', -} +export type SyncDatabaseMigrationReportingState = 'UNDEFINED' | 'CONFIGURING' | 'INITIALIAZING' | 'STARTING' | 'RUNNING' | 'READY_TO_COMPLETE' | 'COMPLETING' | 'COMPLETE' | 'CANCELLING' | 'CANCELLED' | 'FAILED'; /** * Defines values for ValidationStatus. - * Possible values include: 'Default', 'NotStarted', 'Initialized', - * 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ValidationStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', 'Completed', + * 'CompletedWithIssues', 'Stopped', 'Failed' * @readonly * @enum {string} */ -export enum ValidationStatus { - Default = 'Default', - NotStarted = 'NotStarted', - Initialized = 'Initialized', - InProgress = 'InProgress', - Completed = 'Completed', - CompletedWithIssues = 'CompletedWithIssues', - Stopped = 'Stopped', - Failed = 'Failed', -} +export type ValidationStatus = 'Default' | 'NotStarted' | 'Initialized' | 'InProgress' | 'Completed' | 'CompletedWithIssues' | 'Stopped' | 'Failed'; /** * Defines values for Severity. * Possible values include: 'Message', 'Warning', 'Error' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: Severity = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum Severity { - Message = 'Message', - Warning = 'Warning', - Error = 'Error', -} +export type Severity = 'Message' | 'Warning' | 'Error'; /** * Defines values for UpdateActionType. - * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', - * 'AddedOnTarget' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: UpdateActionType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' * @readonly * @enum {string} */ -export enum UpdateActionType { - DeletedOnTarget = 'DeletedOnTarget', - ChangedOnTarget = 'ChangedOnTarget', - AddedOnTarget = 'AddedOnTarget', -} +export type UpdateActionType = 'DeletedOnTarget' | 'ChangedOnTarget' | 'AddedOnTarget'; /** * Defines values for ObjectType. - * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', - * 'Function' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ObjectType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' * @readonly * @enum {string} */ -export enum ObjectType { - StoredProcedures = 'StoredProcedures', - Table = 'Table', - User = 'User', - View = 'View', - Function = 'Function', -} +export type ObjectType = 'StoredProcedures' | 'Table' | 'User' | 'View' | 'Function'; /** * Defines values for MigrationState. - * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', - * 'Completed', 'Skipped', 'Stopped' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', + * 'Stopped' * @readonly * @enum {string} */ -export enum MigrationState { - None = 'None', - InProgress = 'InProgress', - Failed = 'Failed', - Warning = 'Warning', - Completed = 'Completed', - Skipped = 'Skipped', - Stopped = 'Stopped', -} +export type MigrationState = 'None' | 'InProgress' | 'Failed' | 'Warning' | 'Completed' | 'Skipped' | 'Stopped'; /** * Defines values for DatabaseMigrationStage. - * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', - * 'Restore', 'Completed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' * @readonly * @enum {string} */ -export enum DatabaseMigrationStage { - None = 'None', - Initialize = 'Initialize', - Backup = 'Backup', - FileCopy = 'FileCopy', - Restore = 'Restore', - Completed = 'Completed', -} +export type DatabaseMigrationStage = 'None' | 'Initialize' | 'Backup' | 'FileCopy' | 'Restore' | 'Completed'; /** * Defines values for MigrationStatus. - * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', - * 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped', 'Completed', - * 'CompletedWithWarnings' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MigrationStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', + * 'Configured', 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' * @readonly * @enum {string} */ -export enum MigrationStatus { - Default = 'Default', - Connecting = 'Connecting', - SourceAndTargetSelected = 'SourceAndTargetSelected', - SelectLogins = 'SelectLogins', - Configured = 'Configured', - Running = 'Running', - Error = 'Error', - Stopped = 'Stopped', - Completed = 'Completed', - CompletedWithWarnings = 'CompletedWithWarnings', -} +export type MigrationStatus = 'Default' | 'Connecting' | 'SourceAndTargetSelected' | 'SelectLogins' | 'Configured' | 'Running' | 'Error' | 'Stopped' | 'Completed' | 'CompletedWithWarnings'; /** * Defines values for LoginMigrationStage. - * Possible values include: 'None', 'Initialize', 'LoginMigration', - * 'EstablishUserMapping', 'AssignRoleMembership', 'AssignRoleOwnership', - * 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LoginMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'Initialize', 'LoginMigration', 'EstablishUserMapping', + * 'AssignRoleMembership', 'AssignRoleOwnership', 'EstablishServerPermissions', + * 'EstablishObjectPermissions', 'Completed' * @readonly * @enum {string} */ -export enum LoginMigrationStage { - None = 'None', - Initialize = 'Initialize', - LoginMigration = 'LoginMigration', - EstablishUserMapping = 'EstablishUserMapping', - AssignRoleMembership = 'AssignRoleMembership', - AssignRoleOwnership = 'AssignRoleOwnership', - EstablishServerPermissions = 'EstablishServerPermissions', - EstablishObjectPermissions = 'EstablishObjectPermissions', - Completed = 'Completed', -} +export type LoginMigrationStage = 'None' | 'Initialize' | 'LoginMigration' | 'EstablishUserMapping' | 'AssignRoleMembership' | 'AssignRoleOwnership' | 'EstablishServerPermissions' | 'EstablishObjectPermissions' | 'Completed'; /** * Defines values for LoginType. - * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', - * 'Certificate', 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LoginType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', + * 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' * @readonly * @enum {string} */ -export enum LoginType { - WindowsUser = 'WindowsUser', - WindowsGroup = 'WindowsGroup', - SqlLogin = 'SqlLogin', - Certificate = 'Certificate', - AsymmetricKey = 'AsymmetricKey', - ExternalUser = 'ExternalUser', - ExternalGroup = 'ExternalGroup', -} +export type LoginType = 'WindowsUser' | 'WindowsGroup' | 'SqlLogin' | 'Certificate' | 'AsymmetricKey' | 'ExternalUser' | 'ExternalGroup'; /** * Defines values for DatabaseState. - * Possible values include: 'Online', 'Restoring', 'Recovering', - * 'RecoveryPending', 'Suspect', 'Emergency', 'Offline', 'Copying', - * 'OfflineSecondary' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', + * 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' * @readonly * @enum {string} */ -export enum DatabaseState { - Online = 'Online', - Restoring = 'Restoring', - Recovering = 'Recovering', - RecoveryPending = 'RecoveryPending', - Suspect = 'Suspect', - Emergency = 'Emergency', - Offline = 'Offline', - Copying = 'Copying', - OfflineSecondary = 'OfflineSecondary', -} +export type DatabaseState = 'Online' | 'Restoring' | 'Recovering' | 'RecoveryPending' | 'Suspect' | 'Emergency' | 'Offline' | 'Copying' | 'OfflineSecondary'; /** * Defines values for DatabaseCompatLevel. - * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', - * 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseCompatLevel = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', 'CompatLevel110', + * 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' * @readonly * @enum {string} */ -export enum DatabaseCompatLevel { - CompatLevel80 = 'CompatLevel80', - CompatLevel90 = 'CompatLevel90', - CompatLevel100 = 'CompatLevel100', - CompatLevel110 = 'CompatLevel110', - CompatLevel120 = 'CompatLevel120', - CompatLevel130 = 'CompatLevel130', - CompatLevel140 = 'CompatLevel140', -} +export type DatabaseCompatLevel = 'CompatLevel80' | 'CompatLevel90' | 'CompatLevel100' | 'CompatLevel110' | 'CompatLevel120' | 'CompatLevel130' | 'CompatLevel140'; /** * Defines values for DatabaseFileType. - * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', - * 'Fulltext' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseFileType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', 'Fulltext' * @readonly * @enum {string} */ -export enum DatabaseFileType { - Rows = 'Rows', - Log = 'Log', - Filestream = 'Filestream', - NotSupported = 'NotSupported', - Fulltext = 'Fulltext', -} +export type DatabaseFileType = 'Rows' | 'Log' | 'Filestream' | 'NotSupported' | 'Fulltext'; /** * Defines values for ServerLevelPermissionsGroup. * Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB', * 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServerLevelPermissionsGroup = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServerLevelPermissionsGroup { - Default = 'Default', - MigrationFromSqlServerToAzureDB = 'MigrationFromSqlServerToAzureDB', - MigrationFromSqlServerToAzureMI = 'MigrationFromSqlServerToAzureMI', - MigrationFromMySQLToAzureDBForMySQL = 'MigrationFromMySQLToAzureDBForMySQL', -} +export type ServerLevelPermissionsGroup = 'Default' | 'MigrationFromSqlServerToAzureDB' | 'MigrationFromSqlServerToAzureMI' | 'MigrationFromMySQLToAzureDBForMySQL'; /** * Defines values for MongoDbClusterType. * Possible values include: 'BlobContainer', 'CosmosDb', 'MongoDb' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbClusterType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbClusterType { - BlobContainer = 'BlobContainer', - CosmosDb = 'CosmosDb', - MongoDb = 'MongoDb', -} +export type MongoDbClusterType = 'BlobContainer' | 'CosmosDb' | 'MongoDb'; /** * Defines values for TaskState. - * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', - * 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: TaskState = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', 'Failed', + * 'FailedInputValidation', 'Faulted' * @readonly * @enum {string} */ -export enum TaskState { - Unknown = 'Unknown', - Queued = 'Queued', - Running = 'Running', - Canceled = 'Canceled', - Succeeded = 'Succeeded', - Failed = 'Failed', - FailedInputValidation = 'FailedInputValidation', - Faulted = 'Faulted', -} +export type TaskState = 'Unknown' | 'Queued' | 'Running' | 'Canceled' | 'Succeeded' | 'Failed' | 'FailedInputValidation' | 'Faulted'; /** * Defines values for ServiceProvisioningState. - * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', - * 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServiceProvisioningState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', 'Stopping', 'Starting', + * 'FailedToStart', 'FailedToStop', 'Succeeded', 'Failed' * @readonly * @enum {string} */ -export enum ServiceProvisioningState { - Accepted = 'Accepted', - Deleting = 'Deleting', - Deploying = 'Deploying', - Stopped = 'Stopped', - Stopping = 'Stopping', - Starting = 'Starting', - FailedToStart = 'FailedToStart', - FailedToStop = 'FailedToStop', - Succeeded = 'Succeeded', - Failed = 'Failed', -} +export type ServiceProvisioningState = 'Accepted' | 'Deleting' | 'Deploying' | 'Stopped' | 'Stopping' | 'Starting' | 'FailedToStart' | 'FailedToStop' | 'Succeeded' | 'Failed'; /** * Defines values for ProjectTargetPlatform. - * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', - * 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectTargetPlatform = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', 'AzureDbForPostgreSql', 'MongoDb', + * 'Unknown' * @readonly * @enum {string} */ -export enum ProjectTargetPlatform { - SQLDB = 'SQLDB', - SQLMI = 'SQLMI', - AzureDbForMySql = 'AzureDbForMySql', - AzureDbForPostgreSql = 'AzureDbForPostgreSql', - MongoDb = 'MongoDb', - Unknown = 'Unknown', -} +export type ProjectTargetPlatform = 'SQLDB' | 'SQLMI' | 'AzureDbForMySql' | 'AzureDbForPostgreSql' | 'MongoDb' | 'Unknown'; /** * Defines values for ProjectSourcePlatform. * Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectSourcePlatform = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ProjectSourcePlatform { - SQL = 'SQL', - MySQL = 'MySQL', - PostgreSql = 'PostgreSql', - MongoDb = 'MongoDb', - Unknown = 'Unknown', -} +export type ProjectSourcePlatform = 'SQL' | 'MySQL' | 'PostgreSql' | 'MongoDb' | 'Unknown'; /** * Defines values for ProjectProvisioningState. * Possible values include: 'Deleting', 'Succeeded' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectProvisioningState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ProjectProvisioningState { - Deleting = 'Deleting', - Succeeded = 'Succeeded', -} +export type ProjectProvisioningState = 'Deleting' | 'Succeeded'; /** * Defines values for NameCheckFailureReason. * Possible values include: 'AlreadyExists', 'Invalid' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: NameCheckFailureReason = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum NameCheckFailureReason { - AlreadyExists = 'AlreadyExists', - Invalid = 'Invalid', -} +export type NameCheckFailureReason = 'AlreadyExists' | 'Invalid'; /** * Defines values for ServiceScalability. * Possible values include: 'none', 'manual', 'automatic' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServiceScalability = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceScalability { - None = 'none', - Manual = 'manual', - Automatic = 'automatic', -} +export type ServiceScalability = 'none' | 'manual' | 'automatic'; /** * Defines values for ResourceSkuRestrictionsType. * Possible values include: 'location' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuRestrictionsType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuRestrictionsType { - Location = 'location', -} +export type ResourceSkuRestrictionsType = 'location'; /** * Defines values for ResourceSkuRestrictionsReasonCode. * Possible values include: 'QuotaId', 'NotAvailableForSubscription' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuRestrictionsReasonCode = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuRestrictionsReasonCode { - QuotaId = 'QuotaId', - NotAvailableForSubscription = 'NotAvailableForSubscription', -} +export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; /** * Defines values for ResourceSkuCapacityScaleType. * Possible values include: 'Automatic', 'Manual', 'None' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuCapacityScaleType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuCapacityScaleType { - Automatic = 'Automatic', - Manual = 'Manual', - None = 'None', -} +export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; /** * Defines values for MySqlTargetPlatformType. * Possible values include: 'AzureDbForMySQL' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MySqlTargetPlatformType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MySqlTargetPlatformType { - AzureDbForMySQL = 'AzureDbForMySQL', -} +export type MySqlTargetPlatformType = 'AzureDbForMySQL'; /** * Defines values for SchemaMigrationOption. * Possible values include: 'None', 'ExtractFromSource', 'UseStorageFile' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SchemaMigrationOption = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SchemaMigrationOption { - None = 'None', - ExtractFromSource = 'ExtractFromSource', - UseStorageFile = 'UseStorageFile', -} +export type SchemaMigrationOption = 'None' | 'ExtractFromSource' | 'UseStorageFile'; /** * Defines values for SchemaMigrationStage. - * Possible values include: 'NotStarted', 'ValidatingInputs', - * 'CollectingObjects', 'DownloadingScript', 'GeneratingScript', - * 'UploadingScript', 'DeployingSchema', 'Completed', 'CompletedWithWarnings', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SchemaMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', + * 'DownloadingScript', 'GeneratingScript', 'UploadingScript', 'DeployingSchema', 'Completed', + * 'CompletedWithWarnings', 'Failed' * @readonly * @enum {string} */ -export enum SchemaMigrationStage { - NotStarted = 'NotStarted', - ValidatingInputs = 'ValidatingInputs', - CollectingObjects = 'CollectingObjects', - DownloadingScript = 'DownloadingScript', - GeneratingScript = 'GeneratingScript', - UploadingScript = 'UploadingScript', - DeployingSchema = 'DeployingSchema', - Completed = 'Completed', - CompletedWithWarnings = 'CompletedWithWarnings', - Failed = 'Failed', -} +export type SchemaMigrationStage = 'NotStarted' | 'ValidatingInputs' | 'CollectingObjects' | 'DownloadingScript' | 'GeneratingScript' | 'UploadingScript' | 'DeployingSchema' | 'Completed' | 'CompletedWithWarnings' | 'Failed'; /** * Defines values for DataMigrationResultCode. * Possible values include: 'Initial', 'Completed', 'ObjectNotExistsInSource', * 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DataMigrationResultCode = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum DataMigrationResultCode { - Initial = 'Initial', - Completed = 'Completed', - ObjectNotExistsInSource = 'ObjectNotExistsInSource', - ObjectNotExistsInTarget = 'ObjectNotExistsInTarget', - TargetObjectIsInaccessible = 'TargetObjectIsInaccessible', - FatalError = 'FatalError', -} +export type DataMigrationResultCode = 'Initial' | 'Completed' | 'ObjectNotExistsInSource' | 'ObjectNotExistsInTarget' | 'TargetObjectIsInaccessible' | 'FatalError'; /** * Defines values for ErrorType. * Possible values include: 'Default', 'Warning', 'Error' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ErrorType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ErrorType { - Default = 'Default', - Warning = 'Warning', - Error = 'Error', -} +export type ErrorType = 'Default' | 'Warning' | 'Error'; /** * Defines values for ResultType. * Possible values include: 'Migration', 'Database', 'Collection' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResultType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResultType { - Migration = 'Migration', - Database = 'Database', - Collection = 'Collection', -} +export type ResultType = 'Migration' | 'Database' | 'Collection'; /** * Contains response data for the listSkus operation. diff --git a/packages/@azure/arm-datamigration/lib/models/parameters.ts b/packages/@azure/arm-datamigration/lib/models/parameters.ts index edad9643d324..7aeaceeadc6d 100644 --- a/packages/@azure/arm-datamigration/lib/models/parameters.ts +++ b/packages/@azure/arm-datamigration/lib/models/parameters.ts @@ -24,9 +24,7 @@ export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2018-07-15-preview', type: { name: "String" } diff --git a/packages/@azure/arm-datamigration/lib/operations/files.ts b/packages/@azure/arm-datamigration/lib/operations/files.ts index dfd99f84b64a..f05767ce3cf2 100644 --- a/packages/@azure/arm-datamigration/lib/operations/files.ts +++ b/packages/@azure/arm-datamigration/lib/operations/files.ts @@ -52,7 +52,7 @@ export class Files { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -93,7 +93,7 @@ export class Files { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Files { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -179,7 +179,7 @@ export class Files { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -223,7 +223,7 @@ export class Files { * @param callback The callback */ update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -266,7 +266,7 @@ export class Files { * @param callback The callback */ read(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -307,7 +307,7 @@ export class Files { * @param callback The callback */ readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -340,7 +340,7 @@ export class Files { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/operations.ts b/packages/@azure/arm-datamigration/lib/operations/operations.ts index 4ea11a119716..e22bb1ea9155 100644 --- a/packages/@azure/arm-datamigration/lib/operations/operations.ts +++ b/packages/@azure/arm-datamigration/lib/operations/operations.ts @@ -42,7 +42,7 @@ export class Operations { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class Operations { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/projects.ts b/packages/@azure/arm-datamigration/lib/operations/projects.ts index f2c8dd87f14d..caae446b34a6 100644 --- a/packages/@azure/arm-datamigration/lib/operations/projects.ts +++ b/packages/@azure/arm-datamigration/lib/operations/projects.ts @@ -49,7 +49,7 @@ export class Projects { * @param callback The callback */ list(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -89,7 +89,7 @@ export class Projects { * @param callback The callback */ createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -128,7 +128,7 @@ export class Projects { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -166,7 +166,7 @@ export class Projects { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, options: Models.ProjectsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -207,7 +207,7 @@ export class Projects { * @param callback The callback */ update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -240,7 +240,7 @@ export class Projects { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts index c9acfb62b336..c8b3a6952ff9 100644 --- a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts +++ b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts @@ -42,7 +42,7 @@ export class ResourceSkus { * @param callback The callback */ listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class ResourceSkus { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/services.ts b/packages/@azure/arm-datamigration/lib/operations/services.ts index 3faa0ab51e8e..1a7c813a75ec 100644 --- a/packages/@azure/arm-datamigration/lib/operations/services.ts +++ b/packages/@azure/arm-datamigration/lib/operations/services.ts @@ -71,7 +71,7 @@ export class Services { * @param callback The callback */ get(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Services { * @param callback The callback */ checkStatus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -200,7 +200,7 @@ export class Services { * @param callback The callback */ listSkus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -236,7 +236,7 @@ export class Services { * @param callback The callback */ checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -268,7 +268,7 @@ export class Services { * @param callback The callback */ listByResourceGroup(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -295,7 +295,7 @@ export class Services { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -326,7 +326,7 @@ export class Services { * @param callback The callback */ checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -470,7 +470,7 @@ export class Services { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -500,7 +500,7 @@ export class Services { * @param callback The callback */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -530,7 +530,7 @@ export class Services { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/tasks.ts b/packages/@azure/arm-datamigration/lib/operations/tasks.ts index 5ae49940480b..02e8d3d519d6 100644 --- a/packages/@azure/arm-datamigration/lib/operations/tasks.ts +++ b/packages/@azure/arm-datamigration/lib/operations/tasks.ts @@ -53,7 +53,7 @@ export class Tasks { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: Models.TasksListOptionalParams, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -98,7 +98,7 @@ export class Tasks { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -141,7 +141,7 @@ export class Tasks { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksGetOptionalParams, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -183,7 +183,7 @@ export class Tasks { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -229,7 +229,7 @@ export class Tasks { * @param callback The callback */ update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -272,7 +272,7 @@ export class Tasks { * @param callback The callback */ cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -317,7 +317,7 @@ export class Tasks { * @param callback The callback */ command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -352,7 +352,7 @@ export class Tasks { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/usages.ts b/packages/@azure/arm-datamigration/lib/operations/usages.ts index e7c873c543f4..34e58611e057 100644 --- a/packages/@azure/arm-datamigration/lib/operations/usages.ts +++ b/packages/@azure/arm-datamigration/lib/operations/usages.ts @@ -46,7 +46,7 @@ export class Usages { * @param callback The callback */ list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(location: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -76,7 +76,7 @@ export class Usages { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index 3ae188c7e9c6..f81c72891c21 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -5,7 +5,7 @@ "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-js": "^1.0.460", "tslib": "^1.9.3" }, "keywords": [ From 4863d35c0601bbcfbbddea3163cfa343886cba83 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Mon, 5 Nov 2018 21:24:14 +0000 Subject: [PATCH 14/21] Regenerated "@azure/arm-datamigration" SDK. --- .../lib/apiManagementClientContext.ts | 15 +- .../@azure/arm-apimanagement/package.json | 4 +- .../@azure/arm-appservice/lib/models/index.ts | 96 ++++++++--- .../arm-appservice/lib/operations/webApps.ts | 128 +++----------- .../lib/webSiteManagementClientContext.ts | 6 +- packages/@azure/arm-appservice/package.json | 4 +- .../@azure/arm-containerinstance/.npmignore | 35 ++++ .../@azure/arm-containerinstance/LICENSE.txt | 42 ++--- .../@azure/arm-containerinstance/README.md | 154 ++++++++--------- ...ontainerInstanceManagementClientContext.ts | 15 +- .../lib/models/containerGroupsMappers.ts | 2 - .../arm-containerinstance/lib/models/index.ts | 69 -------- .../lib/models/mappers.ts | 79 --------- .../@azure/arm-containerinstance/package.json | 19 +-- .../@azure/arm-containerregistry/.npmignore | 35 ++++ .../@azure/arm-containerregistry/README.md | 2 +- ...ontainerRegistryManagementClientContext.ts | 12 +- .../arm-containerregistry/lib/models/index.ts | 40 ----- .../lib/models/mappers.ts | 12 -- .../@azure/arm-containerregistry/package.json | 19 +-- packages/@azure/arm-domainservices/.npmignore | 35 ++++ .../@azure/arm-domainservices/LICENSE.txt | 42 ++--- packages/@azure/arm-domainservices/README.md | 154 ++++++++--------- .../domainservicesManagementClientContext.ts | 15 +- .../lib/models/domainServicesMappers.ts | 4 +- .../arm-domainservices/lib/models/index.ts | 121 ++++++++++++- .../arm-domainservices/lib/models/mappers.ts | 160 ++++++++++++++++++ .../lib/operations/domainServices.ts | 59 ++++--- .../@azure/arm-domainservices/package.json | 19 +-- packages/@azure/arm-reservations/.npmignore | 35 ++++ packages/@azure/arm-reservations/README.md | 2 +- .../lib/azureReservationAPIContext.ts | 14 +- .../arm-reservations/lib/models/index.ts | 6 +- .../lib/operations/reservation.ts | 19 +++ .../lib/operations/reservationOrder.ts | 3 + packages/@azure/arm-reservations/package.json | 19 +-- packages/@azure/arm-visualstudio/LICENSE.txt | 42 ++--- packages/@azure/arm-visualstudio/README.md | 154 ++++++++--------- .../lib/models/accountsMappers.ts | 1 - .../arm-visualstudio/lib/models/index.ts | 33 ---- .../arm-visualstudio/lib/models/mappers.ts | 21 --- .../lib/operations/accounts.ts | 70 -------- ...sualStudioResourceProviderClientContext.ts | 15 +- packages/@azure/arm-visualstudio/package.json | 19 +-- .../lib/models/index.ts | 4 +- swagger_to_sdk_config.json | 2 +- 46 files changed, 942 insertions(+), 914 deletions(-) create mode 100644 packages/@azure/arm-containerinstance/.npmignore create mode 100644 packages/@azure/arm-containerregistry/.npmignore create mode 100644 packages/@azure/arm-domainservices/.npmignore create mode 100644 packages/@azure/arm-reservations/.npmignore diff --git a/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts b/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts index 50989c5165d0..722d3892a53a 100644 --- a/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts +++ b/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts @@ -16,10 +16,17 @@ const packageName = "@azure/arm-apimanagement"; const packageVersion = "1.0.0-preview"; export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; - apiVersion?: string; + + apiVersion: string; + subscriptionId: string; + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + /** * Initializes a new instance of the ApiManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. @@ -38,11 +45,6 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } - if(!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - super(credentials, options); this.apiVersion = '2018-01-01'; @@ -53,6 +55,7 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { this.credentials = credentials; this.subscriptionId = subscriptionId; + this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-apimanagement/package.json b/packages/@azure/arm-apimanagement/package.json index d21f66fc38c5..02fd8eb0fd82 100644 --- a/packages/@azure/arm-apimanagement/package.json +++ b/packages/@azure/arm-apimanagement/package.json @@ -4,8 +4,8 @@ "description": "ApiManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ diff --git a/packages/@azure/arm-appservice/lib/models/index.ts b/packages/@azure/arm-appservice/lib/models/index.ts index 3727781b2f87..c69c21e69afd 100644 --- a/packages/@azure/arm-appservice/lib/models/index.ts +++ b/packages/@azure/arm-appservice/lib/models/index.ts @@ -16231,7 +16231,11 @@ export type WebAppsListNetworkFeaturesResponse = NetworkFeatures & { /** * Contains response data for the getNetworkTraceOperation operation. */ -export type WebAppsGetNetworkTraceOperationResponse = Array & { +export type WebAppsGetNetworkTraceOperationResponse = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -16243,7 +16247,7 @@ export type WebAppsGetNetworkTraceOperationResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkTrace[]; + parsedBody: any; }; }; @@ -16273,7 +16277,11 @@ export type WebAppsStartWebSiteNetworkTraceResponse = { /** * Contains response data for the startWebSiteNetworkTraceOperation operation. */ -export type WebAppsStartWebSiteNetworkTraceOperationResponse = Array & { +export type WebAppsStartWebSiteNetworkTraceOperationResponse = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -16285,7 +16293,7 @@ export type WebAppsStartWebSiteNetworkTraceOperationResponse = Array & { /** * Contains response data for the getNetworkTraceOperationV2 operation. */ -export type WebAppsGetNetworkTraceOperationV2Response = Array & { +export type WebAppsGetNetworkTraceOperationV2Response = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -16323,7 +16335,7 @@ export type WebAppsGetNetworkTraceOperationV2Response = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkTrace[]; + parsedBody: any; }; }; @@ -18411,7 +18423,11 @@ export type WebAppsListNetworkFeaturesSlotResponse = NetworkFeatures & { /** * Contains response data for the getNetworkTraceOperationSlot operation. */ -export type WebAppsGetNetworkTraceOperationSlotResponse = Array & { +export type WebAppsGetNetworkTraceOperationSlotResponse = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -18423,7 +18439,7 @@ export type WebAppsGetNetworkTraceOperationSlotResponse = Array & /** * The response body as parsed JSON or XML */ - parsedBody: NetworkTrace[]; + parsedBody: any; }; }; @@ -18453,7 +18469,11 @@ export type WebAppsStartWebSiteNetworkTraceSlotResponse = { /** * Contains response data for the startWebSiteNetworkTraceOperationSlot operation. */ -export type WebAppsStartWebSiteNetworkTraceOperationSlotResponse = Array & { +export type WebAppsStartWebSiteNetworkTraceOperationSlotResponse = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -18465,7 +18485,7 @@ export type WebAppsStartWebSiteNetworkTraceOperationSlotResponse = Array & { /** * Contains response data for the getNetworkTraceOperationSlotV2 operation. */ -export type WebAppsGetNetworkTraceOperationSlotV2Response = Array & { +export type WebAppsGetNetworkTraceOperationSlotV2Response = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -18503,7 +18527,7 @@ export type WebAppsGetNetworkTraceOperationSlotV2Response = Array /** * The response body as parsed JSON or XML */ - parsedBody: NetworkTrace[]; + parsedBody: any; }; }; @@ -19052,7 +19076,11 @@ export type WebAppsUpdateSourceControlSlotResponse = SiteSourceControl & { /** * Contains response data for the startNetworkTraceSlot operation. */ -export type WebAppsStartNetworkTraceSlotResponse = Array & { +export type WebAppsStartNetworkTraceSlotResponse = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -19064,7 +19092,7 @@ export type WebAppsStartNetworkTraceSlotResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkTrace[]; + parsedBody: any; }; }; @@ -19432,7 +19460,11 @@ export type WebAppsUpdateSourceControlResponse = SiteSourceControl & { /** * Contains response data for the startNetworkTrace operation. */ -export type WebAppsStartNetworkTraceResponse = Array & { +export type WebAppsStartNetworkTraceResponse = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -19444,7 +19476,7 @@ export type WebAppsStartNetworkTraceResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkTrace[]; + parsedBody: any; }; }; @@ -19850,7 +19882,11 @@ export type WebAppsBeginMigrateMySqlResponse = Operation & { /** * Contains response data for the beginStartWebSiteNetworkTraceOperation operation. */ -export type WebAppsBeginStartWebSiteNetworkTraceOperationResponse = Array & { +export type WebAppsBeginStartWebSiteNetworkTraceOperationResponse = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -19862,7 +19898,7 @@ export type WebAppsBeginStartWebSiteNetworkTraceOperationResponse = Array & { +export type WebAppsBeginStartWebSiteNetworkTraceOperationSlotResponse = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -19995,7 +20035,7 @@ export type WebAppsBeginStartWebSiteNetworkTraceOperationSlotResponse = Array & { +export type WebAppsBeginStartNetworkTraceSlotResponse = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -20052,7 +20096,7 @@ export type WebAppsBeginStartNetworkTraceSlotResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkTrace[]; + parsedBody: any; }; }; @@ -20078,7 +20122,11 @@ export type WebAppsBeginCreateOrUpdateSourceControlResponse = SiteSourceControl /** * Contains response data for the beginStartNetworkTrace operation. */ -export type WebAppsBeginStartNetworkTraceResponse = Array & { +export type WebAppsBeginStartNetworkTraceResponse = { + /** + * The parsed response body. + */ + body: any; /** * The underlying HTTP response. */ @@ -20090,7 +20138,7 @@ export type WebAppsBeginStartNetworkTraceResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkTrace[]; + parsedBody: any; }; }; diff --git a/packages/@azure/arm-appservice/lib/operations/webApps.ts b/packages/@azure/arm-appservice/lib/operations/webApps.ts index 0f87a90c62c2..3eb20e865163 100644 --- a/packages/@azure/arm-appservice/lib/operations/webApps.ts +++ b/packages/@azure/arm-appservice/lib/operations/webApps.ts @@ -3832,7 +3832,7 @@ export class WebApps { * @param operationId GUID of the operation. * @param callback The callback */ - getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -3840,8 +3840,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -3987,7 +3987,7 @@ export class WebApps { * @param operationId GUID of the operation. * @param callback The callback */ - getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -3995,8 +3995,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -9442,7 +9442,7 @@ export class WebApps { * operation for the production slot. * @param callback The callback */ - getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -9452,8 +9452,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -9620,7 +9620,7 @@ export class WebApps { * operation for the production slot. * @param callback The callback */ - getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -9630,8 +9630,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -18280,18 +18280,7 @@ const getNetworkTraceOperationOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkTrace" - } - } - } - } + bodyMapper: Mappers.Operation }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -18425,18 +18414,7 @@ const getNetworkTraceOperationV2OperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkTrace" - } - } - } - } + bodyMapper: Mappers.Operation }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -22032,18 +22010,7 @@ const getNetworkTraceOperationSlotOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkTrace" - } - } - } - } + bodyMapper: Mappers.Operation }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -22181,18 +22148,7 @@ const getNetworkTraceOperationSlotV2OperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkTrace" - } - } - } - } + bodyMapper: Mappers.Operation }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -24849,18 +24805,7 @@ const beginStartWebSiteNetworkTraceOperationOperationSpec: msRest.OperationSpec } }, 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkTrace" - } - } - } - } + bodyMapper: Mappers.Operation }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -25224,18 +25169,7 @@ const beginStartWebSiteNetworkTraceOperationSlotOperationSpec: msRest.OperationS } }, 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkTrace" - } - } - } - } + bodyMapper: Mappers.Operation }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -25476,18 +25410,7 @@ const beginStartNetworkTraceSlotOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkTrace" - } - } - } - } + bodyMapper: Mappers.Operation }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -25598,18 +25521,7 @@ const beginStartNetworkTraceOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkTrace" - } - } - } - } + bodyMapper: Mappers.Operation }, default: { bodyMapper: Mappers.DefaultErrorResponse diff --git a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts index 6e3c6c13d538..2ce3b3248e6e 100644 --- a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts +++ b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts @@ -38,11 +38,6 @@ export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClie if (!options) { options = {}; } - if(!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - super(credentials, options); this.apiVersion = '2018-02-01'; @@ -53,6 +48,7 @@ export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClie this.credentials = credentials; this.subscriptionId = subscriptionId; + this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-appservice/package.json b/packages/@azure/arm-appservice/package.json index f2652e172b52..8c6ce1d955c0 100644 --- a/packages/@azure/arm-appservice/package.json +++ b/packages/@azure/arm-appservice/package.json @@ -4,8 +4,8 @@ "description": "WebSiteManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ diff --git a/packages/@azure/arm-containerinstance/.npmignore b/packages/@azure/arm-containerinstance/.npmignore new file mode 100644 index 000000000000..3b46bc6202d8 --- /dev/null +++ b/packages/@azure/arm-containerinstance/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-containerinstance/LICENSE.txt b/packages/@azure/arm-containerinstance/LICENSE.txt index 5431ba98b936..a70e8cf66038 100644 --- a/packages/@azure/arm-containerinstance/LICENSE.txt +++ b/packages/@azure/arm-containerinstance/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-containerinstance/README.md b/packages/@azure/arm-containerinstance/README.md index d283d3df011c..f74924ad26b3 100644 --- a/packages/@azure/arm-containerinstance/README.md +++ b/packages/@azure/arm-containerinstance/README.md @@ -1,77 +1,77 @@ -# Azure ContainerInstanceManagementClient SDK for JavaScript -This package contains an isomorphic SDK for ContainerInstanceManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-containerinstance -``` - - -## How to use - -### nodejs - Authentication, client creation and list containerGroups as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { ContainerInstanceManagementClient, ContainerInstanceManagementModels, ContainerInstanceManagementMappers } from "@azure/arm-containerinstance"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ContainerInstanceManagementClient(creds, subscriptionId); - client.containerGroups.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list containerGroups as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-containerinstance sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure ContainerInstanceManagementClient SDK for JavaScript +This package contains an isomorphic SDK for ContainerInstanceManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-containerinstance +``` + + +## How to use + +### nodejs - Authentication, client creation and list containerGroups as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { ContainerInstanceManagementClient, ContainerInstanceManagementModels, ContainerInstanceManagementMappers } from "@azure/arm-containerinstance"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new ContainerInstanceManagementClient(creds, subscriptionId); + client.containerGroups.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list containerGroups as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-containerinstance sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-containerinstance/lib/containerInstanceManagementClientContext.ts b/packages/@azure/arm-containerinstance/lib/containerInstanceManagementClientContext.ts index 05f43d13a11f..ae5acc0e44ed 100644 --- a/packages/@azure/arm-containerinstance/lib/containerInstanceManagementClientContext.ts +++ b/packages/@azure/arm-containerinstance/lib/containerInstanceManagementClientContext.ts @@ -16,9 +16,16 @@ const packageName = "@azure/arm-containerinstance"; const packageVersion = "1.0.0"; export class ContainerInstanceManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; - apiVersion?: string; + + apiVersion: string; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; /** * Initializes a new instance of the ContainerInstanceManagementClient class. @@ -38,11 +45,6 @@ export class ContainerInstanceManagementClientContext extends msRestAzure.AzureS if (!options) { options = {}; } - if(!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - super(credentials, options); this.apiVersion = '2018-10-01'; @@ -53,6 +55,7 @@ export class ContainerInstanceManagementClientContext extends msRestAzure.AzureS this.credentials = credentials; this.subscriptionId = subscriptionId; + this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-containerinstance/lib/models/containerGroupsMappers.ts b/packages/@azure/arm-containerinstance/lib/models/containerGroupsMappers.ts index 94c0e6ad4808..607fbfe24cff 100644 --- a/packages/@azure/arm-containerinstance/lib/models/containerGroupsMappers.ts +++ b/packages/@azure/arm-containerinstance/lib/models/containerGroupsMappers.ts @@ -23,7 +23,6 @@ export { Event, ResourceRequirements, ResourceRequests, - GpuResource, ResourceLimits, VolumeMount, ContainerProbe, @@ -39,7 +38,6 @@ export { ContainerGroupDiagnostics, LogAnalytics, ContainerGroupNetworkProfile, - DnsConfiguration, CloudError } from "../models/mappers"; diff --git a/packages/@azure/arm-containerinstance/lib/models/index.ts b/packages/@azure/arm-containerinstance/lib/models/index.ts index f17d274dc5d6..dbf6b3f93660 100644 --- a/packages/@azure/arm-containerinstance/lib/models/index.ts +++ b/packages/@azure/arm-containerinstance/lib/models/index.ts @@ -156,24 +156,6 @@ export interface ContainerPropertiesInstanceView { readonly events?: Event[]; } -/** - * @interface - * An interface representing GpuResource. - * The GPU resource. - * - */ -export interface GpuResource { - /** - * @member {number} count The count of the GPU resource. - */ - count: number; - /** - * @member {GpuSku} sku The SKU of the GPU resource. Possible values include: - * 'K80', 'P100', 'V100' - */ - sku: GpuSku; -} - /** * @interface * An interface representing ResourceRequests. @@ -190,10 +172,6 @@ export interface ResourceRequests { * @member {number} cpu The CPU request of this container instance. */ cpu: number; - /** - * @member {GpuResource} [gpu] The GPU request of this container instance. - */ - gpu?: GpuResource; } /** @@ -212,10 +190,6 @@ export interface ResourceLimits { * @member {number} [cpu] The CPU limit of this container instance. */ cpu?: number; - /** - * @member {GpuResource} [gpu] The GPU limit of this container instance. - */ - gpu?: GpuResource; } /** @@ -683,28 +657,6 @@ export interface ContainerGroupNetworkProfile { id: string; } -/** - * @interface - * An interface representing DnsConfiguration. - * DNS configuration for the container group. - * - */ -export interface DnsConfiguration { - /** - * @member {string[]} nameServers The DNS servers for the container group. - */ - nameServers: string[]; - /** - * @member {string} [searchDomains] The DNS search domains for hostname - * lookup in the container group. - */ - searchDomains?: string; - /** - * @member {string} [options] The DNS options for the container group. - */ - options?: string; -} - /** * @interface * An interface representing Resource. @@ -813,11 +765,6 @@ export interface ContainerGroup extends Resource { * profile information for a container group. */ networkProfile?: ContainerGroupNetworkProfile; - /** - * @member {DnsConfiguration} [dnsConfig] The DNS config information for a - * container group. - */ - dnsConfig?: DnsConfiguration; } /** @@ -1081,22 +1028,6 @@ export enum ContainerNetworkProtocol { UDP = 'UDP', } -/** - * Defines values for GpuSku. - * Possible values include: 'K80', 'P100', 'V100' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: GpuSku = "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum GpuSku { - K80 = 'K80', - P100 = 'P100', - V100 = 'V100', -} - /** * Defines values for ResourceIdentityType. * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, diff --git a/packages/@azure/arm-containerinstance/lib/models/mappers.ts b/packages/@azure/arm-containerinstance/lib/models/mappers.ts index 754e07c89efe..e0ff23089fa4 100644 --- a/packages/@azure/arm-containerinstance/lib/models/mappers.ts +++ b/packages/@azure/arm-containerinstance/lib/models/mappers.ts @@ -198,30 +198,6 @@ export const ContainerPropertiesInstanceView: msRest.CompositeMapper = { } }; -export const GpuResource: msRest.CompositeMapper = { - serializedName: "GpuResource", - type: { - name: "Composite", - className: "GpuResource", - modelProperties: { - count: { - required: true, - serializedName: "count", - type: { - name: "Number" - } - }, - sku: { - required: true, - serializedName: "sku", - type: { - name: "String" - } - } - } - } -}; - export const ResourceRequests: msRest.CompositeMapper = { serializedName: "ResourceRequests", type: { @@ -241,13 +217,6 @@ export const ResourceRequests: msRest.CompositeMapper = { type: { name: "Number" } - }, - gpu: { - serializedName: "gpu", - type: { - name: "Composite", - className: "GpuResource" - } } } } @@ -270,13 +239,6 @@ export const ResourceLimits: msRest.CompositeMapper = { type: { name: "Number" } - }, - gpu: { - serializedName: "gpu", - type: { - name: "Composite", - className: "GpuResource" - } } } } @@ -934,40 +896,6 @@ export const ContainerGroupNetworkProfile: msRest.CompositeMapper = { } }; -export const DnsConfiguration: msRest.CompositeMapper = { - serializedName: "DnsConfiguration", - type: { - name: "Composite", - className: "DnsConfiguration", - modelProperties: { - nameServers: { - required: true, - serializedName: "nameServers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - searchDomains: { - serializedName: "searchDomains", - type: { - name: "String" - } - }, - options: { - serializedName: "options", - type: { - name: "String" - } - } - } - } -}; - export const Resource: msRest.CompositeMapper = { serializedName: "Resource", type: { @@ -1115,13 +1043,6 @@ export const ContainerGroup: msRest.CompositeMapper = { name: "Composite", className: "ContainerGroupNetworkProfile" } - }, - dnsConfig: { - serializedName: "properties.dnsConfig", - type: { - name: "Composite", - className: "DnsConfiguration" - } } } } diff --git a/packages/@azure/arm-containerinstance/package.json b/packages/@azure/arm-containerinstance/package.json index cdb32edbf81f..7023329b16dd 100644 --- a/packages/@azure/arm-containerinstance/package.json +++ b/packages/@azure/arm-containerinstance/package.json @@ -4,8 +4,8 @@ "description": "ContainerInstanceManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-containerinstance.js.map'\" -o ./dist/arm-containerinstance.min.js ./dist/arm-containerinstance.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-containerregistry/.npmignore b/packages/@azure/arm-containerregistry/.npmignore new file mode 100644 index 000000000000..a07a455ac10c --- /dev/null +++ b/packages/@azure/arm-containerregistry/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-containerregistry/README.md b/packages/@azure/arm-containerregistry/README.md index e39eeee50c4c..6f990da091ef 100644 --- a/packages/@azure/arm-containerregistry/README.md +++ b/packages/@azure/arm-containerregistry/README.md @@ -66,7 +66,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log("An error occurred:"); + console.log('An error occurred:'); console.error(err); }); }); diff --git a/packages/@azure/arm-containerregistry/lib/containerRegistryManagementClientContext.ts b/packages/@azure/arm-containerregistry/lib/containerRegistryManagementClientContext.ts index 7d16956f3d0f..7d3f0cd8ff58 100644 --- a/packages/@azure/arm-containerregistry/lib/containerRegistryManagementClientContext.ts +++ b/packages/@azure/arm-containerregistry/lib/containerRegistryManagementClientContext.ts @@ -16,9 +16,15 @@ const packageName = "@azure/arm-containerregistry"; const packageVersion = "1.0.0"; export class ContainerRegistryManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + /** * Initializes a new instance of the ContainerRegistryManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. @@ -36,11 +42,6 @@ export class ContainerRegistryManagementClientContext extends msRestAzure.AzureS if (!options) { options = {}; } - if(!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - super(credentials, options); this.acceptLanguage = 'en-US'; @@ -50,6 +51,7 @@ export class ContainerRegistryManagementClientContext extends msRestAzure.AzureS this.credentials = credentials; this.subscriptionId = subscriptionId; + this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-containerregistry/lib/models/index.ts b/packages/@azure/arm-containerregistry/lib/models/index.ts index 01f73c6dc500..97e9c800d9bd 100644 --- a/packages/@azure/arm-containerregistry/lib/models/index.ts +++ b/packages/@azure/arm-containerregistry/lib/models/index.ts @@ -1399,11 +1399,6 @@ export interface TaskStepProperties { * context for the task step. */ contextPath?: string; - /** - * @member {string} [contextAccessToken] The token (git PAT or SAS token of - * storage account blob) associated with the context for a step. - */ - contextAccessToken?: string; } /** @@ -1635,11 +1630,6 @@ export interface TaskStepUpdateParameters { * context for the task step. */ contextPath?: string; - /** - * @member {string} [contextAccessToken] The token (git PAT or SAS token of - * storage account blob) associated with the context for a step. - */ - contextAccessToken?: string; } /** @@ -2086,11 +2076,6 @@ export interface DockerBuildStep { * context for the task step. */ contextPath?: string; - /** - * @member {string} [contextAccessToken] The token (git PAT or SAS token of - * storage account blob) associated with the context for a step. - */ - contextAccessToken?: string; /** * @member {string[]} [imageNames] The fully qualified image names including * the repository and tag. @@ -2142,11 +2127,6 @@ export interface FileTaskStep { * context for the task step. */ contextPath?: string; - /** - * @member {string} [contextAccessToken] The token (git PAT or SAS token of - * storage account blob) associated with the context for a step. - */ - contextAccessToken?: string; /** * @member {string} taskFilePath The task template/definition file path * relative to the source context. @@ -2187,11 +2167,6 @@ export interface EncodedTaskStep { * context for the task step. */ contextPath?: string; - /** - * @member {string} [contextAccessToken] The token (git PAT or SAS token of - * storage account blob) associated with the context for a step. - */ - contextAccessToken?: string; /** * @member {string} encodedTaskContent Base64 encoded value of the * template/definition file content. @@ -2225,11 +2200,6 @@ export interface DockerBuildStepUpdateParameters { * context for the task step. */ contextPath?: string; - /** - * @member {string} [contextAccessToken] The token (git PAT or SAS token of - * storage account blob) associated with the context for a step. - */ - contextAccessToken?: string; /** * @member {string[]} [imageNames] The fully qualified image names including * the repository and tag. @@ -2273,11 +2243,6 @@ export interface FileTaskStepUpdateParameters { * context for the task step. */ contextPath?: string; - /** - * @member {string} [contextAccessToken] The token (git PAT or SAS token of - * storage account blob) associated with the context for a step. - */ - contextAccessToken?: string; /** * @member {string} [taskFilePath] The task template/definition file path * relative to the source context. @@ -2311,11 +2276,6 @@ export interface EncodedTaskStepUpdateParameters { * context for the task step. */ contextPath?: string; - /** - * @member {string} [contextAccessToken] The token (git PAT or SAS token of - * storage account blob) associated with the context for a step. - */ - contextAccessToken?: string; /** * @member {string} [encodedTaskContent] Base64 encoded value of the * template/definition file content. diff --git a/packages/@azure/arm-containerregistry/lib/models/mappers.ts b/packages/@azure/arm-containerregistry/lib/models/mappers.ts index 7ba832ea9e22..67e8b6feab02 100644 --- a/packages/@azure/arm-containerregistry/lib/models/mappers.ts +++ b/packages/@azure/arm-containerregistry/lib/models/mappers.ts @@ -1819,12 +1819,6 @@ export const TaskStepProperties: msRest.CompositeMapper = { name: "String" } }, - contextAccessToken: { - serializedName: "contextAccessToken", - type: { - name: "String" - } - }, type: { required: true, serializedName: "type", @@ -2139,12 +2133,6 @@ export const TaskStepUpdateParameters: msRest.CompositeMapper = { name: "String" } }, - contextAccessToken: { - serializedName: "contextAccessToken", - type: { - name: "String" - } - }, type: { required: true, serializedName: "type", diff --git a/packages/@azure/arm-containerregistry/package.json b/packages/@azure/arm-containerregistry/package.json index 96f25c8d27d3..048d0b921792 100644 --- a/packages/@azure/arm-containerregistry/package.json +++ b/packages/@azure/arm-containerregistry/package.json @@ -4,8 +4,8 @@ "description": "ContainerRegistryManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-containerregistry.js.map'\" -o ./dist/arm-containerregistry.min.js ./dist/arm-containerregistry.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-domainservices/.npmignore b/packages/@azure/arm-domainservices/.npmignore new file mode 100644 index 000000000000..3b46bc6202d8 --- /dev/null +++ b/packages/@azure/arm-domainservices/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-domainservices/LICENSE.txt b/packages/@azure/arm-domainservices/LICENSE.txt index 5431ba98b936..a70e8cf66038 100644 --- a/packages/@azure/arm-domainservices/LICENSE.txt +++ b/packages/@azure/arm-domainservices/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-domainservices/README.md b/packages/@azure/arm-domainservices/README.md index 123c9fbf0066..cea8815a3e94 100644 --- a/packages/@azure/arm-domainservices/README.md +++ b/packages/@azure/arm-domainservices/README.md @@ -1,77 +1,77 @@ -# Azure DomainservicesManagementClient SDK for JavaScript -This package contains an isomorphic SDK for DomainservicesManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-domainservices -``` - - -## How to use - -### nodejs - Authentication, client creation and list domainServiceOperations as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { DomainservicesManagementClient, DomainservicesManagementModels, DomainservicesManagementMappers } from "@azure/arm-domainservices"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new DomainservicesManagementClient(creds, subscriptionId); - client.domainServiceOperations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list domainServiceOperations as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-domainservices sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure DomainservicesManagementClient SDK for JavaScript +This package contains an isomorphic SDK for DomainservicesManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-domainservices +``` + + +## How to use + +### nodejs - Authentication, client creation and list domainServiceOperations as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { DomainservicesManagementClient, DomainservicesManagementModels, DomainservicesManagementMappers } from "@azure/arm-domainservices"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DomainservicesManagementClient(creds, subscriptionId); + client.domainServiceOperations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list domainServiceOperations as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-domainservices sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-domainservices/lib/domainservicesManagementClientContext.ts b/packages/@azure/arm-domainservices/lib/domainservicesManagementClientContext.ts index 4cc39a6b92a9..1c9d09ec6ab0 100644 --- a/packages/@azure/arm-domainservices/lib/domainservicesManagementClientContext.ts +++ b/packages/@azure/arm-domainservices/lib/domainservicesManagementClientContext.ts @@ -16,9 +16,16 @@ const packageName = "@azure/arm-domainservices"; const packageVersion = "1.0.0"; export class DomainservicesManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; - apiVersion?: string; + + apiVersion: string; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; /** * Initializes a new instance of the DomainservicesManagementClient class. @@ -38,11 +45,6 @@ export class DomainservicesManagementClientContext extends msRestAzure.AzureServ if (!options) { options = {}; } - if(!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - super(credentials, options); this.apiVersion = '2017-06-01'; @@ -53,6 +55,7 @@ export class DomainservicesManagementClientContext extends msRestAzure.AzureServ this.credentials = credentials; this.subscriptionId = subscriptionId; + this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-domainservices/lib/models/domainServicesMappers.ts b/packages/@azure/arm-domainservices/lib/models/domainServicesMappers.ts index fae4820d74b3..a8707785e62b 100644 --- a/packages/@azure/arm-domainservices/lib/models/domainServicesMappers.ts +++ b/packages/@azure/arm-domainservices/lib/models/domainServicesMappers.ts @@ -18,6 +18,8 @@ export { HealthAlert, NotificationSettings, DomainSecuritySettings, - CloudError + CloudError, + DomainServiceProperties, + DomainServicePatchProperties } from "../models/mappers"; diff --git a/packages/@azure/arm-domainservices/lib/models/index.ts b/packages/@azure/arm-domainservices/lib/models/index.ts index 86c236b5453e..51bcadf22349 100644 --- a/packages/@azure/arm-domainservices/lib/models/index.ts +++ b/packages/@azure/arm-domainservices/lib/models/index.ts @@ -41,9 +41,9 @@ export interface Resource extends BaseResource { */ readonly type?: string; /** - * @member {string} [location] Resource location + * @member {string} location Resource location */ - location?: string; + location: string; /** * @member {{ [propertyName: string]: string }} [tags] Resource tags */ @@ -239,6 +239,95 @@ export interface DomainSecuritySettings { syncNtlmPasswords?: SyncNtlmPasswords; } +/** + * @interface + * An interface representing DomainServiceProperties. + * Properties of the Domain Service. + * + */ +export interface DomainServiceProperties { + /** + * @member {string} [tenantId] Azure Active Directory tenant id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly tenantId?: string; + /** + * @member {string} [domainName] The name of the Azure domain that the user + * would like to deploy Domain Services to. + */ + domainName?: string; + /** + * @member {string} [vnetSiteId] Virtual network site id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly vnetSiteId?: string; + /** + * @member {string} [subnetId] The name of the virtual network that Domain + * Services will be deployed on. The id of the subnet that Domain Services + * will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. + */ + subnetId?: string; + /** + * @member {LdapsSettings} [ldapsSettings] Secure LDAP Settings + */ + ldapsSettings?: LdapsSettings; + /** + * @member {Date} [healthLastEvaluated] Last domain evaluation run DateTime + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly healthLastEvaluated?: Date; + /** + * @member {HealthMonitor[]} [healthMonitors] List of Domain Health Monitors + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly healthMonitors?: HealthMonitor[]; + /** + * @member {HealthAlert[]} [healthAlerts] List of Domain Health Alerts + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly healthAlerts?: HealthAlert[]; + /** + * @member {NotificationSettings} [notificationSettings] Notification + * Settings + */ + notificationSettings?: NotificationSettings; + /** + * @member {DomainSecuritySettings} [domainSecuritySettings] DomainSecurity + * Settings + */ + domainSecuritySettings?: DomainSecuritySettings; + /** + * @member {FilteredSync} [filteredSync] Enabled or Disabled flag to turn on + * Group-based filtered sync. Possible values include: 'Enabled', 'Disabled' + */ + filteredSync?: FilteredSync; + /** + * @member {string[]} [domainControllerIpAddress] List of Domain Controller + * IP Address + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly domainControllerIpAddress?: string[]; + /** + * @member {string} [serviceStatus] Status of Domain Service instance + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly serviceStatus?: string; + /** + * @member {string} [provisioningState] the current deployment or + * provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; +} + /** * @interface * An interface representing DomainService. @@ -329,6 +418,34 @@ export interface DomainService extends Resource { readonly provisioningState?: string; } +/** + * @interface + * An interface representing DomainServicePatchProperties. + * Update Properties of the Domain Service. + * + */ +export interface DomainServicePatchProperties { + /** + * @member {LdapsSettings} [ldapsSettings] Secure LDAP Settings + */ + ldapsSettings?: LdapsSettings; + /** + * @member {NotificationSettings} [notificationSettings] Notification + * Settings + */ + notificationSettings?: NotificationSettings; + /** + * @member {DomainSecuritySettings} [domainSecuritySettings] DomainSecurity + * Settings + */ + domainSecuritySettings?: DomainSecuritySettings; + /** + * @member {FilteredSync} [filteredSync] Enabled or Disabled flag to turn on + * Group-based filtered sync. Possible values include: 'Enabled', 'Disabled' + */ + filteredSync?: FilteredSync; +} + /** * @interface * An interface representing OperationDisplayInfo. diff --git a/packages/@azure/arm-domainservices/lib/models/mappers.ts b/packages/@azure/arm-domainservices/lib/models/mappers.ts index 73235febacca..ca05e57989b3 100644 --- a/packages/@azure/arm-domainservices/lib/models/mappers.ts +++ b/packages/@azure/arm-domainservices/lib/models/mappers.ts @@ -42,6 +42,7 @@ export const Resource: msRest.CompositeMapper = { } }, location: { + required: true, serializedName: "location", type: { name: "String" @@ -281,6 +282,128 @@ export const DomainSecuritySettings: msRest.CompositeMapper = { } }; +export const DomainServiceProperties: msRest.CompositeMapper = { + serializedName: "DomainServiceProperties", + type: { + name: "Composite", + className: "DomainServiceProperties", + modelProperties: { + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + domainName: { + serializedName: "domainName", + type: { + name: "String" + } + }, + vnetSiteId: { + readOnly: true, + serializedName: "vnetSiteId", + type: { + name: "String" + } + }, + subnetId: { + serializedName: "subnetId", + type: { + name: "String" + } + }, + ldapsSettings: { + serializedName: "ldapsSettings", + type: { + name: "Composite", + className: "LdapsSettings" + } + }, + healthLastEvaluated: { + readOnly: true, + serializedName: "healthLastEvaluated", + type: { + name: "DateTime" + } + }, + healthMonitors: { + readOnly: true, + serializedName: "healthMonitors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthMonitor" + } + } + } + }, + healthAlerts: { + readOnly: true, + serializedName: "healthAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthAlert" + } + } + } + }, + notificationSettings: { + serializedName: "notificationSettings", + type: { + name: "Composite", + className: "NotificationSettings" + } + }, + domainSecuritySettings: { + serializedName: "domainSecuritySettings", + type: { + name: "Composite", + className: "DomainSecuritySettings" + } + }, + filteredSync: { + serializedName: "filteredSync", + type: { + name: "String" + } + }, + domainControllerIpAddress: { + readOnly: true, + serializedName: "domainControllerIpAddress", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + serviceStatus: { + readOnly: true, + serializedName: "serviceStatus", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + } + } + } +}; + export const DomainService: msRest.CompositeMapper = { serializedName: "DomainService", type: { @@ -404,6 +527,43 @@ export const DomainService: msRest.CompositeMapper = { } }; +export const DomainServicePatchProperties: msRest.CompositeMapper = { + serializedName: "DomainServicePatchProperties", + type: { + name: "Composite", + className: "DomainServicePatchProperties", + modelProperties: { + ldapsSettings: { + serializedName: "ldapsSettings", + type: { + name: "Composite", + className: "LdapsSettings" + } + }, + notificationSettings: { + serializedName: "notificationSettings", + type: { + name: "Composite", + className: "NotificationSettings" + } + }, + domainSecuritySettings: { + serializedName: "domainSecuritySettings", + type: { + name: "Composite", + className: "DomainSecuritySettings" + } + }, + filteredSync: { + serializedName: "filteredSync", + type: { + name: "String" + } + } + } + } +}; + export const OperationDisplayInfo: msRest.CompositeMapper = { serializedName: "OperationDisplayInfo", type: { diff --git a/packages/@azure/arm-domainservices/lib/operations/domainServices.ts b/packages/@azure/arm-domainservices/lib/operations/domainServices.ts index 05b06ec41d46..3aa01421cd24 100644 --- a/packages/@azure/arm-domainservices/lib/operations/domainServices.ts +++ b/packages/@azure/arm-domainservices/lib/operations/domainServices.ts @@ -93,13 +93,14 @@ export class DomainServices { * @summary Create or Update Domain Service (PUT Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service. - * @param domainService Properties supplied to the Create or Update a Domain Service operation. + * @param domainServiceName The name of the domain service in the specified subscription and + * resource group. + * @param properties Properties supplied to the Create or Update a Domain Service operation. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, domainServiceName: string, domainService: Models.DomainService, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,domainServiceName,domainService,options) + createOrUpdate(resourceGroupName: string, domainServiceName: string, properties: Models.DomainServiceProperties, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,domainServiceName,properties,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -108,7 +109,8 @@ export class DomainServices { * @summary Get Domain Service (GET Resources) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service. + * @param domainServiceName The name of the domain service in the specified subscription and + * resource group. * @param [options] The optional parameters * @returns Promise */ @@ -116,14 +118,16 @@ export class DomainServices { /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service. + * @param domainServiceName The name of the domain service in the specified subscription and + * resource group. * @param callback The callback */ get(resourceGroupName: string, domainServiceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service. + * @param domainServiceName The name of the domain service in the specified subscription and + * resource group. * @param options The optional parameters * @param callback The callback */ @@ -144,7 +148,8 @@ export class DomainServices { * @summary Delete Domain Service (DELETE Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service. + * @param domainServiceName The name of the domain service in the specified subscription and + * resource group. * @param [options] The optional parameters * @returns Promise */ @@ -159,13 +164,14 @@ export class DomainServices { * @summary Update Domain Service (PATCH Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service. - * @param domainService Properties supplied to the Update a Domain Service operation. + * @param domainServiceName The name of the domain service in the specified subscription and + * resource group. + * @param properties Properties supplied to the Update a Domain Service operation. * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, domainServiceName: string, domainService: Models.DomainService, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,domainServiceName,domainService,options) + update(resourceGroupName: string, domainServiceName: string, properties: Models.DomainServicePatchProperties, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,domainServiceName,properties,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -176,17 +182,18 @@ export class DomainServices { * @summary Create or Update Domain Service (PUT Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service. - * @param domainService Properties supplied to the Create or Update a Domain Service operation. + * @param domainServiceName The name of the domain service in the specified subscription and + * resource group. + * @param properties Properties supplied to the Create or Update a Domain Service operation. * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, domainServiceName: string, domainService: Models.DomainService, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, domainServiceName: string, properties: Models.DomainServiceProperties, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, domainServiceName, - domainService, + properties, options }, beginCreateOrUpdateOperationSpec, @@ -198,7 +205,8 @@ export class DomainServices { * @summary Delete Domain Service (DELETE Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service. + * @param domainServiceName The name of the domain service in the specified subscription and + * resource group. * @param [options] The optional parameters * @returns Promise */ @@ -219,17 +227,18 @@ export class DomainServices { * @summary Update Domain Service (PATCH Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service. - * @param domainService Properties supplied to the Update a Domain Service operation. + * @param domainServiceName The name of the domain service in the specified subscription and + * resource group. + * @param properties Properties supplied to the Update a Domain Service operation. * @param [options] The optional parameters * @returns Promise */ - beginUpdate(resourceGroupName: string, domainServiceName: string, domainService: Models.DomainService, options?: msRest.RequestOptionsBase): Promise { + beginUpdate(resourceGroupName: string, domainServiceName: string, properties: Models.DomainServicePatchProperties, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, domainServiceName, - domainService, + properties, options }, beginUpdateOperationSpec, @@ -386,9 +395,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "domainService", + parameterPath: "properties", mapper: { - ...Mappers.DomainService, + ...Mappers.DomainServiceProperties, required: true } }, @@ -450,9 +459,9 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "domainService", + parameterPath: "properties", mapper: { - ...Mappers.DomainService, + ...Mappers.DomainServicePatchProperties, required: true } }, diff --git a/packages/@azure/arm-domainservices/package.json b/packages/@azure/arm-domainservices/package.json index 4b6219bdf2c6..1b0a546a52f8 100644 --- a/packages/@azure/arm-domainservices/package.json +++ b/packages/@azure/arm-domainservices/package.json @@ -4,8 +4,8 @@ "description": "DomainservicesManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-domainservices.js.map'\" -o ./dist/arm-domainservices.min.js ./dist/arm-domainservices.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-reservations/.npmignore b/packages/@azure/arm-reservations/.npmignore new file mode 100644 index 000000000000..a07a455ac10c --- /dev/null +++ b/packages/@azure/arm-reservations/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-reservations/README.md b/packages/@azure/arm-reservations/README.md index 7e8e5e5b7861..54391dd8d15c 100644 --- a/packages/@azure/arm-reservations/README.md +++ b/packages/@azure/arm-reservations/README.md @@ -68,7 +68,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log("An error occurred:"); + console.log('An error occurred:'); console.error(err); }); }); diff --git a/packages/@azure/arm-reservations/lib/azureReservationAPIContext.ts b/packages/@azure/arm-reservations/lib/azureReservationAPIContext.ts index 0d9943e48649..d5592c6d9b9f 100644 --- a/packages/@azure/arm-reservations/lib/azureReservationAPIContext.ts +++ b/packages/@azure/arm-reservations/lib/azureReservationAPIContext.ts @@ -16,8 +16,14 @@ const packageName = "@azure/arm-reservations"; const packageVersion = "1.0.0-preview"; export class AzureReservationAPIContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; - apiVersion?: string; + + apiVersion: string; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; /** * Initializes a new instance of the AzureReservationAPI class. @@ -32,11 +38,6 @@ export class AzureReservationAPIContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } - if(!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - super(credentials, options); this.apiVersion = '2018-06-01'; @@ -46,6 +47,7 @@ export class AzureReservationAPIContext extends msRestAzure.AzureServiceClient { this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; + this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-reservations/lib/models/index.ts b/packages/@azure/arm-reservations/lib/models/index.ts index 634d6f148b13..07da8bbc2196 100644 --- a/packages/@azure/arm-reservations/lib/models/index.ts +++ b/packages/@azure/arm-reservations/lib/models/index.ts @@ -166,8 +166,7 @@ export interface ReservationMergeProperties { export interface ReservationProperties { /** * @member {ReservedResourceType} [reservedResourceType] Possible values - * include: 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb', - * 'RedHat' + * include: 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb' */ reservedResourceType?: ReservedResourceType; /** @@ -739,7 +738,7 @@ export enum ReservationTerm { /** * Defines values for ReservedResourceType. * Possible values include: 'VirtualMachines', 'SqlDatabases', 'SuseLinux', - * 'CosmosDb', 'RedHat' + * 'CosmosDb' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: @@ -753,7 +752,6 @@ export enum ReservedResourceType { SqlDatabases = 'SqlDatabases', SuseLinux = 'SuseLinux', CosmosDb = 'CosmosDb', - RedHat = 'RedHat', } /** diff --git a/packages/@azure/arm-reservations/lib/operations/reservation.ts b/packages/@azure/arm-reservations/lib/operations/reservation.ts index b06ff0375d98..3bea53ad58ae 100644 --- a/packages/@azure/arm-reservations/lib/operations/reservation.ts +++ b/packages/@azure/arm-reservations/lib/operations/reservation.ts @@ -29,8 +29,10 @@ export class Reservation { /** * Split a `Reservation` into two `Reservation`s with specified quantity distribution. + * * @summary Split the `Reservation`. * @param reservationOrderId Order Id of the reservation + * * @param body Information needed to Split a reservation item * @param [options] The optional parameters * @returns Promise @@ -45,6 +47,7 @@ export class Reservation { * must have same properties. * @summary Merges two `Reservation`s. * @param reservationOrderId Order Id of the reservation + * * @param body Information needed for commercial request for a reservation * @param [options] The optional parameters * @returns Promise @@ -58,17 +61,20 @@ export class Reservation { * List `Reservation`s within a single `ReservationOrder`. * @summary Get `Reservation`s in a given reservation Order * @param reservationOrderId Order Id of the reservation + * * @param [options] The optional parameters * @returns Promise */ list(reservationOrderId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param reservationOrderId Order Id of the reservation + * * @param callback The callback */ list(reservationOrderId: string, callback: msRest.ServiceCallback): void; /** * @param reservationOrderId Order Id of the reservation + * * @param options The optional parameters * @param callback The callback */ @@ -88,6 +94,7 @@ export class Reservation { * @summary Get `Reservation` details. * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation + * * @param [options] The optional parameters * @returns Promise */ @@ -95,12 +102,14 @@ export class Reservation { /** * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation + * * @param callback The callback */ get(reservationId: string, reservationOrderId: string, callback: msRest.ServiceCallback): void; /** * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation + * * @param options The optional parameters * @param callback The callback */ @@ -120,6 +129,7 @@ export class Reservation { * Updates the applied scopes of the `Reservation`. * @summary Updates a `Reservation`. * @param reservationOrderId Order Id of the reservation + * * @param reservationId Id of the Reservation Item * @param parameters Information needed to patch a reservation item * @param [options] The optional parameters @@ -132,9 +142,11 @@ export class Reservation { /** * List of all the revisions for the `Reservation`. + * * @summary Get `Reservation` revisions. * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation + * * @param [options] The optional parameters * @returns Promise */ @@ -142,12 +154,14 @@ export class Reservation { /** * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation + * * @param callback The callback */ listRevisions(reservationId: string, reservationOrderId: string, callback: msRest.ServiceCallback): void; /** * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation + * * @param options The optional parameters * @param callback The callback */ @@ -165,8 +179,10 @@ export class Reservation { /** * Split a `Reservation` into two `Reservation`s with specified quantity distribution. + * * @summary Split the `Reservation`. * @param reservationOrderId Order Id of the reservation + * * @param body Information needed to Split a reservation item * @param [options] The optional parameters * @returns Promise @@ -187,6 +203,7 @@ export class Reservation { * must have same properties. * @summary Merges two `Reservation`s. * @param reservationOrderId Order Id of the reservation + * * @param body Information needed for commercial request for a reservation * @param [options] The optional parameters * @returns Promise @@ -206,6 +223,7 @@ export class Reservation { * Updates the applied scopes of the `Reservation`. * @summary Updates a `Reservation`. * @param reservationOrderId Order Id of the reservation + * * @param reservationId Id of the Reservation Item * @param parameters Information needed to patch a reservation item * @param [options] The optional parameters @@ -254,6 +272,7 @@ export class Reservation { /** * List of all the revisions for the `Reservation`. + * * @summary Get `Reservation` revisions. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters diff --git a/packages/@azure/arm-reservations/lib/operations/reservationOrder.ts b/packages/@azure/arm-reservations/lib/operations/reservationOrder.ts index 40552fdd5653..5716e4f5820f 100644 --- a/packages/@azure/arm-reservations/lib/operations/reservationOrder.ts +++ b/packages/@azure/arm-reservations/lib/operations/reservationOrder.ts @@ -55,17 +55,20 @@ export class ReservationOrder { * Get the details of the `ReservationOrder`. * @summary Get a specific `ReservationOrder`. * @param reservationOrderId Order Id of the reservation + * * @param [options] The optional parameters * @returns Promise */ get(reservationOrderId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param reservationOrderId Order Id of the reservation + * * @param callback The callback */ get(reservationOrderId: string, callback: msRest.ServiceCallback): void; /** * @param reservationOrderId Order Id of the reservation + * * @param options The optional parameters * @param callback The callback */ diff --git a/packages/@azure/arm-reservations/package.json b/packages/@azure/arm-reservations/package.json index a50c1fa1060f..fae302414be8 100644 --- a/packages/@azure/arm-reservations/package.json +++ b/packages/@azure/arm-reservations/package.json @@ -4,8 +4,8 @@ "description": "AzureReservationAPI Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-reservations.js.map'\" -o ./dist/arm-reservations.min.js ./dist/arm-reservations.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-visualstudio/LICENSE.txt b/packages/@azure/arm-visualstudio/LICENSE.txt index 5431ba98b936..a70e8cf66038 100644 --- a/packages/@azure/arm-visualstudio/LICENSE.txt +++ b/packages/@azure/arm-visualstudio/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-visualstudio/README.md b/packages/@azure/arm-visualstudio/README.md index ffe569863e7e..f529f6a8c7db 100644 --- a/packages/@azure/arm-visualstudio/README.md +++ b/packages/@azure/arm-visualstudio/README.md @@ -1,77 +1,77 @@ -# Azure VisualStudioResourceProviderClient SDK for JavaScript -This package contains an isomorphic SDK for VisualStudioResourceProviderClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-visualstudio -``` - - -## How to use - -### nodejs - Authentication, client creation and list operations as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { VisualStudioResourceProviderClient, VisualStudioResourceProviderModels, VisualStudioResourceProviderMappers } from "@azure/arm-visualstudio"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new VisualStudioResourceProviderClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list operations as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-visualstudio sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure VisualStudioResourceProviderClient SDK for JavaScript +This package contains an isomorphic SDK for VisualStudioResourceProviderClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-visualstudio +``` + + +## How to use + +### nodejs - Authentication, client creation and list operations as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { VisualStudioResourceProviderClient, VisualStudioResourceProviderModels, VisualStudioResourceProviderMappers } from "@azure/arm-visualstudio"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new VisualStudioResourceProviderClient(creds, subscriptionId); + client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list operations as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-visualstudio sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-visualstudio/lib/models/accountsMappers.ts b/packages/@azure/arm-visualstudio/lib/models/accountsMappers.ts index 5393c150241e..629369bfca41 100644 --- a/packages/@azure/arm-visualstudio/lib/models/accountsMappers.ts +++ b/packages/@azure/arm-visualstudio/lib/models/accountsMappers.ts @@ -17,7 +17,6 @@ export { Resource, BaseResource, AccountResourceRequest, - AccountTagRequest, ExtensionResource, ExtensionResourcePlan, ProjectResource diff --git a/packages/@azure/arm-visualstudio/lib/models/index.ts b/packages/@azure/arm-visualstudio/lib/models/index.ts index b2bcfadfba96..fc70d5bc6ea2 100644 --- a/packages/@azure/arm-visualstudio/lib/models/index.ts +++ b/packages/@azure/arm-visualstudio/lib/models/index.ts @@ -78,20 +78,6 @@ export interface AccountResourceListResult { value?: AccountResource[]; } -/** - * @interface - * An interface representing AccountTagRequest. - * The body of a Patch request to add tags to a Visual Studio account resource. - * - */ -export interface AccountTagRequest { - /** - * @member {{ [propertyName: string]: string }} [tags] The custom tags of the - * resource. - */ - tags?: { [propertyName: string]: string }; -} - /** * @interface * An interface representing AccountResourceRequest. @@ -491,25 +477,6 @@ export type AccountsGetResponse = AccountResource & { }; }; -/** - * Contains response data for the update operation. - */ -export type AccountsUpdateResponse = AccountResource & { - /** - * 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: AccountResource; - }; -}; - /** * Contains response data for the listByAccount operation. */ diff --git a/packages/@azure/arm-visualstudio/lib/models/mappers.ts b/packages/@azure/arm-visualstudio/lib/models/mappers.ts index 3c2f97df8d73..9ad99f3a2d87 100644 --- a/packages/@azure/arm-visualstudio/lib/models/mappers.ts +++ b/packages/@azure/arm-visualstudio/lib/models/mappers.ts @@ -106,27 +106,6 @@ export const AccountResourceListResult: msRest.CompositeMapper = { } }; -export const AccountTagRequest: msRest.CompositeMapper = { - serializedName: "AccountTagRequest", - type: { - name: "Composite", - className: "AccountTagRequest", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - export const AccountResourceRequest: msRest.CompositeMapper = { serializedName: "AccountResourceRequest", type: { diff --git a/packages/@azure/arm-visualstudio/lib/operations/accounts.ts b/packages/@azure/arm-visualstudio/lib/operations/accounts.ts index c4f1c9ec510a..d076c869e661 100644 --- a/packages/@azure/arm-visualstudio/lib/operations/accounts.ts +++ b/packages/@azure/arm-visualstudio/lib/operations/accounts.ts @@ -188,43 +188,6 @@ export class Accounts { getOperationSpec, callback) as Promise; } - - /** - * Updates tags for Visual Studio Team Services account resource. - * @summary Accounts_Update - * @param resourceGroupName Name of the resource group within the Azure subscription. - * @param body The request data. - * @param resourceName Name of the resource. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, body: Models.AccountTagRequest, resourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group within the Azure subscription. - * @param body The request data. - * @param resourceName Name of the resource. - * @param callback The callback - */ - update(resourceGroupName: string, body: Models.AccountTagRequest, resourceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group within the Azure subscription. - * @param body The request data. - * @param resourceName Name of the resource. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, body: Models.AccountTagRequest, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, body: Models.AccountTagRequest, resourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - body, - resourceName, - options - }, - updateOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -364,36 +327,3 @@ const getOperationSpec: msRest.OperationSpec = { }, serializer }; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.AccountTagRequest, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.AccountResource - }, - 404: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/packages/@azure/arm-visualstudio/lib/visualStudioResourceProviderClientContext.ts b/packages/@azure/arm-visualstudio/lib/visualStudioResourceProviderClientContext.ts index 11b58a1a7c64..7710ef946d4e 100644 --- a/packages/@azure/arm-visualstudio/lib/visualStudioResourceProviderClientContext.ts +++ b/packages/@azure/arm-visualstudio/lib/visualStudioResourceProviderClientContext.ts @@ -16,9 +16,16 @@ const packageName = "@azure/arm-visualstudio"; const packageVersion = "1.0.0-preview"; export class VisualStudioResourceProviderClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; - apiVersion?: string; + + apiVersion: string; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; /** * Initializes a new instance of the VisualStudioResourceProviderClient class. @@ -37,11 +44,6 @@ export class VisualStudioResourceProviderClientContext extends msRestAzure.Azure if (!options) { options = {}; } - if(!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - super(credentials, options); this.apiVersion = '2014-04-01-preview'; @@ -52,6 +54,7 @@ export class VisualStudioResourceProviderClientContext extends msRestAzure.Azure this.credentials = credentials; this.subscriptionId = subscriptionId; + this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-visualstudio/package.json b/packages/@azure/arm-visualstudio/package.json index db164c5fb0be..cb727f761bf9 100644 --- a/packages/@azure/arm-visualstudio/package.json +++ b/packages/@azure/arm-visualstudio/package.json @@ -4,8 +4,8 @@ "description": "VisualStudioResourceProviderClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-visualstudio.js.map'\" -o ./dist/arm-visualstudio.min.js ./dist/arm-visualstudio.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } diff --git a/packages/@azure/cognitiveservices-visualsearch/lib/models/index.ts b/packages/@azure/cognitiveservices-visualsearch/lib/models/index.ts index 7c1a0da6dc24..13eb554ea893 100644 --- a/packages/@azure/cognitiveservices-visualsearch/lib/models/index.ts +++ b/packages/@azure/cognitiveservices-visualsearch/lib/models/index.ts @@ -1563,7 +1563,7 @@ export interface MediaObject { */ readonly contentSize?: string; /** - * @member {string} [encodingFormat] Encoding format (e.g., png, gif, jpeg, + * @member {string} [encodingFormat] Encoding format (e.g., mp3, mp4, jpeg, * etc). * **NOTE: This property will not be serialized. It can only be populated by * the server.** @@ -1706,7 +1706,7 @@ export interface ImageObject { */ readonly contentSize?: string; /** - * @member {string} [encodingFormat] Encoding format (e.g., png, gif, jpeg, + * @member {string} [encodingFormat] Encoding format (e.g., mp3, mp4, jpeg, * etc). * **NOTE: This property will not be serialized. It can only be populated by * the server.** diff --git a/swagger_to_sdk_config.json b/swagger_to_sdk_config.json index e3707085db48..a2321693e93a 100644 --- a/swagger_to_sdk_config.json +++ b/swagger_to_sdk_config.json @@ -5,7 +5,7 @@ "typescript": "", "license-header": "MICROSOFT_MIT_NO_VERSION", "sdkrel:typescript-sdks-folder": ".", - "use": "@microsoft.azure/autorest.typescript@2.0.641" + "use": "@microsoft.azure/autorest.typescript@2.0.611" }, "advanced_options": { "clone_dir": "./azure-sdk-for-js" From 551beb98449c23c02fef8511cabec3decb57dd1e Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Mon, 5 Nov 2018 21:25:43 +0000 Subject: [PATCH 15/21] Regenerated "@azure/arm-datamigration" SDK. From a6c1d253f2b3f0b32ec22c7c22af7428faa0358a Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Mon, 5 Nov 2018 21:26:55 +0000 Subject: [PATCH 16/21] Reset to master --- .../lib/apiManagementClientContext.ts | 15 +- .../@azure/arm-apimanagement/package.json | 4 +- .../@azure/arm-appservice/lib/models/index.ts | 96 +-- .../arm-appservice/lib/operations/webApps.ts | 128 +++- .../lib/webSiteManagementClientContext.ts | 6 +- packages/@azure/arm-appservice/package.json | 4 +- .../@azure/arm-containerinstance/LICENSE.txt | 42 +- .../@azure/arm-containerinstance/README.md | 154 ++--- ...ontainerInstanceManagementClientContext.ts | 15 +- .../lib/models/containerGroupsMappers.ts | 2 + .../arm-containerinstance/lib/models/index.ts | 69 ++ .../lib/models/mappers.ts | 79 +++ .../@azure/arm-containerinstance/package.json | 19 +- .../@azure/arm-containerregistry/README.md | 2 +- ...ontainerRegistryManagementClientContext.ts | 12 +- .../arm-containerregistry/lib/models/index.ts | 40 ++ .../lib/models/mappers.ts | 12 + .../@azure/arm-containerregistry/package.json | 19 +- .../lib/dataMigrationServiceClientContext.ts | 2 - .../arm-datamigration/lib/models/index.ts | 619 +++++++++++++++--- .../lib/models/parameters.ts | 2 + .../arm-datamigration/lib/operations/files.ts | 16 +- .../lib/operations/operations.ts | 4 +- .../lib/operations/projects.ts | 12 +- .../lib/operations/resourceSkus.ts | 4 +- .../lib/operations/services.ts | 20 +- .../arm-datamigration/lib/operations/tasks.ts | 16 +- .../lib/operations/usages.ts | 4 +- .../@azure/arm-datamigration/package.json | 2 +- .../@azure/arm-domainservices/LICENSE.txt | 42 +- packages/@azure/arm-domainservices/README.md | 154 ++--- .../domainservicesManagementClientContext.ts | 15 +- .../lib/models/domainServicesMappers.ts | 4 +- .../arm-domainservices/lib/models/index.ts | 121 +--- .../arm-domainservices/lib/models/mappers.ts | 160 ----- .../lib/operations/domainServices.ts | 59 +- .../@azure/arm-domainservices/package.json | 19 +- packages/@azure/arm-reservations/README.md | 2 +- .../lib/azureReservationAPIContext.ts | 14 +- .../arm-reservations/lib/models/index.ts | 6 +- .../lib/operations/reservation.ts | 19 - .../lib/operations/reservationOrder.ts | 3 - packages/@azure/arm-reservations/package.json | 19 +- packages/@azure/arm-visualstudio/LICENSE.txt | 42 +- packages/@azure/arm-visualstudio/README.md | 154 ++--- .../lib/models/accountsMappers.ts | 1 + .../arm-visualstudio/lib/models/index.ts | 33 + .../arm-visualstudio/lib/models/mappers.ts | 21 + .../lib/operations/accounts.ts | 70 ++ ...sualStudioResourceProviderClientContext.ts | 15 +- packages/@azure/arm-visualstudio/package.json | 19 +- .../lib/models/index.ts | 4 +- swagger_to_sdk_config.json | 2 +- 53 files changed, 1495 insertions(+), 922 deletions(-) diff --git a/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts b/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts index 722d3892a53a..50989c5165d0 100644 --- a/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts +++ b/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts @@ -16,17 +16,10 @@ const packageName = "@azure/arm-apimanagement"; const packageVersion = "1.0.0-preview"; export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - - apiVersion: string; - + apiVersion?: string; subscriptionId: string; - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; - /** * Initializes a new instance of the ApiManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. @@ -45,6 +38,11 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.apiVersion = '2018-01-01'; @@ -55,7 +53,6 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { this.credentials = credentials; this.subscriptionId = subscriptionId; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-apimanagement/package.json b/packages/@azure/arm-apimanagement/package.json index 02fd8eb0fd82..d21f66fc38c5 100644 --- a/packages/@azure/arm-apimanagement/package.json +++ b/packages/@azure/arm-apimanagement/package.json @@ -4,8 +4,8 @@ "description": "ApiManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.457", "tslib": "^1.9.3" }, "keywords": [ diff --git a/packages/@azure/arm-appservice/lib/models/index.ts b/packages/@azure/arm-appservice/lib/models/index.ts index c69c21e69afd..3727781b2f87 100644 --- a/packages/@azure/arm-appservice/lib/models/index.ts +++ b/packages/@azure/arm-appservice/lib/models/index.ts @@ -16231,11 +16231,7 @@ export type WebAppsListNetworkFeaturesResponse = NetworkFeatures & { /** * Contains response data for the getNetworkTraceOperation operation. */ -export type WebAppsGetNetworkTraceOperationResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsGetNetworkTraceOperationResponse = Array & { /** * The underlying HTTP response. */ @@ -16247,7 +16243,7 @@ export type WebAppsGetNetworkTraceOperationResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -16277,11 +16273,7 @@ export type WebAppsStartWebSiteNetworkTraceResponse = { /** * Contains response data for the startWebSiteNetworkTraceOperation operation. */ -export type WebAppsStartWebSiteNetworkTraceOperationResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsStartWebSiteNetworkTraceOperationResponse = Array & { /** * The underlying HTTP response. */ @@ -16293,7 +16285,7 @@ export type WebAppsStartWebSiteNetworkTraceOperationResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -16319,11 +16311,7 @@ export type WebAppsGetNetworkTracesResponse = Array & { /** * Contains response data for the getNetworkTraceOperationV2 operation. */ -export type WebAppsGetNetworkTraceOperationV2Response = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsGetNetworkTraceOperationV2Response = Array & { /** * The underlying HTTP response. */ @@ -16335,7 +16323,7 @@ export type WebAppsGetNetworkTraceOperationV2Response = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -18423,11 +18411,7 @@ export type WebAppsListNetworkFeaturesSlotResponse = NetworkFeatures & { /** * Contains response data for the getNetworkTraceOperationSlot operation. */ -export type WebAppsGetNetworkTraceOperationSlotResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsGetNetworkTraceOperationSlotResponse = Array & { /** * The underlying HTTP response. */ @@ -18439,7 +18423,7 @@ export type WebAppsGetNetworkTraceOperationSlotResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -18469,11 +18453,7 @@ export type WebAppsStartWebSiteNetworkTraceSlotResponse = { /** * Contains response data for the startWebSiteNetworkTraceOperationSlot operation. */ -export type WebAppsStartWebSiteNetworkTraceOperationSlotResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsStartWebSiteNetworkTraceOperationSlotResponse = Array & { /** * The underlying HTTP response. */ @@ -18485,7 +18465,7 @@ export type WebAppsStartWebSiteNetworkTraceOperationSlotResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -18511,11 +18491,7 @@ export type WebAppsGetNetworkTracesSlotResponse = Array & { /** * Contains response data for the getNetworkTraceOperationSlotV2 operation. */ -export type WebAppsGetNetworkTraceOperationSlotV2Response = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsGetNetworkTraceOperationSlotV2Response = Array & { /** * The underlying HTTP response. */ @@ -18527,7 +18503,7 @@ export type WebAppsGetNetworkTraceOperationSlotV2Response = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -19076,11 +19052,7 @@ export type WebAppsUpdateSourceControlSlotResponse = SiteSourceControl & { /** * Contains response data for the startNetworkTraceSlot operation. */ -export type WebAppsStartNetworkTraceSlotResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsStartNetworkTraceSlotResponse = Array & { /** * The underlying HTTP response. */ @@ -19092,7 +19064,7 @@ export type WebAppsStartNetworkTraceSlotResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -19460,11 +19432,7 @@ export type WebAppsUpdateSourceControlResponse = SiteSourceControl & { /** * Contains response data for the startNetworkTrace operation. */ -export type WebAppsStartNetworkTraceResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsStartNetworkTraceResponse = Array & { /** * The underlying HTTP response. */ @@ -19476,7 +19444,7 @@ export type WebAppsStartNetworkTraceResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -19882,11 +19850,7 @@ export type WebAppsBeginMigrateMySqlResponse = Operation & { /** * Contains response data for the beginStartWebSiteNetworkTraceOperation operation. */ -export type WebAppsBeginStartWebSiteNetworkTraceOperationResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsBeginStartWebSiteNetworkTraceOperationResponse = Array & { /** * The underlying HTTP response. */ @@ -19898,7 +19862,7 @@ export type WebAppsBeginStartWebSiteNetworkTraceOperationResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -20019,11 +19983,7 @@ export type WebAppsBeginCreateInstanceMSDeployOperationSlotResponse = MSDeploySt /** * Contains response data for the beginStartWebSiteNetworkTraceOperationSlot operation. */ -export type WebAppsBeginStartWebSiteNetworkTraceOperationSlotResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsBeginStartWebSiteNetworkTraceOperationSlotResponse = Array & { /** * The underlying HTTP response. */ @@ -20035,7 +19995,7 @@ export type WebAppsBeginStartWebSiteNetworkTraceOperationSlotResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -20080,11 +20040,7 @@ export type WebAppsBeginCreateOrUpdateSourceControlSlotResponse = SiteSourceCont /** * Contains response data for the beginStartNetworkTraceSlot operation. */ -export type WebAppsBeginStartNetworkTraceSlotResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsBeginStartNetworkTraceSlotResponse = Array & { /** * The underlying HTTP response. */ @@ -20096,7 +20052,7 @@ export type WebAppsBeginStartNetworkTraceSlotResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -20122,11 +20078,7 @@ export type WebAppsBeginCreateOrUpdateSourceControlResponse = SiteSourceControl /** * Contains response data for the beginStartNetworkTrace operation. */ -export type WebAppsBeginStartNetworkTraceResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsBeginStartNetworkTraceResponse = Array & { /** * The underlying HTTP response. */ @@ -20138,7 +20090,7 @@ export type WebAppsBeginStartNetworkTraceResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; diff --git a/packages/@azure/arm-appservice/lib/operations/webApps.ts b/packages/@azure/arm-appservice/lib/operations/webApps.ts index 3eb20e865163..0f87a90c62c2 100644 --- a/packages/@azure/arm-appservice/lib/operations/webApps.ts +++ b/packages/@azure/arm-appservice/lib/operations/webApps.ts @@ -3832,7 +3832,7 @@ export class WebApps { * @param operationId GUID of the operation. * @param callback The callback */ - getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -3840,8 +3840,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -3987,7 +3987,7 @@ export class WebApps { * @param operationId GUID of the operation. * @param callback The callback */ - getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -3995,8 +3995,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -9442,7 +9442,7 @@ export class WebApps { * operation for the production slot. * @param callback The callback */ - getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -9452,8 +9452,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -9620,7 +9620,7 @@ export class WebApps { * operation for the production slot. * @param callback The callback */ - getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -9630,8 +9630,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -18280,7 +18280,18 @@ const getNetworkTraceOperationOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -18414,7 +18425,18 @@ const getNetworkTraceOperationV2OperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -22010,7 +22032,18 @@ const getNetworkTraceOperationSlotOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -22148,7 +22181,18 @@ const getNetworkTraceOperationSlotV2OperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -24805,7 +24849,18 @@ const beginStartWebSiteNetworkTraceOperationOperationSpec: msRest.OperationSpec } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -25169,7 +25224,18 @@ const beginStartWebSiteNetworkTraceOperationSlotOperationSpec: msRest.OperationS } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -25410,7 +25476,18 @@ const beginStartNetworkTraceSlotOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -25521,7 +25598,18 @@ const beginStartNetworkTraceOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse diff --git a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts index 2ce3b3248e6e..6e3c6c13d538 100644 --- a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts +++ b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts @@ -38,6 +38,11 @@ export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClie if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.apiVersion = '2018-02-01'; @@ -48,7 +53,6 @@ export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClie this.credentials = credentials; this.subscriptionId = subscriptionId; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-appservice/package.json b/packages/@azure/arm-appservice/package.json index 8c6ce1d955c0..f2652e172b52 100644 --- a/packages/@azure/arm-appservice/package.json +++ b/packages/@azure/arm-appservice/package.json @@ -4,8 +4,8 @@ "description": "WebSiteManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.457", "tslib": "^1.9.3" }, "keywords": [ diff --git a/packages/@azure/arm-containerinstance/LICENSE.txt b/packages/@azure/arm-containerinstance/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-containerinstance/LICENSE.txt +++ b/packages/@azure/arm-containerinstance/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-containerinstance/README.md b/packages/@azure/arm-containerinstance/README.md index f74924ad26b3..d283d3df011c 100644 --- a/packages/@azure/arm-containerinstance/README.md +++ b/packages/@azure/arm-containerinstance/README.md @@ -1,77 +1,77 @@ -# Azure ContainerInstanceManagementClient SDK for JavaScript -This package contains an isomorphic SDK for ContainerInstanceManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-containerinstance -``` - - -## How to use - -### nodejs - Authentication, client creation and list containerGroups as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { ContainerInstanceManagementClient, ContainerInstanceManagementModels, ContainerInstanceManagementMappers } from "@azure/arm-containerinstance"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ContainerInstanceManagementClient(creds, subscriptionId); - client.containerGroups.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list containerGroups as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-containerinstance sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure ContainerInstanceManagementClient SDK for JavaScript +This package contains an isomorphic SDK for ContainerInstanceManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-containerinstance +``` + + +## How to use + +### nodejs - Authentication, client creation and list containerGroups as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { ContainerInstanceManagementClient, ContainerInstanceManagementModels, ContainerInstanceManagementMappers } from "@azure/arm-containerinstance"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new ContainerInstanceManagementClient(creds, subscriptionId); + client.containerGroups.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list containerGroups as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-containerinstance sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-containerinstance/lib/containerInstanceManagementClientContext.ts b/packages/@azure/arm-containerinstance/lib/containerInstanceManagementClientContext.ts index ae5acc0e44ed..05f43d13a11f 100644 --- a/packages/@azure/arm-containerinstance/lib/containerInstanceManagementClientContext.ts +++ b/packages/@azure/arm-containerinstance/lib/containerInstanceManagementClientContext.ts @@ -16,16 +16,9 @@ const packageName = "@azure/arm-containerinstance"; const packageVersion = "1.0.0"; export class ContainerInstanceManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - - apiVersion: string; - - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; + apiVersion?: string; /** * Initializes a new instance of the ContainerInstanceManagementClient class. @@ -45,6 +38,11 @@ export class ContainerInstanceManagementClientContext extends msRestAzure.AzureS if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.apiVersion = '2018-10-01'; @@ -55,7 +53,6 @@ export class ContainerInstanceManagementClientContext extends msRestAzure.AzureS this.credentials = credentials; this.subscriptionId = subscriptionId; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-containerinstance/lib/models/containerGroupsMappers.ts b/packages/@azure/arm-containerinstance/lib/models/containerGroupsMappers.ts index 607fbfe24cff..94c0e6ad4808 100644 --- a/packages/@azure/arm-containerinstance/lib/models/containerGroupsMappers.ts +++ b/packages/@azure/arm-containerinstance/lib/models/containerGroupsMappers.ts @@ -23,6 +23,7 @@ export { Event, ResourceRequirements, ResourceRequests, + GpuResource, ResourceLimits, VolumeMount, ContainerProbe, @@ -38,6 +39,7 @@ export { ContainerGroupDiagnostics, LogAnalytics, ContainerGroupNetworkProfile, + DnsConfiguration, CloudError } from "../models/mappers"; diff --git a/packages/@azure/arm-containerinstance/lib/models/index.ts b/packages/@azure/arm-containerinstance/lib/models/index.ts index dbf6b3f93660..f17d274dc5d6 100644 --- a/packages/@azure/arm-containerinstance/lib/models/index.ts +++ b/packages/@azure/arm-containerinstance/lib/models/index.ts @@ -156,6 +156,24 @@ export interface ContainerPropertiesInstanceView { readonly events?: Event[]; } +/** + * @interface + * An interface representing GpuResource. + * The GPU resource. + * + */ +export interface GpuResource { + /** + * @member {number} count The count of the GPU resource. + */ + count: number; + /** + * @member {GpuSku} sku The SKU of the GPU resource. Possible values include: + * 'K80', 'P100', 'V100' + */ + sku: GpuSku; +} + /** * @interface * An interface representing ResourceRequests. @@ -172,6 +190,10 @@ export interface ResourceRequests { * @member {number} cpu The CPU request of this container instance. */ cpu: number; + /** + * @member {GpuResource} [gpu] The GPU request of this container instance. + */ + gpu?: GpuResource; } /** @@ -190,6 +212,10 @@ export interface ResourceLimits { * @member {number} [cpu] The CPU limit of this container instance. */ cpu?: number; + /** + * @member {GpuResource} [gpu] The GPU limit of this container instance. + */ + gpu?: GpuResource; } /** @@ -657,6 +683,28 @@ export interface ContainerGroupNetworkProfile { id: string; } +/** + * @interface + * An interface representing DnsConfiguration. + * DNS configuration for the container group. + * + */ +export interface DnsConfiguration { + /** + * @member {string[]} nameServers The DNS servers for the container group. + */ + nameServers: string[]; + /** + * @member {string} [searchDomains] The DNS search domains for hostname + * lookup in the container group. + */ + searchDomains?: string; + /** + * @member {string} [options] The DNS options for the container group. + */ + options?: string; +} + /** * @interface * An interface representing Resource. @@ -765,6 +813,11 @@ export interface ContainerGroup extends Resource { * profile information for a container group. */ networkProfile?: ContainerGroupNetworkProfile; + /** + * @member {DnsConfiguration} [dnsConfig] The DNS config information for a + * container group. + */ + dnsConfig?: DnsConfiguration; } /** @@ -1028,6 +1081,22 @@ export enum ContainerNetworkProtocol { UDP = 'UDP', } +/** + * Defines values for GpuSku. + * Possible values include: 'K80', 'P100', 'V100' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: GpuSku = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum GpuSku { + K80 = 'K80', + P100 = 'P100', + V100 = 'V100', +} + /** * Defines values for ResourceIdentityType. * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, diff --git a/packages/@azure/arm-containerinstance/lib/models/mappers.ts b/packages/@azure/arm-containerinstance/lib/models/mappers.ts index e0ff23089fa4..754e07c89efe 100644 --- a/packages/@azure/arm-containerinstance/lib/models/mappers.ts +++ b/packages/@azure/arm-containerinstance/lib/models/mappers.ts @@ -198,6 +198,30 @@ export const ContainerPropertiesInstanceView: msRest.CompositeMapper = { } }; +export const GpuResource: msRest.CompositeMapper = { + serializedName: "GpuResource", + type: { + name: "Composite", + className: "GpuResource", + modelProperties: { + count: { + required: true, + serializedName: "count", + type: { + name: "Number" + } + }, + sku: { + required: true, + serializedName: "sku", + type: { + name: "String" + } + } + } + } +}; + export const ResourceRequests: msRest.CompositeMapper = { serializedName: "ResourceRequests", type: { @@ -217,6 +241,13 @@ export const ResourceRequests: msRest.CompositeMapper = { type: { name: "Number" } + }, + gpu: { + serializedName: "gpu", + type: { + name: "Composite", + className: "GpuResource" + } } } } @@ -239,6 +270,13 @@ export const ResourceLimits: msRest.CompositeMapper = { type: { name: "Number" } + }, + gpu: { + serializedName: "gpu", + type: { + name: "Composite", + className: "GpuResource" + } } } } @@ -896,6 +934,40 @@ export const ContainerGroupNetworkProfile: msRest.CompositeMapper = { } }; +export const DnsConfiguration: msRest.CompositeMapper = { + serializedName: "DnsConfiguration", + type: { + name: "Composite", + className: "DnsConfiguration", + modelProperties: { + nameServers: { + required: true, + serializedName: "nameServers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + searchDomains: { + serializedName: "searchDomains", + type: { + name: "String" + } + }, + options: { + serializedName: "options", + type: { + name: "String" + } + } + } + } +}; + export const Resource: msRest.CompositeMapper = { serializedName: "Resource", type: { @@ -1043,6 +1115,13 @@ export const ContainerGroup: msRest.CompositeMapper = { name: "Composite", className: "ContainerGroupNetworkProfile" } + }, + dnsConfig: { + serializedName: "properties.dnsConfig", + type: { + name: "Composite", + className: "DnsConfiguration" + } } } } diff --git a/packages/@azure/arm-containerinstance/package.json b/packages/@azure/arm-containerinstance/package.json index 7023329b16dd..cdb32edbf81f 100644 --- a/packages/@azure/arm-containerinstance/package.json +++ b/packages/@azure/arm-containerinstance/package.json @@ -4,8 +4,8 @@ "description": "ContainerInstanceManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.457", "tslib": "^1.9.3" }, "keywords": [ @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-containerinstance.js.map'\" -o ./dist/arm-containerinstance.min.js ./dist/arm-containerinstance.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-containerregistry/README.md b/packages/@azure/arm-containerregistry/README.md index 6f990da091ef..e39eeee50c4c 100644 --- a/packages/@azure/arm-containerregistry/README.md +++ b/packages/@azure/arm-containerregistry/README.md @@ -66,7 +66,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log('An error occurred:'); + console.log("An error occurred:"); console.error(err); }); }); diff --git a/packages/@azure/arm-containerregistry/lib/containerRegistryManagementClientContext.ts b/packages/@azure/arm-containerregistry/lib/containerRegistryManagementClientContext.ts index 7d3f0cd8ff58..7d16956f3d0f 100644 --- a/packages/@azure/arm-containerregistry/lib/containerRegistryManagementClientContext.ts +++ b/packages/@azure/arm-containerregistry/lib/containerRegistryManagementClientContext.ts @@ -16,15 +16,9 @@ const packageName = "@azure/arm-containerregistry"; const packageVersion = "1.0.0"; export class ContainerRegistryManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; - /** * Initializes a new instance of the ContainerRegistryManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. @@ -42,6 +36,11 @@ export class ContainerRegistryManagementClientContext extends msRestAzure.AzureS if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.acceptLanguage = 'en-US'; @@ -51,7 +50,6 @@ export class ContainerRegistryManagementClientContext extends msRestAzure.AzureS this.credentials = credentials; this.subscriptionId = subscriptionId; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-containerregistry/lib/models/index.ts b/packages/@azure/arm-containerregistry/lib/models/index.ts index 97e9c800d9bd..01f73c6dc500 100644 --- a/packages/@azure/arm-containerregistry/lib/models/index.ts +++ b/packages/@azure/arm-containerregistry/lib/models/index.ts @@ -1399,6 +1399,11 @@ export interface TaskStepProperties { * context for the task step. */ contextPath?: string; + /** + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. + */ + contextAccessToken?: string; } /** @@ -1630,6 +1635,11 @@ export interface TaskStepUpdateParameters { * context for the task step. */ contextPath?: string; + /** + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. + */ + contextAccessToken?: string; } /** @@ -2076,6 +2086,11 @@ export interface DockerBuildStep { * context for the task step. */ contextPath?: string; + /** + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. + */ + contextAccessToken?: string; /** * @member {string[]} [imageNames] The fully qualified image names including * the repository and tag. @@ -2127,6 +2142,11 @@ export interface FileTaskStep { * context for the task step. */ contextPath?: string; + /** + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. + */ + contextAccessToken?: string; /** * @member {string} taskFilePath The task template/definition file path * relative to the source context. @@ -2167,6 +2187,11 @@ export interface EncodedTaskStep { * context for the task step. */ contextPath?: string; + /** + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. + */ + contextAccessToken?: string; /** * @member {string} encodedTaskContent Base64 encoded value of the * template/definition file content. @@ -2200,6 +2225,11 @@ export interface DockerBuildStepUpdateParameters { * context for the task step. */ contextPath?: string; + /** + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. + */ + contextAccessToken?: string; /** * @member {string[]} [imageNames] The fully qualified image names including * the repository and tag. @@ -2243,6 +2273,11 @@ export interface FileTaskStepUpdateParameters { * context for the task step. */ contextPath?: string; + /** + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. + */ + contextAccessToken?: string; /** * @member {string} [taskFilePath] The task template/definition file path * relative to the source context. @@ -2276,6 +2311,11 @@ export interface EncodedTaskStepUpdateParameters { * context for the task step. */ contextPath?: string; + /** + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. + */ + contextAccessToken?: string; /** * @member {string} [encodedTaskContent] Base64 encoded value of the * template/definition file content. diff --git a/packages/@azure/arm-containerregistry/lib/models/mappers.ts b/packages/@azure/arm-containerregistry/lib/models/mappers.ts index 67e8b6feab02..7ba832ea9e22 100644 --- a/packages/@azure/arm-containerregistry/lib/models/mappers.ts +++ b/packages/@azure/arm-containerregistry/lib/models/mappers.ts @@ -1819,6 +1819,12 @@ export const TaskStepProperties: msRest.CompositeMapper = { name: "String" } }, + contextAccessToken: { + serializedName: "contextAccessToken", + type: { + name: "String" + } + }, type: { required: true, serializedName: "type", @@ -2133,6 +2139,12 @@ export const TaskStepUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + contextAccessToken: { + serializedName: "contextAccessToken", + type: { + name: "String" + } + }, type: { required: true, serializedName: "type", diff --git a/packages/@azure/arm-containerregistry/package.json b/packages/@azure/arm-containerregistry/package.json index 048d0b921792..96f25c8d27d3 100644 --- a/packages/@azure/arm-containerregistry/package.json +++ b/packages/@azure/arm-containerregistry/package.json @@ -4,8 +4,8 @@ "description": "ContainerRegistryManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.457", "tslib": "^1.9.3" }, "keywords": [ @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-containerregistry.js.map'\" -o ./dist/arm-containerregistry.min.js ./dist/arm-containerregistry.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 6e4b755a16fe..594169f396a4 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -17,7 +17,6 @@ const packageVersion = "1.0.0-preview"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; - apiVersion?: string; subscriptionId: string; /** @@ -44,7 +43,6 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC super(credentials, options); - this.apiVersion = '2018-07-15-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index 978c6652c980..308b8d96c728 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -7320,350 +7320,811 @@ export interface FileList extends Array { /** * Defines values for CommandState. - * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', 'Failed' + * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + * 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: CommandState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type CommandState = 'Unknown' | 'Accepted' | 'Running' | 'Succeeded' | 'Failed'; +export enum CommandState { + Unknown = 'Unknown', + Accepted = 'Accepted', + Running = 'Running', + Succeeded = 'Succeeded', + Failed = 'Failed', +} /** * Defines values for SqlSourcePlatform. * Possible values include: 'SqlOnPrem' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SqlSourcePlatform = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type SqlSourcePlatform = 'SqlOnPrem'; +export enum SqlSourcePlatform { + SqlOnPrem = 'SqlOnPrem', +} /** * Defines values for AuthenticationType. - * Possible values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', - * 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' + * Possible values include: 'None', 'WindowsAuthentication', + * 'SqlAuthentication', 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: AuthenticationType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type AuthenticationType = 'None' | 'WindowsAuthentication' | 'SqlAuthentication' | 'ActiveDirectoryIntegrated' | 'ActiveDirectoryPassword'; +export enum AuthenticationType { + None = 'None', + WindowsAuthentication = 'WindowsAuthentication', + SqlAuthentication = 'SqlAuthentication', + ActiveDirectoryIntegrated = 'ActiveDirectoryIntegrated', + ActiveDirectoryPassword = 'ActiveDirectoryPassword', +} /** * Defines values for MongoDbErrorType. * Possible values include: 'Error', 'ValidationError', 'Warning' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbErrorType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MongoDbErrorType = 'Error' | 'ValidationError' | 'Warning'; +export enum MongoDbErrorType { + Error = 'Error', + ValidationError = 'ValidationError', + Warning = 'Warning', +} /** * Defines values for MongoDbMigrationState. - * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', - * 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' + * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', + * 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', + * 'Complete', 'Canceled', 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbMigrationState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MongoDbMigrationState = 'NotStarted' | 'ValidatingInput' | 'Initializing' | 'Restarting' | 'Copying' | 'InitialReplay' | 'Replaying' | 'Finalizing' | 'Complete' | 'Canceled' | 'Failed'; +export enum MongoDbMigrationState { + NotStarted = 'NotStarted', + ValidatingInput = 'ValidatingInput', + Initializing = 'Initializing', + Restarting = 'Restarting', + Copying = 'Copying', + InitialReplay = 'InitialReplay', + Replaying = 'Replaying', + Finalizing = 'Finalizing', + Complete = 'Complete', + Canceled = 'Canceled', + Failed = 'Failed', +} /** * Defines values for MongoDbShardKeyOrder. * Possible values include: 'Forward', 'Reverse', 'Hashed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbShardKeyOrder = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MongoDbShardKeyOrder = 'Forward' | 'Reverse' | 'Hashed'; +export enum MongoDbShardKeyOrder { + Forward = 'Forward', + Reverse = 'Reverse', + Hashed = 'Hashed', +} /** * Defines values for MongoDbReplication. * Possible values include: 'Disabled', 'OneTime', 'Continuous' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbReplication = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MongoDbReplication = 'Disabled' | 'OneTime' | 'Continuous'; +export enum MongoDbReplication { + Disabled = 'Disabled', + OneTime = 'OneTime', + Continuous = 'Continuous', +} /** * Defines values for BackupType. - * Possible values include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', - * 'DifferentialFile', 'Partial', 'DifferentialPartial' + * Possible values include: 'Database', 'TransactionLog', 'File', + * 'DifferentialDatabase', 'DifferentialFile', 'Partial', 'DifferentialPartial' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: BackupType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type BackupType = 'Database' | 'TransactionLog' | 'File' | 'DifferentialDatabase' | 'DifferentialFile' | 'Partial' | 'DifferentialPartial'; +export enum BackupType { + Database = 'Database', + TransactionLog = 'TransactionLog', + File = 'File', + DifferentialDatabase = 'DifferentialDatabase', + DifferentialFile = 'DifferentialFile', + Partial = 'Partial', + DifferentialPartial = 'DifferentialPartial', +} /** * Defines values for BackupMode. * Possible values include: 'CreateBackup', 'ExistingBackup' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: BackupMode = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type BackupMode = 'CreateBackup' | 'ExistingBackup'; +export enum BackupMode { + CreateBackup = 'CreateBackup', + ExistingBackup = 'ExistingBackup', +} /** * Defines values for SyncTableMigrationState. - * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED' + * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', + * 'CANCELED', 'ERROR', 'FAILED' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SyncTableMigrationState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type SyncTableMigrationState = 'BEFORE_LOAD' | 'FULL_LOAD' | 'COMPLETED' | 'CANCELED' | 'ERROR' | 'FAILED'; +export enum SyncTableMigrationState { + BEFORELOAD = 'BEFORE_LOAD', + FULLLOAD = 'FULL_LOAD', + COMPLETED = 'COMPLETED', + CANCELED = 'CANCELED', + ERROR = 'ERROR', + FAILED = 'FAILED', +} /** * Defines values for SyncDatabaseMigrationReportingState. - * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', - * 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED' + * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', + * 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', + * 'CANCELLING', 'CANCELLED', 'FAILED' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SyncDatabaseMigrationReportingState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type SyncDatabaseMigrationReportingState = 'UNDEFINED' | 'CONFIGURING' | 'INITIALIAZING' | 'STARTING' | 'RUNNING' | 'READY_TO_COMPLETE' | 'COMPLETING' | 'COMPLETE' | 'CANCELLING' | 'CANCELLED' | 'FAILED'; +export enum SyncDatabaseMigrationReportingState { + UNDEFINED = 'UNDEFINED', + CONFIGURING = 'CONFIGURING', + INITIALIAZING = 'INITIALIAZING', + STARTING = 'STARTING', + RUNNING = 'RUNNING', + READYTOCOMPLETE = 'READY_TO_COMPLETE', + COMPLETING = 'COMPLETING', + COMPLETE = 'COMPLETE', + CANCELLING = 'CANCELLING', + CANCELLED = 'CANCELLED', + FAILED = 'FAILED', +} /** * Defines values for ValidationStatus. - * Possible values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', 'Completed', - * 'CompletedWithIssues', 'Stopped', 'Failed' + * Possible values include: 'Default', 'NotStarted', 'Initialized', + * 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ValidationStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ValidationStatus = 'Default' | 'NotStarted' | 'Initialized' | 'InProgress' | 'Completed' | 'CompletedWithIssues' | 'Stopped' | 'Failed'; +export enum ValidationStatus { + Default = 'Default', + NotStarted = 'NotStarted', + Initialized = 'Initialized', + InProgress = 'InProgress', + Completed = 'Completed', + CompletedWithIssues = 'CompletedWithIssues', + Stopped = 'Stopped', + Failed = 'Failed', +} /** * Defines values for Severity. * Possible values include: 'Message', 'Warning', 'Error' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: Severity = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type Severity = 'Message' | 'Warning' | 'Error'; +export enum Severity { + Message = 'Message', + Warning = 'Warning', + Error = 'Error', +} /** * Defines values for UpdateActionType. - * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' + * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', + * 'AddedOnTarget' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: UpdateActionType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type UpdateActionType = 'DeletedOnTarget' | 'ChangedOnTarget' | 'AddedOnTarget'; +export enum UpdateActionType { + DeletedOnTarget = 'DeletedOnTarget', + ChangedOnTarget = 'ChangedOnTarget', + AddedOnTarget = 'AddedOnTarget', +} /** * Defines values for ObjectType. - * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' + * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', + * 'Function' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ObjectType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ObjectType = 'StoredProcedures' | 'Table' | 'User' | 'View' | 'Function'; +export enum ObjectType { + StoredProcedures = 'StoredProcedures', + Table = 'Table', + User = 'User', + View = 'View', + Function = 'Function', +} /** * Defines values for MigrationState. - * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', - * 'Stopped' + * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + * 'Completed', 'Skipped', 'Stopped' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MigrationState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MigrationState = 'None' | 'InProgress' | 'Failed' | 'Warning' | 'Completed' | 'Skipped' | 'Stopped'; +export enum MigrationState { + None = 'None', + InProgress = 'InProgress', + Failed = 'Failed', + Warning = 'Warning', + Completed = 'Completed', + Skipped = 'Skipped', + Stopped = 'Stopped', +} /** * Defines values for DatabaseMigrationStage. - * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' + * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', + * 'Restore', 'Completed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DatabaseMigrationStage = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type DatabaseMigrationStage = 'None' | 'Initialize' | 'Backup' | 'FileCopy' | 'Restore' | 'Completed'; +export enum DatabaseMigrationStage { + None = 'None', + Initialize = 'Initialize', + Backup = 'Backup', + FileCopy = 'FileCopy', + Restore = 'Restore', + Completed = 'Completed', +} /** * Defines values for MigrationStatus. - * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', - * 'Configured', 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' + * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', + * 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped', 'Completed', + * 'CompletedWithWarnings' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MigrationStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MigrationStatus = 'Default' | 'Connecting' | 'SourceAndTargetSelected' | 'SelectLogins' | 'Configured' | 'Running' | 'Error' | 'Stopped' | 'Completed' | 'CompletedWithWarnings'; +export enum MigrationStatus { + Default = 'Default', + Connecting = 'Connecting', + SourceAndTargetSelected = 'SourceAndTargetSelected', + SelectLogins = 'SelectLogins', + Configured = 'Configured', + Running = 'Running', + Error = 'Error', + Stopped = 'Stopped', + Completed = 'Completed', + CompletedWithWarnings = 'CompletedWithWarnings', +} /** * Defines values for LoginMigrationStage. - * Possible values include: 'None', 'Initialize', 'LoginMigration', 'EstablishUserMapping', - * 'AssignRoleMembership', 'AssignRoleOwnership', 'EstablishServerPermissions', - * 'EstablishObjectPermissions', 'Completed' + * Possible values include: 'None', 'Initialize', 'LoginMigration', + * 'EstablishUserMapping', 'AssignRoleMembership', 'AssignRoleOwnership', + * 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: LoginMigrationStage = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type LoginMigrationStage = 'None' | 'Initialize' | 'LoginMigration' | 'EstablishUserMapping' | 'AssignRoleMembership' | 'AssignRoleOwnership' | 'EstablishServerPermissions' | 'EstablishObjectPermissions' | 'Completed'; +export enum LoginMigrationStage { + None = 'None', + Initialize = 'Initialize', + LoginMigration = 'LoginMigration', + EstablishUserMapping = 'EstablishUserMapping', + AssignRoleMembership = 'AssignRoleMembership', + AssignRoleOwnership = 'AssignRoleOwnership', + EstablishServerPermissions = 'EstablishServerPermissions', + EstablishObjectPermissions = 'EstablishObjectPermissions', + Completed = 'Completed', +} /** * Defines values for LoginType. - * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', - * 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' + * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', + * 'Certificate', 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: LoginType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type LoginType = 'WindowsUser' | 'WindowsGroup' | 'SqlLogin' | 'Certificate' | 'AsymmetricKey' | 'ExternalUser' | 'ExternalGroup'; +export enum LoginType { + WindowsUser = 'WindowsUser', + WindowsGroup = 'WindowsGroup', + SqlLogin = 'SqlLogin', + Certificate = 'Certificate', + AsymmetricKey = 'AsymmetricKey', + ExternalUser = 'ExternalUser', + ExternalGroup = 'ExternalGroup', +} /** * Defines values for DatabaseState. - * Possible values include: 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', - * 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' + * Possible values include: 'Online', 'Restoring', 'Recovering', + * 'RecoveryPending', 'Suspect', 'Emergency', 'Offline', 'Copying', + * 'OfflineSecondary' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DatabaseState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type DatabaseState = 'Online' | 'Restoring' | 'Recovering' | 'RecoveryPending' | 'Suspect' | 'Emergency' | 'Offline' | 'Copying' | 'OfflineSecondary'; +export enum DatabaseState { + Online = 'Online', + Restoring = 'Restoring', + Recovering = 'Recovering', + RecoveryPending = 'RecoveryPending', + Suspect = 'Suspect', + Emergency = 'Emergency', + Offline = 'Offline', + Copying = 'Copying', + OfflineSecondary = 'OfflineSecondary', +} /** * Defines values for DatabaseCompatLevel. - * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', 'CompatLevel110', - * 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' + * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', + * 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DatabaseCompatLevel = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type DatabaseCompatLevel = 'CompatLevel80' | 'CompatLevel90' | 'CompatLevel100' | 'CompatLevel110' | 'CompatLevel120' | 'CompatLevel130' | 'CompatLevel140'; +export enum DatabaseCompatLevel { + CompatLevel80 = 'CompatLevel80', + CompatLevel90 = 'CompatLevel90', + CompatLevel100 = 'CompatLevel100', + CompatLevel110 = 'CompatLevel110', + CompatLevel120 = 'CompatLevel120', + CompatLevel130 = 'CompatLevel130', + CompatLevel140 = 'CompatLevel140', +} /** * Defines values for DatabaseFileType. - * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', 'Fulltext' + * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', + * 'Fulltext' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DatabaseFileType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type DatabaseFileType = 'Rows' | 'Log' | 'Filestream' | 'NotSupported' | 'Fulltext'; +export enum DatabaseFileType { + Rows = 'Rows', + Log = 'Log', + Filestream = 'Filestream', + NotSupported = 'NotSupported', + Fulltext = 'Fulltext', +} /** * Defines values for ServerLevelPermissionsGroup. * Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB', * 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServerLevelPermissionsGroup = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ServerLevelPermissionsGroup = 'Default' | 'MigrationFromSqlServerToAzureDB' | 'MigrationFromSqlServerToAzureMI' | 'MigrationFromMySQLToAzureDBForMySQL'; +export enum ServerLevelPermissionsGroup { + Default = 'Default', + MigrationFromSqlServerToAzureDB = 'MigrationFromSqlServerToAzureDB', + MigrationFromSqlServerToAzureMI = 'MigrationFromSqlServerToAzureMI', + MigrationFromMySQLToAzureDBForMySQL = 'MigrationFromMySQLToAzureDBForMySQL', +} /** * Defines values for MongoDbClusterType. * Possible values include: 'BlobContainer', 'CosmosDb', 'MongoDb' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbClusterType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MongoDbClusterType = 'BlobContainer' | 'CosmosDb' | 'MongoDb'; +export enum MongoDbClusterType { + BlobContainer = 'BlobContainer', + CosmosDb = 'CosmosDb', + MongoDb = 'MongoDb', +} /** * Defines values for TaskState. - * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', 'Failed', - * 'FailedInputValidation', 'Faulted' + * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + * 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: TaskState = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type TaskState = 'Unknown' | 'Queued' | 'Running' | 'Canceled' | 'Succeeded' | 'Failed' | 'FailedInputValidation' | 'Faulted'; +export enum TaskState { + Unknown = 'Unknown', + Queued = 'Queued', + Running = 'Running', + Canceled = 'Canceled', + Succeeded = 'Succeeded', + Failed = 'Failed', + FailedInputValidation = 'FailedInputValidation', + Faulted = 'Faulted', +} /** * Defines values for ServiceProvisioningState. - * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', 'Stopping', 'Starting', - * 'FailedToStart', 'FailedToStop', 'Succeeded', 'Failed' + * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', + * 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', + * 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServiceProvisioningState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ServiceProvisioningState = 'Accepted' | 'Deleting' | 'Deploying' | 'Stopped' | 'Stopping' | 'Starting' | 'FailedToStart' | 'FailedToStop' | 'Succeeded' | 'Failed'; +export enum ServiceProvisioningState { + Accepted = 'Accepted', + Deleting = 'Deleting', + Deploying = 'Deploying', + Stopped = 'Stopped', + Stopping = 'Stopping', + Starting = 'Starting', + FailedToStart = 'FailedToStart', + FailedToStop = 'FailedToStop', + Succeeded = 'Succeeded', + Failed = 'Failed', +} /** * Defines values for ProjectTargetPlatform. - * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', 'AzureDbForPostgreSql', 'MongoDb', - * 'Unknown' + * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', + * 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProjectTargetPlatform = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ProjectTargetPlatform = 'SQLDB' | 'SQLMI' | 'AzureDbForMySql' | 'AzureDbForPostgreSql' | 'MongoDb' | 'Unknown'; +export enum ProjectTargetPlatform { + SQLDB = 'SQLDB', + SQLMI = 'SQLMI', + AzureDbForMySql = 'AzureDbForMySql', + AzureDbForPostgreSql = 'AzureDbForPostgreSql', + MongoDb = 'MongoDb', + Unknown = 'Unknown', +} /** * Defines values for ProjectSourcePlatform. * Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProjectSourcePlatform = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ProjectSourcePlatform = 'SQL' | 'MySQL' | 'PostgreSql' | 'MongoDb' | 'Unknown'; +export enum ProjectSourcePlatform { + SQL = 'SQL', + MySQL = 'MySQL', + PostgreSql = 'PostgreSql', + MongoDb = 'MongoDb', + Unknown = 'Unknown', +} /** * Defines values for ProjectProvisioningState. * Possible values include: 'Deleting', 'Succeeded' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProjectProvisioningState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ProjectProvisioningState = 'Deleting' | 'Succeeded'; +export enum ProjectProvisioningState { + Deleting = 'Deleting', + Succeeded = 'Succeeded', +} /** * Defines values for NameCheckFailureReason. * Possible values include: 'AlreadyExists', 'Invalid' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: NameCheckFailureReason = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type NameCheckFailureReason = 'AlreadyExists' | 'Invalid'; +export enum NameCheckFailureReason { + AlreadyExists = 'AlreadyExists', + Invalid = 'Invalid', +} /** * Defines values for ServiceScalability. * Possible values include: 'none', 'manual', 'automatic' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServiceScalability = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ServiceScalability = 'none' | 'manual' | 'automatic'; +export enum ServiceScalability { + None = 'none', + Manual = 'manual', + Automatic = 'automatic', +} /** * Defines values for ResourceSkuRestrictionsType. * Possible values include: 'location' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResourceSkuRestrictionsType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ResourceSkuRestrictionsType = 'location'; +export enum ResourceSkuRestrictionsType { + Location = 'location', +} /** * Defines values for ResourceSkuRestrictionsReasonCode. * Possible values include: 'QuotaId', 'NotAvailableForSubscription' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResourceSkuRestrictionsReasonCode = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; +export enum ResourceSkuRestrictionsReasonCode { + QuotaId = 'QuotaId', + NotAvailableForSubscription = 'NotAvailableForSubscription', +} /** * Defines values for ResourceSkuCapacityScaleType. * Possible values include: 'Automatic', 'Manual', 'None' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResourceSkuCapacityScaleType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; +export enum ResourceSkuCapacityScaleType { + Automatic = 'Automatic', + Manual = 'Manual', + None = 'None', +} /** * Defines values for MySqlTargetPlatformType. * Possible values include: 'AzureDbForMySQL' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MySqlTargetPlatformType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MySqlTargetPlatformType = 'AzureDbForMySQL'; +export enum MySqlTargetPlatformType { + AzureDbForMySQL = 'AzureDbForMySQL', +} /** * Defines values for SchemaMigrationOption. * Possible values include: 'None', 'ExtractFromSource', 'UseStorageFile' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SchemaMigrationOption = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type SchemaMigrationOption = 'None' | 'ExtractFromSource' | 'UseStorageFile'; +export enum SchemaMigrationOption { + None = 'None', + ExtractFromSource = 'ExtractFromSource', + UseStorageFile = 'UseStorageFile', +} /** * Defines values for SchemaMigrationStage. - * Possible values include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', - * 'DownloadingScript', 'GeneratingScript', 'UploadingScript', 'DeployingSchema', 'Completed', - * 'CompletedWithWarnings', 'Failed' + * Possible values include: 'NotStarted', 'ValidatingInputs', + * 'CollectingObjects', 'DownloadingScript', 'GeneratingScript', + * 'UploadingScript', 'DeployingSchema', 'Completed', 'CompletedWithWarnings', + * 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SchemaMigrationStage = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type SchemaMigrationStage = 'NotStarted' | 'ValidatingInputs' | 'CollectingObjects' | 'DownloadingScript' | 'GeneratingScript' | 'UploadingScript' | 'DeployingSchema' | 'Completed' | 'CompletedWithWarnings' | 'Failed'; +export enum SchemaMigrationStage { + NotStarted = 'NotStarted', + ValidatingInputs = 'ValidatingInputs', + CollectingObjects = 'CollectingObjects', + DownloadingScript = 'DownloadingScript', + GeneratingScript = 'GeneratingScript', + UploadingScript = 'UploadingScript', + DeployingSchema = 'DeployingSchema', + Completed = 'Completed', + CompletedWithWarnings = 'CompletedWithWarnings', + Failed = 'Failed', +} /** * Defines values for DataMigrationResultCode. * Possible values include: 'Initial', 'Completed', 'ObjectNotExistsInSource', * 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DataMigrationResultCode = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type DataMigrationResultCode = 'Initial' | 'Completed' | 'ObjectNotExistsInSource' | 'ObjectNotExistsInTarget' | 'TargetObjectIsInaccessible' | 'FatalError'; +export enum DataMigrationResultCode { + Initial = 'Initial', + Completed = 'Completed', + ObjectNotExistsInSource = 'ObjectNotExistsInSource', + ObjectNotExistsInTarget = 'ObjectNotExistsInTarget', + TargetObjectIsInaccessible = 'TargetObjectIsInaccessible', + FatalError = 'FatalError', +} /** * Defines values for ErrorType. * Possible values include: 'Default', 'Warning', 'Error' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ErrorType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ErrorType = 'Default' | 'Warning' | 'Error'; +export enum ErrorType { + Default = 'Default', + Warning = 'Warning', + Error = 'Error', +} /** * Defines values for ResultType. * Possible values include: 'Migration', 'Database', 'Collection' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResultType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ResultType = 'Migration' | 'Database' | 'Collection'; +export enum ResultType { + Migration = 'Migration', + Database = 'Database', + Collection = 'Collection', +} /** * Contains response data for the listSkus operation. diff --git a/packages/@azure/arm-datamigration/lib/models/parameters.ts b/packages/@azure/arm-datamigration/lib/models/parameters.ts index 7aeaceeadc6d..edad9643d324 100644 --- a/packages/@azure/arm-datamigration/lib/models/parameters.ts +++ b/packages/@azure/arm-datamigration/lib/models/parameters.ts @@ -24,7 +24,9 @@ export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, + isConstant: true, serializedName: "api-version", + defaultValue: '2018-07-15-preview', type: { name: "String" } diff --git a/packages/@azure/arm-datamigration/lib/operations/files.ts b/packages/@azure/arm-datamigration/lib/operations/files.ts index f05767ce3cf2..dfd99f84b64a 100644 --- a/packages/@azure/arm-datamigration/lib/operations/files.ts +++ b/packages/@azure/arm-datamigration/lib/operations/files.ts @@ -52,7 +52,7 @@ export class Files { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -93,7 +93,7 @@ export class Files { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Files { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -179,7 +179,7 @@ export class Files { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -223,7 +223,7 @@ export class Files { * @param callback The callback */ update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -266,7 +266,7 @@ export class Files { * @param callback The callback */ read(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -307,7 +307,7 @@ export class Files { * @param callback The callback */ readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -340,7 +340,7 @@ export class Files { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/operations.ts b/packages/@azure/arm-datamigration/lib/operations/operations.ts index e22bb1ea9155..4ea11a119716 100644 --- a/packages/@azure/arm-datamigration/lib/operations/operations.ts +++ b/packages/@azure/arm-datamigration/lib/operations/operations.ts @@ -42,7 +42,7 @@ export class Operations { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class Operations { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/projects.ts b/packages/@azure/arm-datamigration/lib/operations/projects.ts index caae446b34a6..f2c8dd87f14d 100644 --- a/packages/@azure/arm-datamigration/lib/operations/projects.ts +++ b/packages/@azure/arm-datamigration/lib/operations/projects.ts @@ -49,7 +49,7 @@ export class Projects { * @param callback The callback */ list(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -89,7 +89,7 @@ export class Projects { * @param callback The callback */ createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -128,7 +128,7 @@ export class Projects { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -166,7 +166,7 @@ export class Projects { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, options: Models.ProjectsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -207,7 +207,7 @@ export class Projects { * @param callback The callback */ update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -240,7 +240,7 @@ export class Projects { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts index c8b3a6952ff9..c9acfb62b336 100644 --- a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts +++ b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts @@ -42,7 +42,7 @@ export class ResourceSkus { * @param callback The callback */ listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSkus(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class ResourceSkus { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/services.ts b/packages/@azure/arm-datamigration/lib/operations/services.ts index 1a7c813a75ec..3faa0ab51e8e 100644 --- a/packages/@azure/arm-datamigration/lib/operations/services.ts +++ b/packages/@azure/arm-datamigration/lib/operations/services.ts @@ -71,7 +71,7 @@ export class Services { * @param callback The callback */ get(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Services { * @param callback The callback */ checkStatus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -200,7 +200,7 @@ export class Services { * @param callback The callback */ listSkus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -236,7 +236,7 @@ export class Services { * @param callback The callback */ checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -268,7 +268,7 @@ export class Services { * @param callback The callback */ listByResourceGroup(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -295,7 +295,7 @@ export class Services { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -326,7 +326,7 @@ export class Services { * @param callback The callback */ checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -470,7 +470,7 @@ export class Services { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -500,7 +500,7 @@ export class Services { * @param callback The callback */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -530,7 +530,7 @@ export class Services { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/tasks.ts b/packages/@azure/arm-datamigration/lib/operations/tasks.ts index 02e8d3d519d6..5ae49940480b 100644 --- a/packages/@azure/arm-datamigration/lib/operations/tasks.ts +++ b/packages/@azure/arm-datamigration/lib/operations/tasks.ts @@ -53,7 +53,7 @@ export class Tasks { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: Models.TasksListOptionalParams, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -98,7 +98,7 @@ export class Tasks { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -141,7 +141,7 @@ export class Tasks { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksGetOptionalParams, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -183,7 +183,7 @@ export class Tasks { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -229,7 +229,7 @@ export class Tasks { * @param callback The callback */ update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -272,7 +272,7 @@ export class Tasks { * @param callback The callback */ cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -317,7 +317,7 @@ export class Tasks { * @param callback The callback */ command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -352,7 +352,7 @@ export class Tasks { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/usages.ts b/packages/@azure/arm-datamigration/lib/operations/usages.ts index 34e58611e057..e7c873c543f4 100644 --- a/packages/@azure/arm-datamigration/lib/operations/usages.ts +++ b/packages/@azure/arm-datamigration/lib/operations/usages.ts @@ -46,7 +46,7 @@ export class Usages { * @param callback The callback */ list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(location: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -76,7 +76,7 @@ export class Usages { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index f81c72891c21..3ae188c7e9c6 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -5,7 +5,7 @@ "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.460", + "ms-rest-js": "^1.0.457", "tslib": "^1.9.3" }, "keywords": [ diff --git a/packages/@azure/arm-domainservices/LICENSE.txt b/packages/@azure/arm-domainservices/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-domainservices/LICENSE.txt +++ b/packages/@azure/arm-domainservices/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-domainservices/README.md b/packages/@azure/arm-domainservices/README.md index cea8815a3e94..123c9fbf0066 100644 --- a/packages/@azure/arm-domainservices/README.md +++ b/packages/@azure/arm-domainservices/README.md @@ -1,77 +1,77 @@ -# Azure DomainservicesManagementClient SDK for JavaScript -This package contains an isomorphic SDK for DomainservicesManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-domainservices -``` - - -## How to use - -### nodejs - Authentication, client creation and list domainServiceOperations as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { DomainservicesManagementClient, DomainservicesManagementModels, DomainservicesManagementMappers } from "@azure/arm-domainservices"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new DomainservicesManagementClient(creds, subscriptionId); - client.domainServiceOperations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list domainServiceOperations as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-domainservices sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure DomainservicesManagementClient SDK for JavaScript +This package contains an isomorphic SDK for DomainservicesManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-domainservices +``` + + +## How to use + +### nodejs - Authentication, client creation and list domainServiceOperations as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { DomainservicesManagementClient, DomainservicesManagementModels, DomainservicesManagementMappers } from "@azure/arm-domainservices"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DomainservicesManagementClient(creds, subscriptionId); + client.domainServiceOperations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list domainServiceOperations as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-domainservices sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-domainservices/lib/domainservicesManagementClientContext.ts b/packages/@azure/arm-domainservices/lib/domainservicesManagementClientContext.ts index 1c9d09ec6ab0..4cc39a6b92a9 100644 --- a/packages/@azure/arm-domainservices/lib/domainservicesManagementClientContext.ts +++ b/packages/@azure/arm-domainservices/lib/domainservicesManagementClientContext.ts @@ -16,16 +16,9 @@ const packageName = "@azure/arm-domainservices"; const packageVersion = "1.0.0"; export class DomainservicesManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - - apiVersion: string; - - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; + apiVersion?: string; /** * Initializes a new instance of the DomainservicesManagementClient class. @@ -45,6 +38,11 @@ export class DomainservicesManagementClientContext extends msRestAzure.AzureServ if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.apiVersion = '2017-06-01'; @@ -55,7 +53,6 @@ export class DomainservicesManagementClientContext extends msRestAzure.AzureServ this.credentials = credentials; this.subscriptionId = subscriptionId; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-domainservices/lib/models/domainServicesMappers.ts b/packages/@azure/arm-domainservices/lib/models/domainServicesMappers.ts index a8707785e62b..fae4820d74b3 100644 --- a/packages/@azure/arm-domainservices/lib/models/domainServicesMappers.ts +++ b/packages/@azure/arm-domainservices/lib/models/domainServicesMappers.ts @@ -18,8 +18,6 @@ export { HealthAlert, NotificationSettings, DomainSecuritySettings, - CloudError, - DomainServiceProperties, - DomainServicePatchProperties + CloudError } from "../models/mappers"; diff --git a/packages/@azure/arm-domainservices/lib/models/index.ts b/packages/@azure/arm-domainservices/lib/models/index.ts index 51bcadf22349..86c236b5453e 100644 --- a/packages/@azure/arm-domainservices/lib/models/index.ts +++ b/packages/@azure/arm-domainservices/lib/models/index.ts @@ -41,9 +41,9 @@ export interface Resource extends BaseResource { */ readonly type?: string; /** - * @member {string} location Resource location + * @member {string} [location] Resource location */ - location: string; + location?: string; /** * @member {{ [propertyName: string]: string }} [tags] Resource tags */ @@ -239,95 +239,6 @@ export interface DomainSecuritySettings { syncNtlmPasswords?: SyncNtlmPasswords; } -/** - * @interface - * An interface representing DomainServiceProperties. - * Properties of the Domain Service. - * - */ -export interface DomainServiceProperties { - /** - * @member {string} [tenantId] Azure Active Directory tenant id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly tenantId?: string; - /** - * @member {string} [domainName] The name of the Azure domain that the user - * would like to deploy Domain Services to. - */ - domainName?: string; - /** - * @member {string} [vnetSiteId] Virtual network site id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly vnetSiteId?: string; - /** - * @member {string} [subnetId] The name of the virtual network that Domain - * Services will be deployed on. The id of the subnet that Domain Services - * will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. - */ - subnetId?: string; - /** - * @member {LdapsSettings} [ldapsSettings] Secure LDAP Settings - */ - ldapsSettings?: LdapsSettings; - /** - * @member {Date} [healthLastEvaluated] Last domain evaluation run DateTime - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly healthLastEvaluated?: Date; - /** - * @member {HealthMonitor[]} [healthMonitors] List of Domain Health Monitors - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly healthMonitors?: HealthMonitor[]; - /** - * @member {HealthAlert[]} [healthAlerts] List of Domain Health Alerts - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly healthAlerts?: HealthAlert[]; - /** - * @member {NotificationSettings} [notificationSettings] Notification - * Settings - */ - notificationSettings?: NotificationSettings; - /** - * @member {DomainSecuritySettings} [domainSecuritySettings] DomainSecurity - * Settings - */ - domainSecuritySettings?: DomainSecuritySettings; - /** - * @member {FilteredSync} [filteredSync] Enabled or Disabled flag to turn on - * Group-based filtered sync. Possible values include: 'Enabled', 'Disabled' - */ - filteredSync?: FilteredSync; - /** - * @member {string[]} [domainControllerIpAddress] List of Domain Controller - * IP Address - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly domainControllerIpAddress?: string[]; - /** - * @member {string} [serviceStatus] Status of Domain Service instance - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serviceStatus?: string; - /** - * @member {string} [provisioningState] the current deployment or - * provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; -} - /** * @interface * An interface representing DomainService. @@ -418,34 +329,6 @@ export interface DomainService extends Resource { readonly provisioningState?: string; } -/** - * @interface - * An interface representing DomainServicePatchProperties. - * Update Properties of the Domain Service. - * - */ -export interface DomainServicePatchProperties { - /** - * @member {LdapsSettings} [ldapsSettings] Secure LDAP Settings - */ - ldapsSettings?: LdapsSettings; - /** - * @member {NotificationSettings} [notificationSettings] Notification - * Settings - */ - notificationSettings?: NotificationSettings; - /** - * @member {DomainSecuritySettings} [domainSecuritySettings] DomainSecurity - * Settings - */ - domainSecuritySettings?: DomainSecuritySettings; - /** - * @member {FilteredSync} [filteredSync] Enabled or Disabled flag to turn on - * Group-based filtered sync. Possible values include: 'Enabled', 'Disabled' - */ - filteredSync?: FilteredSync; -} - /** * @interface * An interface representing OperationDisplayInfo. diff --git a/packages/@azure/arm-domainservices/lib/models/mappers.ts b/packages/@azure/arm-domainservices/lib/models/mappers.ts index ca05e57989b3..73235febacca 100644 --- a/packages/@azure/arm-domainservices/lib/models/mappers.ts +++ b/packages/@azure/arm-domainservices/lib/models/mappers.ts @@ -42,7 +42,6 @@ export const Resource: msRest.CompositeMapper = { } }, location: { - required: true, serializedName: "location", type: { name: "String" @@ -282,128 +281,6 @@ export const DomainSecuritySettings: msRest.CompositeMapper = { } }; -export const DomainServiceProperties: msRest.CompositeMapper = { - serializedName: "DomainServiceProperties", - type: { - name: "Composite", - className: "DomainServiceProperties", - modelProperties: { - tenantId: { - readOnly: true, - serializedName: "tenantId", - type: { - name: "String" - } - }, - domainName: { - serializedName: "domainName", - type: { - name: "String" - } - }, - vnetSiteId: { - readOnly: true, - serializedName: "vnetSiteId", - type: { - name: "String" - } - }, - subnetId: { - serializedName: "subnetId", - type: { - name: "String" - } - }, - ldapsSettings: { - serializedName: "ldapsSettings", - type: { - name: "Composite", - className: "LdapsSettings" - } - }, - healthLastEvaluated: { - readOnly: true, - serializedName: "healthLastEvaluated", - type: { - name: "DateTime" - } - }, - healthMonitors: { - readOnly: true, - serializedName: "healthMonitors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthMonitor" - } - } - } - }, - healthAlerts: { - readOnly: true, - serializedName: "healthAlerts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthAlert" - } - } - } - }, - notificationSettings: { - serializedName: "notificationSettings", - type: { - name: "Composite", - className: "NotificationSettings" - } - }, - domainSecuritySettings: { - serializedName: "domainSecuritySettings", - type: { - name: "Composite", - className: "DomainSecuritySettings" - } - }, - filteredSync: { - serializedName: "filteredSync", - type: { - name: "String" - } - }, - domainControllerIpAddress: { - readOnly: true, - serializedName: "domainControllerIpAddress", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - serviceStatus: { - readOnly: true, - serializedName: "serviceStatus", - type: { - name: "String" - } - }, - provisioningState: { - readOnly: true, - serializedName: "provisioningState", - type: { - name: "String" - } - } - } - } -}; - export const DomainService: msRest.CompositeMapper = { serializedName: "DomainService", type: { @@ -527,43 +404,6 @@ export const DomainService: msRest.CompositeMapper = { } }; -export const DomainServicePatchProperties: msRest.CompositeMapper = { - serializedName: "DomainServicePatchProperties", - type: { - name: "Composite", - className: "DomainServicePatchProperties", - modelProperties: { - ldapsSettings: { - serializedName: "ldapsSettings", - type: { - name: "Composite", - className: "LdapsSettings" - } - }, - notificationSettings: { - serializedName: "notificationSettings", - type: { - name: "Composite", - className: "NotificationSettings" - } - }, - domainSecuritySettings: { - serializedName: "domainSecuritySettings", - type: { - name: "Composite", - className: "DomainSecuritySettings" - } - }, - filteredSync: { - serializedName: "filteredSync", - type: { - name: "String" - } - } - } - } -}; - export const OperationDisplayInfo: msRest.CompositeMapper = { serializedName: "OperationDisplayInfo", type: { diff --git a/packages/@azure/arm-domainservices/lib/operations/domainServices.ts b/packages/@azure/arm-domainservices/lib/operations/domainServices.ts index 3aa01421cd24..05b06ec41d46 100644 --- a/packages/@azure/arm-domainservices/lib/operations/domainServices.ts +++ b/packages/@azure/arm-domainservices/lib/operations/domainServices.ts @@ -93,14 +93,13 @@ export class DomainServices { * @summary Create or Update Domain Service (PUT Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service in the specified subscription and - * resource group. - * @param properties Properties supplied to the Create or Update a Domain Service operation. + * @param domainServiceName The name of the domain service. + * @param domainService Properties supplied to the Create or Update a Domain Service operation. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, domainServiceName: string, properties: Models.DomainServiceProperties, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,domainServiceName,properties,options) + createOrUpdate(resourceGroupName: string, domainServiceName: string, domainService: Models.DomainService, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,domainServiceName,domainService,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -109,8 +108,7 @@ export class DomainServices { * @summary Get Domain Service (GET Resources) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service in the specified subscription and - * resource group. + * @param domainServiceName The name of the domain service. * @param [options] The optional parameters * @returns Promise */ @@ -118,16 +116,14 @@ export class DomainServices { /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service in the specified subscription and - * resource group. + * @param domainServiceName The name of the domain service. * @param callback The callback */ get(resourceGroupName: string, domainServiceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service in the specified subscription and - * resource group. + * @param domainServiceName The name of the domain service. * @param options The optional parameters * @param callback The callback */ @@ -148,8 +144,7 @@ export class DomainServices { * @summary Delete Domain Service (DELETE Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service in the specified subscription and - * resource group. + * @param domainServiceName The name of the domain service. * @param [options] The optional parameters * @returns Promise */ @@ -164,14 +159,13 @@ export class DomainServices { * @summary Update Domain Service (PATCH Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service in the specified subscription and - * resource group. - * @param properties Properties supplied to the Update a Domain Service operation. + * @param domainServiceName The name of the domain service. + * @param domainService Properties supplied to the Update a Domain Service operation. * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, domainServiceName: string, properties: Models.DomainServicePatchProperties, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,domainServiceName,properties,options) + update(resourceGroupName: string, domainServiceName: string, domainService: Models.DomainService, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,domainServiceName,domainService,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -182,18 +176,17 @@ export class DomainServices { * @summary Create or Update Domain Service (PUT Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service in the specified subscription and - * resource group. - * @param properties Properties supplied to the Create or Update a Domain Service operation. + * @param domainServiceName The name of the domain service. + * @param domainService Properties supplied to the Create or Update a Domain Service operation. * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, domainServiceName: string, properties: Models.DomainServiceProperties, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, domainServiceName: string, domainService: Models.DomainService, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, domainServiceName, - properties, + domainService, options }, beginCreateOrUpdateOperationSpec, @@ -205,8 +198,7 @@ export class DomainServices { * @summary Delete Domain Service (DELETE Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service in the specified subscription and - * resource group. + * @param domainServiceName The name of the domain service. * @param [options] The optional parameters * @returns Promise */ @@ -227,18 +219,17 @@ export class DomainServices { * @summary Update Domain Service (PATCH Resource) * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. - * @param domainServiceName The name of the domain service in the specified subscription and - * resource group. - * @param properties Properties supplied to the Update a Domain Service operation. + * @param domainServiceName The name of the domain service. + * @param domainService Properties supplied to the Update a Domain Service operation. * @param [options] The optional parameters * @returns Promise */ - beginUpdate(resourceGroupName: string, domainServiceName: string, properties: Models.DomainServicePatchProperties, options?: msRest.RequestOptionsBase): Promise { + beginUpdate(resourceGroupName: string, domainServiceName: string, domainService: Models.DomainService, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, domainServiceName, - properties, + domainService, options }, beginUpdateOperationSpec, @@ -395,9 +386,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "properties", + parameterPath: "domainService", mapper: { - ...Mappers.DomainServiceProperties, + ...Mappers.DomainService, required: true } }, @@ -459,9 +450,9 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "properties", + parameterPath: "domainService", mapper: { - ...Mappers.DomainServicePatchProperties, + ...Mappers.DomainService, required: true } }, diff --git a/packages/@azure/arm-domainservices/package.json b/packages/@azure/arm-domainservices/package.json index 1b0a546a52f8..4b6219bdf2c6 100644 --- a/packages/@azure/arm-domainservices/package.json +++ b/packages/@azure/arm-domainservices/package.json @@ -4,8 +4,8 @@ "description": "DomainservicesManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.457", "tslib": "^1.9.3" }, "keywords": [ @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-domainservices.js.map'\" -o ./dist/arm-domainservices.min.js ./dist/arm-domainservices.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-reservations/README.md b/packages/@azure/arm-reservations/README.md index 54391dd8d15c..7e8e5e5b7861 100644 --- a/packages/@azure/arm-reservations/README.md +++ b/packages/@azure/arm-reservations/README.md @@ -68,7 +68,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log('An error occurred:'); + console.log("An error occurred:"); console.error(err); }); }); diff --git a/packages/@azure/arm-reservations/lib/azureReservationAPIContext.ts b/packages/@azure/arm-reservations/lib/azureReservationAPIContext.ts index d5592c6d9b9f..0d9943e48649 100644 --- a/packages/@azure/arm-reservations/lib/azureReservationAPIContext.ts +++ b/packages/@azure/arm-reservations/lib/azureReservationAPIContext.ts @@ -16,14 +16,8 @@ const packageName = "@azure/arm-reservations"; const packageVersion = "1.0.0-preview"; export class AzureReservationAPIContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - - apiVersion: string; - - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; + apiVersion?: string; /** * Initializes a new instance of the AzureReservationAPI class. @@ -38,6 +32,11 @@ export class AzureReservationAPIContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.apiVersion = '2018-06-01'; @@ -47,7 +46,6 @@ export class AzureReservationAPIContext extends msRestAzure.AzureServiceClient { this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-reservations/lib/models/index.ts b/packages/@azure/arm-reservations/lib/models/index.ts index 07da8bbc2196..634d6f148b13 100644 --- a/packages/@azure/arm-reservations/lib/models/index.ts +++ b/packages/@azure/arm-reservations/lib/models/index.ts @@ -166,7 +166,8 @@ export interface ReservationMergeProperties { export interface ReservationProperties { /** * @member {ReservedResourceType} [reservedResourceType] Possible values - * include: 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb' + * include: 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb', + * 'RedHat' */ reservedResourceType?: ReservedResourceType; /** @@ -738,7 +739,7 @@ export enum ReservationTerm { /** * Defines values for ReservedResourceType. * Possible values include: 'VirtualMachines', 'SqlDatabases', 'SuseLinux', - * 'CosmosDb' + * 'CosmosDb', 'RedHat' * There could be more values for this enum apart from the ones defined here.If * you want to set a value that is not from the known values then you can do * the following: @@ -752,6 +753,7 @@ export enum ReservedResourceType { SqlDatabases = 'SqlDatabases', SuseLinux = 'SuseLinux', CosmosDb = 'CosmosDb', + RedHat = 'RedHat', } /** diff --git a/packages/@azure/arm-reservations/lib/operations/reservation.ts b/packages/@azure/arm-reservations/lib/operations/reservation.ts index 3bea53ad58ae..b06ff0375d98 100644 --- a/packages/@azure/arm-reservations/lib/operations/reservation.ts +++ b/packages/@azure/arm-reservations/lib/operations/reservation.ts @@ -29,10 +29,8 @@ export class Reservation { /** * Split a `Reservation` into two `Reservation`s with specified quantity distribution. - * * @summary Split the `Reservation`. * @param reservationOrderId Order Id of the reservation - * * @param body Information needed to Split a reservation item * @param [options] The optional parameters * @returns Promise @@ -47,7 +45,6 @@ export class Reservation { * must have same properties. * @summary Merges two `Reservation`s. * @param reservationOrderId Order Id of the reservation - * * @param body Information needed for commercial request for a reservation * @param [options] The optional parameters * @returns Promise @@ -61,20 +58,17 @@ export class Reservation { * List `Reservation`s within a single `ReservationOrder`. * @summary Get `Reservation`s in a given reservation Order * @param reservationOrderId Order Id of the reservation - * * @param [options] The optional parameters * @returns Promise */ list(reservationOrderId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param reservationOrderId Order Id of the reservation - * * @param callback The callback */ list(reservationOrderId: string, callback: msRest.ServiceCallback): void; /** * @param reservationOrderId Order Id of the reservation - * * @param options The optional parameters * @param callback The callback */ @@ -94,7 +88,6 @@ export class Reservation { * @summary Get `Reservation` details. * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation - * * @param [options] The optional parameters * @returns Promise */ @@ -102,14 +95,12 @@ export class Reservation { /** * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation - * * @param callback The callback */ get(reservationId: string, reservationOrderId: string, callback: msRest.ServiceCallback): void; /** * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation - * * @param options The optional parameters * @param callback The callback */ @@ -129,7 +120,6 @@ export class Reservation { * Updates the applied scopes of the `Reservation`. * @summary Updates a `Reservation`. * @param reservationOrderId Order Id of the reservation - * * @param reservationId Id of the Reservation Item * @param parameters Information needed to patch a reservation item * @param [options] The optional parameters @@ -142,11 +132,9 @@ export class Reservation { /** * List of all the revisions for the `Reservation`. - * * @summary Get `Reservation` revisions. * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation - * * @param [options] The optional parameters * @returns Promise */ @@ -154,14 +142,12 @@ export class Reservation { /** * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation - * * @param callback The callback */ listRevisions(reservationId: string, reservationOrderId: string, callback: msRest.ServiceCallback): void; /** * @param reservationId Id of the Reservation Item * @param reservationOrderId Order Id of the reservation - * * @param options The optional parameters * @param callback The callback */ @@ -179,10 +165,8 @@ export class Reservation { /** * Split a `Reservation` into two `Reservation`s with specified quantity distribution. - * * @summary Split the `Reservation`. * @param reservationOrderId Order Id of the reservation - * * @param body Information needed to Split a reservation item * @param [options] The optional parameters * @returns Promise @@ -203,7 +187,6 @@ export class Reservation { * must have same properties. * @summary Merges two `Reservation`s. * @param reservationOrderId Order Id of the reservation - * * @param body Information needed for commercial request for a reservation * @param [options] The optional parameters * @returns Promise @@ -223,7 +206,6 @@ export class Reservation { * Updates the applied scopes of the `Reservation`. * @summary Updates a `Reservation`. * @param reservationOrderId Order Id of the reservation - * * @param reservationId Id of the Reservation Item * @param parameters Information needed to patch a reservation item * @param [options] The optional parameters @@ -272,7 +254,6 @@ export class Reservation { /** * List of all the revisions for the `Reservation`. - * * @summary Get `Reservation` revisions. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters diff --git a/packages/@azure/arm-reservations/lib/operations/reservationOrder.ts b/packages/@azure/arm-reservations/lib/operations/reservationOrder.ts index 5716e4f5820f..40552fdd5653 100644 --- a/packages/@azure/arm-reservations/lib/operations/reservationOrder.ts +++ b/packages/@azure/arm-reservations/lib/operations/reservationOrder.ts @@ -55,20 +55,17 @@ export class ReservationOrder { * Get the details of the `ReservationOrder`. * @summary Get a specific `ReservationOrder`. * @param reservationOrderId Order Id of the reservation - * * @param [options] The optional parameters * @returns Promise */ get(reservationOrderId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param reservationOrderId Order Id of the reservation - * * @param callback The callback */ get(reservationOrderId: string, callback: msRest.ServiceCallback): void; /** * @param reservationOrderId Order Id of the reservation - * * @param options The optional parameters * @param callback The callback */ diff --git a/packages/@azure/arm-reservations/package.json b/packages/@azure/arm-reservations/package.json index fae302414be8..a50c1fa1060f 100644 --- a/packages/@azure/arm-reservations/package.json +++ b/packages/@azure/arm-reservations/package.json @@ -4,8 +4,8 @@ "description": "AzureReservationAPI Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.457", "tslib": "^1.9.3" }, "keywords": [ @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-reservations.js.map'\" -o ./dist/arm-reservations.min.js ./dist/arm-reservations.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/arm-visualstudio/LICENSE.txt b/packages/@azure/arm-visualstudio/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-visualstudio/LICENSE.txt +++ b/packages/@azure/arm-visualstudio/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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. +The MIT License (MIT) + +Copyright (c) 2018 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/packages/@azure/arm-visualstudio/README.md b/packages/@azure/arm-visualstudio/README.md index f529f6a8c7db..ffe569863e7e 100644 --- a/packages/@azure/arm-visualstudio/README.md +++ b/packages/@azure/arm-visualstudio/README.md @@ -1,77 +1,77 @@ -# Azure VisualStudioResourceProviderClient SDK for JavaScript -This package contains an isomorphic SDK for VisualStudioResourceProviderClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-visualstudio -``` - - -## How to use - -### nodejs - Authentication, client creation and list operations as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { VisualStudioResourceProviderClient, VisualStudioResourceProviderModels, VisualStudioResourceProviderMappers } from "@azure/arm-visualstudio"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new VisualStudioResourceProviderClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list operations as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-visualstudio sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure VisualStudioResourceProviderClient SDK for JavaScript +This package contains an isomorphic SDK for VisualStudioResourceProviderClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-visualstudio +``` + + +## How to use + +### nodejs - Authentication, client creation and list operations as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { VisualStudioResourceProviderClient, VisualStudioResourceProviderModels, VisualStudioResourceProviderMappers } from "@azure/arm-visualstudio"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new VisualStudioResourceProviderClient(creds, subscriptionId); + client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list operations as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-visualstudio sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-visualstudio/lib/models/accountsMappers.ts b/packages/@azure/arm-visualstudio/lib/models/accountsMappers.ts index 629369bfca41..5393c150241e 100644 --- a/packages/@azure/arm-visualstudio/lib/models/accountsMappers.ts +++ b/packages/@azure/arm-visualstudio/lib/models/accountsMappers.ts @@ -17,6 +17,7 @@ export { Resource, BaseResource, AccountResourceRequest, + AccountTagRequest, ExtensionResource, ExtensionResourcePlan, ProjectResource diff --git a/packages/@azure/arm-visualstudio/lib/models/index.ts b/packages/@azure/arm-visualstudio/lib/models/index.ts index fc70d5bc6ea2..b2bcfadfba96 100644 --- a/packages/@azure/arm-visualstudio/lib/models/index.ts +++ b/packages/@azure/arm-visualstudio/lib/models/index.ts @@ -78,6 +78,20 @@ export interface AccountResourceListResult { value?: AccountResource[]; } +/** + * @interface + * An interface representing AccountTagRequest. + * The body of a Patch request to add tags to a Visual Studio account resource. + * + */ +export interface AccountTagRequest { + /** + * @member {{ [propertyName: string]: string }} [tags] The custom tags of the + * resource. + */ + tags?: { [propertyName: string]: string }; +} + /** * @interface * An interface representing AccountResourceRequest. @@ -477,6 +491,25 @@ export type AccountsGetResponse = AccountResource & { }; }; +/** + * Contains response data for the update operation. + */ +export type AccountsUpdateResponse = AccountResource & { + /** + * 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: AccountResource; + }; +}; + /** * Contains response data for the listByAccount operation. */ diff --git a/packages/@azure/arm-visualstudio/lib/models/mappers.ts b/packages/@azure/arm-visualstudio/lib/models/mappers.ts index 9ad99f3a2d87..3c2f97df8d73 100644 --- a/packages/@azure/arm-visualstudio/lib/models/mappers.ts +++ b/packages/@azure/arm-visualstudio/lib/models/mappers.ts @@ -106,6 +106,27 @@ export const AccountResourceListResult: msRest.CompositeMapper = { } }; +export const AccountTagRequest: msRest.CompositeMapper = { + serializedName: "AccountTagRequest", + type: { + name: "Composite", + className: "AccountTagRequest", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const AccountResourceRequest: msRest.CompositeMapper = { serializedName: "AccountResourceRequest", type: { diff --git a/packages/@azure/arm-visualstudio/lib/operations/accounts.ts b/packages/@azure/arm-visualstudio/lib/operations/accounts.ts index d076c869e661..c4f1c9ec510a 100644 --- a/packages/@azure/arm-visualstudio/lib/operations/accounts.ts +++ b/packages/@azure/arm-visualstudio/lib/operations/accounts.ts @@ -188,6 +188,43 @@ export class Accounts { getOperationSpec, callback) as Promise; } + + /** + * Updates tags for Visual Studio Team Services account resource. + * @summary Accounts_Update + * @param resourceGroupName Name of the resource group within the Azure subscription. + * @param body The request data. + * @param resourceName Name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, body: Models.AccountTagRequest, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group within the Azure subscription. + * @param body The request data. + * @param resourceName Name of the resource. + * @param callback The callback + */ + update(resourceGroupName: string, body: Models.AccountTagRequest, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group within the Azure subscription. + * @param body The request data. + * @param resourceName Name of the resource. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, body: Models.AccountTagRequest, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, body: Models.AccountTagRequest, resourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + body, + resourceName, + options + }, + updateOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -327,3 +364,36 @@ const getOperationSpec: msRest.OperationSpec = { }, serializer }; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.AccountTagRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AccountResource + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-visualstudio/lib/visualStudioResourceProviderClientContext.ts b/packages/@azure/arm-visualstudio/lib/visualStudioResourceProviderClientContext.ts index 7710ef946d4e..11b58a1a7c64 100644 --- a/packages/@azure/arm-visualstudio/lib/visualStudioResourceProviderClientContext.ts +++ b/packages/@azure/arm-visualstudio/lib/visualStudioResourceProviderClientContext.ts @@ -16,16 +16,9 @@ const packageName = "@azure/arm-visualstudio"; const packageVersion = "1.0.0-preview"; export class VisualStudioResourceProviderClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - - apiVersion: string; - - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; + apiVersion?: string; /** * Initializes a new instance of the VisualStudioResourceProviderClient class. @@ -44,6 +37,11 @@ export class VisualStudioResourceProviderClientContext extends msRestAzure.Azure if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.apiVersion = '2014-04-01-preview'; @@ -54,7 +52,6 @@ export class VisualStudioResourceProviderClientContext extends msRestAzure.Azure this.credentials = credentials; this.subscriptionId = subscriptionId; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-visualstudio/package.json b/packages/@azure/arm-visualstudio/package.json index cb727f761bf9..db164c5fb0be 100644 --- a/packages/@azure/arm-visualstudio/package.json +++ b/packages/@azure/arm-visualstudio/package.json @@ -4,8 +4,8 @@ "description": "VisualStudioResourceProviderClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.457", "tslib": "^1.9.3" }, "keywords": [ @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-visualstudio.js.map'\" -o ./dist/arm-visualstudio.min.js ./dist/arm-visualstudio.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } diff --git a/packages/@azure/cognitiveservices-visualsearch/lib/models/index.ts b/packages/@azure/cognitiveservices-visualsearch/lib/models/index.ts index 13eb554ea893..7c1a0da6dc24 100644 --- a/packages/@azure/cognitiveservices-visualsearch/lib/models/index.ts +++ b/packages/@azure/cognitiveservices-visualsearch/lib/models/index.ts @@ -1563,7 +1563,7 @@ export interface MediaObject { */ readonly contentSize?: string; /** - * @member {string} [encodingFormat] Encoding format (e.g., mp3, mp4, jpeg, + * @member {string} [encodingFormat] Encoding format (e.g., png, gif, jpeg, * etc). * **NOTE: This property will not be serialized. It can only be populated by * the server.** @@ -1706,7 +1706,7 @@ export interface ImageObject { */ readonly contentSize?: string; /** - * @member {string} [encodingFormat] Encoding format (e.g., mp3, mp4, jpeg, + * @member {string} [encodingFormat] Encoding format (e.g., png, gif, jpeg, * etc). * **NOTE: This property will not be serialized. It can only be populated by * the server.** diff --git a/swagger_to_sdk_config.json b/swagger_to_sdk_config.json index a2321693e93a..e3707085db48 100644 --- a/swagger_to_sdk_config.json +++ b/swagger_to_sdk_config.json @@ -5,7 +5,7 @@ "typescript": "", "license-header": "MICROSOFT_MIT_NO_VERSION", "sdkrel:typescript-sdks-folder": ".", - "use": "@microsoft.azure/autorest.typescript@2.0.611" + "use": "@microsoft.azure/autorest.typescript@2.0.641" }, "advanced_options": { "clone_dir": "./azure-sdk-for-js" From 5907337c52b7e27496cf451e8d0f298c0f39cc19 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Mon, 5 Nov 2018 21:31:03 +0000 Subject: [PATCH 17/21] Regenerate @azure/arm-datamigration SDK --- .../lib/dataMigrationServiceClientContext.ts | 15 ++++++++++----- .../arm-datamigration/lib/models/parameters.ts | 2 -- packages/@azure/arm-datamigration/package.json | 4 ++-- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 594169f396a4..98a9b5e4027c 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -16,9 +16,17 @@ const packageName = "@azure/arm-datamigration"; const packageVersion = "1.0.0-preview"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + + apiVersion: string; + subscriptionId: string; + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + /** * Initializes a new instance of the DataMigrationServiceClient class. * @param credentials Credentials needed for the client to connect to Azure. @@ -36,13 +44,9 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC if (!options) { options = {}; } - if(!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - super(credentials, options); + this.apiVersion = '2018-07-15-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -50,6 +54,7 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC this.credentials = credentials; this.subscriptionId = subscriptionId; + this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-datamigration/lib/models/parameters.ts b/packages/@azure/arm-datamigration/lib/models/parameters.ts index edad9643d324..7aeaceeadc6d 100644 --- a/packages/@azure/arm-datamigration/lib/models/parameters.ts +++ b/packages/@azure/arm-datamigration/lib/models/parameters.ts @@ -24,9 +24,7 @@ export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2018-07-15-preview', type: { name: "String" } diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index 3ae188c7e9c6..dc6c02910ad3 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -4,8 +4,8 @@ "description": "DataMigrationServiceClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ From e2b35fe9d83b22e69a6eb67a3c631d13c0e55ba4 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Mon, 5 Nov 2018 21:32:02 +0000 Subject: [PATCH 18/21] Remove .npmignores --- .../@azure/arm-containerinstance/.npmignore | 35 ------------------- .../@azure/arm-containerregistry/.npmignore | 35 ------------------- packages/@azure/arm-domainservices/.npmignore | 35 ------------------- packages/@azure/arm-reservations/.npmignore | 35 ------------------- 4 files changed, 140 deletions(-) delete mode 100644 packages/@azure/arm-containerinstance/.npmignore delete mode 100644 packages/@azure/arm-containerregistry/.npmignore delete mode 100644 packages/@azure/arm-domainservices/.npmignore delete mode 100644 packages/@azure/arm-reservations/.npmignore diff --git a/packages/@azure/arm-containerinstance/.npmignore b/packages/@azure/arm-containerinstance/.npmignore deleted file mode 100644 index 3b46bc6202d8..000000000000 --- a/packages/@azure/arm-containerinstance/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config diff --git a/packages/@azure/arm-containerregistry/.npmignore b/packages/@azure/arm-containerregistry/.npmignore deleted file mode 100644 index a07a455ac10c..000000000000 --- a/packages/@azure/arm-containerregistry/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config diff --git a/packages/@azure/arm-domainservices/.npmignore b/packages/@azure/arm-domainservices/.npmignore deleted file mode 100644 index 3b46bc6202d8..000000000000 --- a/packages/@azure/arm-domainservices/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config diff --git a/packages/@azure/arm-reservations/.npmignore b/packages/@azure/arm-reservations/.npmignore deleted file mode 100644 index a07a455ac10c..000000000000 --- a/packages/@azure/arm-reservations/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config From 147199fd64c915355650c68b63559134c2711824 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Tue, 6 Nov 2018 17:49:42 +0000 Subject: [PATCH 19/21] Regenerated "@azure/arm-datamigration" SDK. --- azure-pipelines.yml | 24 +- gulpfile.ts | 8 +- .../applicationinsights-query/package.json | 4 +- packages/@azure/arm-advisor/package.json | 4 +- .../@azure/arm-analysisservices/package.json | 4 +- .../@azure/arm-apimanagement/package.json | 4 +- packages/@azure/arm-appinsights/package.json | 4 +- packages/@azure/arm-appservice/package.json | 4 +- .../@azure/arm-authorization/package.json | 4 +- packages/@azure/arm-automation/package.json | 4 +- packages/@azure/arm-azurestack/package.json | 4 +- packages/@azure/arm-batch/package.json | 4 +- packages/@azure/arm-batchai/package.json | 4 +- packages/@azure/arm-billing/package.json | 4 +- packages/@azure/arm-cdn/package.json | 4 +- .../@azure/arm-cognitiveservices/package.json | 4 +- packages/@azure/arm-commerce/package.json | 4 +- packages/@azure/arm-compute/package.json | 4 +- packages/@azure/arm-consumption/package.json | 4 +- .../@azure/arm-containerinstance/package.json | 4 +- .../@azure/arm-containerregistry/package.json | 4 +- .../@azure/arm-containerservice/package.json | 4 +- packages/@azure/arm-cosmosdb/package.json | 4 +- .../@azure/arm-customerinsights/package.json | 4 +- packages/@azure/arm-databox/package.json | 4 +- packages/@azure/arm-databricks/package.json | 4 +- packages/@azure/arm-datacatalog/package.json | 4 +- packages/@azure/arm-datafactory/package.json | 4 +- .../lib/dataMigrationServiceClientContext.ts | 15 +- .../arm-datamigration/lib/models/index.ts | 619 +++--------------- .../arm-datamigration/lib/operations/files.ts | 16 +- .../lib/operations/operations.ts | 4 +- .../lib/operations/projects.ts | 12 +- .../lib/operations/resourceSkus.ts | 4 +- .../lib/operations/services.ts | 20 +- .../arm-datamigration/lib/operations/tasks.ts | 16 +- .../lib/operations/usages.ts | 4 +- .../@azure/arm-datamigration/package.json | 8 +- .../@azure/arm-deploymentmanager/package.json | 4 +- .../package.json | 4 +- packages/@azure/arm-devspaces/package.json | 4 +- packages/@azure/arm-devtestlabs/package.json | 4 +- packages/@azure/arm-dns/package.json | 4 +- .../@azure/arm-domainservices/package.json | 4 +- packages/@azure/arm-eventgrid/package.json | 4 +- packages/@azure/arm-eventhub/package.json | 4 +- packages/@azure/arm-features/package.json | 4 +- packages/@azure/arm-frontdoor/package.json | 4 +- packages/@azure/arm-hanaonazure/package.json | 4 +- packages/@azure/arm-hdinsight/package.json | 4 +- packages/@azure/arm-iotcentral/package.json | 4 +- packages/@azure/arm-iothub/package.json | 4 +- packages/@azure/arm-iotspaces/package.json | 4 +- packages/@azure/arm-keyvault/package.json | 4 +- packages/@azure/arm-links/package.json | 4 +- packages/@azure/arm-locks/package.json | 4 +- packages/@azure/arm-logic/package.json | 4 +- .../arm-machinelearningcompute/package.json | 4 +- .../package.json | 4 +- .../arm-machinelearningservices/package.json | 4 +- .../arm-managedapplications/package.json | 4 +- .../@azure/arm-managementgroups/package.json | 4 +- .../@azure/arm-managementpartner/package.json | 4 +- packages/@azure/arm-maps/package.json | 4 +- packages/@azure/arm-mariadb/package.json | 4 +- .../arm-marketplaceordering/package.json | 4 +- .../@azure/arm-mediaservices/package.json | 4 +- packages/@azure/arm-migrate/package.json | 4 +- packages/@azure/arm-monitor/package.json | 4 +- packages/@azure/arm-msi/package.json | 4 +- packages/@azure/arm-mysql/package.json | 4 +- packages/@azure/arm-network/package.json | 4 +- .../@azure/arm-notificationhubs/package.json | 4 +- .../arm-operationalinsights/package.json | 4 +- packages/@azure/arm-operations/package.json | 4 +- packages/@azure/arm-policy/package.json | 4 +- .../@azure/arm-policyinsights/package.json | 4 +- packages/@azure/arm-postgresql/package.json | 4 +- .../@azure/arm-powerbidedicated/package.json | 4 +- .../@azure/arm-powerbiembedded/package.json | 4 +- .../package.json | 4 +- .../@azure/arm-recoveryservices/package.json | 4 +- .../arm-recoveryservicesbackup/package.json | 4 +- packages/@azure/arm-rediscache/package.json | 4 +- packages/@azure/arm-relay/package.json | 4 +- packages/@azure/arm-reservations/package.json | 4 +- .../@azure/arm-resourcehealth/package.json | 4 +- packages/@azure/arm-resources/package.json | 4 +- packages/@azure/arm-search/package.json | 4 +- packages/@azure/arm-security/package.json | 4 +- packages/@azure/arm-servicebus/package.json | 4 +- .../@azure/arm-servicefabricmesh/package.json | 4 +- packages/@azure/arm-servicemap/package.json | 4 +- packages/@azure/arm-signalr/package.json | 4 +- packages/@azure/arm-sql/package.json | 4 +- packages/@azure/arm-storage/package.json | 4 +- .../arm-storageimportexport/package.json | 4 +- packages/@azure/arm-storagesync/package.json | 4 +- .../arm-storsimple1200series/package.json | 4 +- .../arm-storsimple8000series/package.json | 4 +- .../@azure/arm-streamanalytics/package.json | 4 +- .../@azure/arm-subscriptions/package.json | 4 +- .../arm-timeseriesinsights/package.json | 4 +- .../@azure/arm-trafficmanager/package.json | 4 +- packages/@azure/arm-visualstudio/package.json | 4 +- packages/@azure/batch/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../cognitiveservices-face/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../cognitiveservices-newssearch/package.json | 4 +- .../cognitiveservices-spellcheck/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../cognitiveservices-websearch/package.json | 4 +- packages/@azure/eventgrid/package.json | 4 +- packages/@azure/graph/package.json | 4 +- packages/@azure/loganalytics/package.json | 4 +- packages/@azure/servicefabric/package.json | 4 +- 128 files changed, 370 insertions(+), 844 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a5a886a830f5..06fd69a449c8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,9 +6,6 @@ pool: vmImage: 'Ubuntu 16.04' -trigger: -- master - steps: - task: NodeTool@0 inputs: @@ -16,20 +13,13 @@ steps: displayName: 'Install Node.js' - script: cd .. && git clone https://github.com/Azure/azure-rest-api-specs - displayName: cd.. && git clone https://github.com/Azure/azure-rest-api-specs - -- task: Npm@1 - displayName: 'npm install' - inputs: - verbose: false - -- task: Npm@1 - displayName: 'npm run build' - inputs: - command: custom - verbose: false - customCommand: run build + displayName: git clone https://github.com/Azure/azure-rest-api-specs +- script: npm install + displayName: npm install +- script: npm run build + displayName: npm run build - task: PublishBuildArtifacts@1 inputs: - pathtoPublish: $(Build.SourcesDirectory)/drop + pathtoPublish: $(Build.SourcesDirectory)/pack + condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') \ No newline at end of file diff --git a/gulpfile.ts b/gulpfile.ts index e40d2e2eeee5..310fc86e0b65 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -110,9 +110,9 @@ const createPackages = (type: CreatePackageType = "pack") => { let publishedPackages = 0; let publishedPackagesSkipped = 0; - const dropPath = path.join(azureSDKForJSRepoRoot, "drop"); - if (!fs.existsSync(dropPath)) { - fs.mkdirSync(dropPath); + const packPath = path.join(azureSDKForJSRepoRoot, "pack"); + if (!fs.existsSync(packPath)) { + fs.mkdirSync(packPath); } for (const typeScriptReadmeFilePath of typeScriptReadmeFilePaths) { _logger.logTrace(`INFO: Processing ${typeScriptReadmeFilePath}`); @@ -171,7 +171,7 @@ const createPackages = (type: CreatePackageType = "pack") => { execSync(`npm ${type}`, { cwd: packageFolderPath }); const packFileName = `${packageName.replace("/", "-").replace("@", "")}-${localPackageVersion}.tgz` const packFilePath = path.join(packageFolderPath, packFileName); - fs.renameSync(packFilePath, path.join(dropPath, packFileName)); + fs.renameSync(packFilePath, path.join(packPath, packFileName)); console.log(`Filename: ${packFileName}`); publishedPackages++; } diff --git a/packages/@azure/applicationinsights-query/package.json b/packages/@azure/applicationinsights-query/package.json index 5e13d3e7c1f5..9afe8f5a784b 100644 --- a/packages/@azure/applicationinsights-query/package.json +++ b/packages/@azure/applicationinsights-query/package.json @@ -2,7 +2,7 @@ "name": "@azure/applicationinsights-query", "author": "Microsoft Corporation", "description": "ApplicationInsightsDataClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-advisor/package.json b/packages/@azure/arm-advisor/package.json index 56cdf9637c40..29182098cbe7 100644 --- a/packages/@azure/arm-advisor/package.json +++ b/packages/@azure/arm-advisor/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-advisor", "author": "Microsoft Corporation", "description": "AdvisorManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-analysisservices/package.json b/packages/@azure/arm-analysisservices/package.json index d139712ff53b..6c710cd6457e 100644 --- a/packages/@azure/arm-analysisservices/package.json +++ b/packages/@azure/arm-analysisservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-analysisservices", "author": "Microsoft Corporation", "description": "AnalysisServicesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-apimanagement/package.json b/packages/@azure/arm-apimanagement/package.json index ecd4835aeb00..d21f66fc38c5 100644 --- a/packages/@azure/arm-apimanagement/package.json +++ b/packages/@azure/arm-apimanagement/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-apimanagement", "author": "Microsoft Corporation", "description": "ApiManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-appinsights/package.json b/packages/@azure/arm-appinsights/package.json index 8b949d0306f3..29176de86065 100644 --- a/packages/@azure/arm-appinsights/package.json +++ b/packages/@azure/arm-appinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-appinsights", "author": "Microsoft Corporation", "description": "ApplicationInsightsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-appservice/package.json b/packages/@azure/arm-appservice/package.json index 4f3f29fe3a34..f2652e172b52 100644 --- a/packages/@azure/arm-appservice/package.json +++ b/packages/@azure/arm-appservice/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-appservice", "author": "Microsoft Corporation", "description": "WebSiteManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-authorization/package.json b/packages/@azure/arm-authorization/package.json index 38cb0e132491..27e7e81ae7e5 100644 --- a/packages/@azure/arm-authorization/package.json +++ b/packages/@azure/arm-authorization/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-authorization", "author": "Microsoft Corporation", "description": "AuthorizationManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-automation/package.json b/packages/@azure/arm-automation/package.json index 679108bf3ee5..f7fc540f6e58 100644 --- a/packages/@azure/arm-automation/package.json +++ b/packages/@azure/arm-automation/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-automation", "author": "Microsoft Corporation", "description": "AutomationClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-azurestack/package.json b/packages/@azure/arm-azurestack/package.json index fcc327a14238..15c7ee6e0686 100644 --- a/packages/@azure/arm-azurestack/package.json +++ b/packages/@azure/arm-azurestack/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-azurestack", "author": "Microsoft Corporation", "description": "AzureStackManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-batch/package.json b/packages/@azure/arm-batch/package.json index 7f35e35bf526..b5ecf39edf85 100644 --- a/packages/@azure/arm-batch/package.json +++ b/packages/@azure/arm-batch/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-batch", "author": "Microsoft Corporation", "description": "BatchManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-batchai/package.json b/packages/@azure/arm-batchai/package.json index c9502c184c33..5d382e1541de 100644 --- a/packages/@azure/arm-batchai/package.json +++ b/packages/@azure/arm-batchai/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-batchai", "author": "Microsoft Corporation", "description": "BatchAIManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-billing/package.json b/packages/@azure/arm-billing/package.json index 2bee691f3351..9a08c2800cec 100644 --- a/packages/@azure/arm-billing/package.json +++ b/packages/@azure/arm-billing/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-billing", "author": "Microsoft Corporation", "description": "BillingManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-cdn/package.json b/packages/@azure/arm-cdn/package.json index 8472ccab15ad..45f3d9c8bd42 100644 --- a/packages/@azure/arm-cdn/package.json +++ b/packages/@azure/arm-cdn/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-cdn", "author": "Microsoft Corporation", "description": "CdnManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-cognitiveservices/package.json b/packages/@azure/arm-cognitiveservices/package.json index 1e452af267e6..066189442dca 100644 --- a/packages/@azure/arm-cognitiveservices/package.json +++ b/packages/@azure/arm-cognitiveservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-cognitiveservices", "author": "Microsoft Corporation", "description": "CognitiveServicesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-commerce/package.json b/packages/@azure/arm-commerce/package.json index ee21dee4e0a2..954fb9e21441 100644 --- a/packages/@azure/arm-commerce/package.json +++ b/packages/@azure/arm-commerce/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-commerce", "author": "Microsoft Corporation", "description": "UsageManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-compute/package.json b/packages/@azure/arm-compute/package.json index 86761c32687b..fb8ec771eda1 100644 --- a/packages/@azure/arm-compute/package.json +++ b/packages/@azure/arm-compute/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-compute", "author": "Microsoft Corporation", "description": "ComputeManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-consumption/package.json b/packages/@azure/arm-consumption/package.json index e1617361ac74..2a68a654c547 100644 --- a/packages/@azure/arm-consumption/package.json +++ b/packages/@azure/arm-consumption/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-consumption", "author": "Microsoft Corporation", "description": "ConsumptionManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-containerinstance/package.json b/packages/@azure/arm-containerinstance/package.json index aac696d442cb..cdb32edbf81f 100644 --- a/packages/@azure/arm-containerinstance/package.json +++ b/packages/@azure/arm-containerinstance/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-containerinstance", "author": "Microsoft Corporation", "description": "ContainerInstanceManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-containerregistry/package.json b/packages/@azure/arm-containerregistry/package.json index 4e48a822dcbf..96f25c8d27d3 100644 --- a/packages/@azure/arm-containerregistry/package.json +++ b/packages/@azure/arm-containerregistry/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-containerregistry", "author": "Microsoft Corporation", "description": "ContainerRegistryManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-containerservice/package.json b/packages/@azure/arm-containerservice/package.json index 1f8d32b32470..d8e25e319d7d 100644 --- a/packages/@azure/arm-containerservice/package.json +++ b/packages/@azure/arm-containerservice/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-containerservice", "author": "Microsoft Corporation", "description": "ContainerServiceClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-cosmosdb/package.json b/packages/@azure/arm-cosmosdb/package.json index bcdf19d9e67a..f0f88273d508 100644 --- a/packages/@azure/arm-cosmosdb/package.json +++ b/packages/@azure/arm-cosmosdb/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-cosmosdb", "author": "Microsoft Corporation", "description": "CosmosDBManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-customerinsights/package.json b/packages/@azure/arm-customerinsights/package.json index 1757ec520866..239345d7ee35 100644 --- a/packages/@azure/arm-customerinsights/package.json +++ b/packages/@azure/arm-customerinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-customerinsights", "author": "Microsoft Corporation", "description": "CustomerInsightsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-databox/package.json b/packages/@azure/arm-databox/package.json index 54b82bbb1273..848bf016e0cd 100644 --- a/packages/@azure/arm-databox/package.json +++ b/packages/@azure/arm-databox/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-databox", "author": "Microsoft Corporation", "description": "DataBoxManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "0.0.1", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-databricks/package.json b/packages/@azure/arm-databricks/package.json index da3b8d658da9..5eaf7830d7cb 100644 --- a/packages/@azure/arm-databricks/package.json +++ b/packages/@azure/arm-databricks/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-databricks", "author": "Microsoft Corporation", "description": "DatabricksClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-datacatalog/package.json b/packages/@azure/arm-datacatalog/package.json index c652c2b82e71..ca270d29e914 100644 --- a/packages/@azure/arm-datacatalog/package.json +++ b/packages/@azure/arm-datacatalog/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-datacatalog", "author": "Microsoft Corporation", "description": "DataCatalogRestClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-datafactory/package.json b/packages/@azure/arm-datafactory/package.json index e4e047afb03a..399e19f9d27f 100644 --- a/packages/@azure/arm-datafactory/package.json +++ b/packages/@azure/arm-datafactory/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-datafactory", "author": "Microsoft Corporation", "description": "DataFactoryManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 98a9b5e4027c..6e4b755a16fe 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -16,17 +16,10 @@ const packageName = "@azure/arm-datamigration"; const packageVersion = "1.0.0-preview"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - - apiVersion: string; - + apiVersion?: string; subscriptionId: string; - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; - /** * Initializes a new instance of the DataMigrationServiceClient class. * @param credentials Credentials needed for the client to connect to Azure. @@ -44,6 +37,11 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.apiVersion = '2018-07-15-preview'; @@ -54,7 +52,6 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC this.credentials = credentials; this.subscriptionId = subscriptionId; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index 308b8d96c728..978c6652c980 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -7320,811 +7320,350 @@ export interface FileList extends Array { /** * Defines values for CommandState. - * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CommandState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', 'Failed' * @readonly * @enum {string} */ -export enum CommandState { - Unknown = 'Unknown', - Accepted = 'Accepted', - Running = 'Running', - Succeeded = 'Succeeded', - Failed = 'Failed', -} +export type CommandState = 'Unknown' | 'Accepted' | 'Running' | 'Succeeded' | 'Failed'; /** * Defines values for SqlSourcePlatform. * Possible values include: 'SqlOnPrem' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SqlSourcePlatform = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SqlSourcePlatform { - SqlOnPrem = 'SqlOnPrem', -} +export type SqlSourcePlatform = 'SqlOnPrem'; /** * Defines values for AuthenticationType. - * Possible values include: 'None', 'WindowsAuthentication', - * 'SqlAuthentication', 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: AuthenticationType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', + * 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' * @readonly * @enum {string} */ -export enum AuthenticationType { - None = 'None', - WindowsAuthentication = 'WindowsAuthentication', - SqlAuthentication = 'SqlAuthentication', - ActiveDirectoryIntegrated = 'ActiveDirectoryIntegrated', - ActiveDirectoryPassword = 'ActiveDirectoryPassword', -} +export type AuthenticationType = 'None' | 'WindowsAuthentication' | 'SqlAuthentication' | 'ActiveDirectoryIntegrated' | 'ActiveDirectoryPassword'; /** * Defines values for MongoDbErrorType. * Possible values include: 'Error', 'ValidationError', 'Warning' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbErrorType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbErrorType { - Error = 'Error', - ValidationError = 'ValidationError', - Warning = 'Warning', -} +export type MongoDbErrorType = 'Error' | 'ValidationError' | 'Warning'; /** * Defines values for MongoDbMigrationState. - * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', - * 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', - * 'Complete', 'Canceled', 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbMigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', + * 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' * @readonly * @enum {string} */ -export enum MongoDbMigrationState { - NotStarted = 'NotStarted', - ValidatingInput = 'ValidatingInput', - Initializing = 'Initializing', - Restarting = 'Restarting', - Copying = 'Copying', - InitialReplay = 'InitialReplay', - Replaying = 'Replaying', - Finalizing = 'Finalizing', - Complete = 'Complete', - Canceled = 'Canceled', - Failed = 'Failed', -} +export type MongoDbMigrationState = 'NotStarted' | 'ValidatingInput' | 'Initializing' | 'Restarting' | 'Copying' | 'InitialReplay' | 'Replaying' | 'Finalizing' | 'Complete' | 'Canceled' | 'Failed'; /** * Defines values for MongoDbShardKeyOrder. * Possible values include: 'Forward', 'Reverse', 'Hashed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbShardKeyOrder = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbShardKeyOrder { - Forward = 'Forward', - Reverse = 'Reverse', - Hashed = 'Hashed', -} +export type MongoDbShardKeyOrder = 'Forward' | 'Reverse' | 'Hashed'; /** * Defines values for MongoDbReplication. * Possible values include: 'Disabled', 'OneTime', 'Continuous' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbReplication = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbReplication { - Disabled = 'Disabled', - OneTime = 'OneTime', - Continuous = 'Continuous', -} +export type MongoDbReplication = 'Disabled' | 'OneTime' | 'Continuous'; /** * Defines values for BackupType. - * Possible values include: 'Database', 'TransactionLog', 'File', - * 'DifferentialDatabase', 'DifferentialFile', 'Partial', 'DifferentialPartial' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: BackupType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', + * 'DifferentialFile', 'Partial', 'DifferentialPartial' * @readonly * @enum {string} */ -export enum BackupType { - Database = 'Database', - TransactionLog = 'TransactionLog', - File = 'File', - DifferentialDatabase = 'DifferentialDatabase', - DifferentialFile = 'DifferentialFile', - Partial = 'Partial', - DifferentialPartial = 'DifferentialPartial', -} +export type BackupType = 'Database' | 'TransactionLog' | 'File' | 'DifferentialDatabase' | 'DifferentialFile' | 'Partial' | 'DifferentialPartial'; /** * Defines values for BackupMode. * Possible values include: 'CreateBackup', 'ExistingBackup' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: BackupMode = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupMode { - CreateBackup = 'CreateBackup', - ExistingBackup = 'ExistingBackup', -} +export type BackupMode = 'CreateBackup' | 'ExistingBackup'; /** * Defines values for SyncTableMigrationState. - * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', - * 'CANCELED', 'ERROR', 'FAILED' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncTableMigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED' * @readonly * @enum {string} */ -export enum SyncTableMigrationState { - BEFORELOAD = 'BEFORE_LOAD', - FULLLOAD = 'FULL_LOAD', - COMPLETED = 'COMPLETED', - CANCELED = 'CANCELED', - ERROR = 'ERROR', - FAILED = 'FAILED', -} +export type SyncTableMigrationState = 'BEFORE_LOAD' | 'FULL_LOAD' | 'COMPLETED' | 'CANCELED' | 'ERROR' | 'FAILED'; /** * Defines values for SyncDatabaseMigrationReportingState. - * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', - * 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - * 'CANCELLING', 'CANCELLED', 'FAILED' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncDatabaseMigrationReportingState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', + * 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED' * @readonly * @enum {string} */ -export enum SyncDatabaseMigrationReportingState { - UNDEFINED = 'UNDEFINED', - CONFIGURING = 'CONFIGURING', - INITIALIAZING = 'INITIALIAZING', - STARTING = 'STARTING', - RUNNING = 'RUNNING', - READYTOCOMPLETE = 'READY_TO_COMPLETE', - COMPLETING = 'COMPLETING', - COMPLETE = 'COMPLETE', - CANCELLING = 'CANCELLING', - CANCELLED = 'CANCELLED', - FAILED = 'FAILED', -} +export type SyncDatabaseMigrationReportingState = 'UNDEFINED' | 'CONFIGURING' | 'INITIALIAZING' | 'STARTING' | 'RUNNING' | 'READY_TO_COMPLETE' | 'COMPLETING' | 'COMPLETE' | 'CANCELLING' | 'CANCELLED' | 'FAILED'; /** * Defines values for ValidationStatus. - * Possible values include: 'Default', 'NotStarted', 'Initialized', - * 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ValidationStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', 'Completed', + * 'CompletedWithIssues', 'Stopped', 'Failed' * @readonly * @enum {string} */ -export enum ValidationStatus { - Default = 'Default', - NotStarted = 'NotStarted', - Initialized = 'Initialized', - InProgress = 'InProgress', - Completed = 'Completed', - CompletedWithIssues = 'CompletedWithIssues', - Stopped = 'Stopped', - Failed = 'Failed', -} +export type ValidationStatus = 'Default' | 'NotStarted' | 'Initialized' | 'InProgress' | 'Completed' | 'CompletedWithIssues' | 'Stopped' | 'Failed'; /** * Defines values for Severity. * Possible values include: 'Message', 'Warning', 'Error' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: Severity = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum Severity { - Message = 'Message', - Warning = 'Warning', - Error = 'Error', -} +export type Severity = 'Message' | 'Warning' | 'Error'; /** * Defines values for UpdateActionType. - * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', - * 'AddedOnTarget' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: UpdateActionType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' * @readonly * @enum {string} */ -export enum UpdateActionType { - DeletedOnTarget = 'DeletedOnTarget', - ChangedOnTarget = 'ChangedOnTarget', - AddedOnTarget = 'AddedOnTarget', -} +export type UpdateActionType = 'DeletedOnTarget' | 'ChangedOnTarget' | 'AddedOnTarget'; /** * Defines values for ObjectType. - * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', - * 'Function' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ObjectType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' * @readonly * @enum {string} */ -export enum ObjectType { - StoredProcedures = 'StoredProcedures', - Table = 'Table', - User = 'User', - View = 'View', - Function = 'Function', -} +export type ObjectType = 'StoredProcedures' | 'Table' | 'User' | 'View' | 'Function'; /** * Defines values for MigrationState. - * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', - * 'Completed', 'Skipped', 'Stopped' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', + * 'Stopped' * @readonly * @enum {string} */ -export enum MigrationState { - None = 'None', - InProgress = 'InProgress', - Failed = 'Failed', - Warning = 'Warning', - Completed = 'Completed', - Skipped = 'Skipped', - Stopped = 'Stopped', -} +export type MigrationState = 'None' | 'InProgress' | 'Failed' | 'Warning' | 'Completed' | 'Skipped' | 'Stopped'; /** * Defines values for DatabaseMigrationStage. - * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', - * 'Restore', 'Completed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' * @readonly * @enum {string} */ -export enum DatabaseMigrationStage { - None = 'None', - Initialize = 'Initialize', - Backup = 'Backup', - FileCopy = 'FileCopy', - Restore = 'Restore', - Completed = 'Completed', -} +export type DatabaseMigrationStage = 'None' | 'Initialize' | 'Backup' | 'FileCopy' | 'Restore' | 'Completed'; /** * Defines values for MigrationStatus. - * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', - * 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped', 'Completed', - * 'CompletedWithWarnings' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MigrationStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', + * 'Configured', 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' * @readonly * @enum {string} */ -export enum MigrationStatus { - Default = 'Default', - Connecting = 'Connecting', - SourceAndTargetSelected = 'SourceAndTargetSelected', - SelectLogins = 'SelectLogins', - Configured = 'Configured', - Running = 'Running', - Error = 'Error', - Stopped = 'Stopped', - Completed = 'Completed', - CompletedWithWarnings = 'CompletedWithWarnings', -} +export type MigrationStatus = 'Default' | 'Connecting' | 'SourceAndTargetSelected' | 'SelectLogins' | 'Configured' | 'Running' | 'Error' | 'Stopped' | 'Completed' | 'CompletedWithWarnings'; /** * Defines values for LoginMigrationStage. - * Possible values include: 'None', 'Initialize', 'LoginMigration', - * 'EstablishUserMapping', 'AssignRoleMembership', 'AssignRoleOwnership', - * 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LoginMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'Initialize', 'LoginMigration', 'EstablishUserMapping', + * 'AssignRoleMembership', 'AssignRoleOwnership', 'EstablishServerPermissions', + * 'EstablishObjectPermissions', 'Completed' * @readonly * @enum {string} */ -export enum LoginMigrationStage { - None = 'None', - Initialize = 'Initialize', - LoginMigration = 'LoginMigration', - EstablishUserMapping = 'EstablishUserMapping', - AssignRoleMembership = 'AssignRoleMembership', - AssignRoleOwnership = 'AssignRoleOwnership', - EstablishServerPermissions = 'EstablishServerPermissions', - EstablishObjectPermissions = 'EstablishObjectPermissions', - Completed = 'Completed', -} +export type LoginMigrationStage = 'None' | 'Initialize' | 'LoginMigration' | 'EstablishUserMapping' | 'AssignRoleMembership' | 'AssignRoleOwnership' | 'EstablishServerPermissions' | 'EstablishObjectPermissions' | 'Completed'; /** * Defines values for LoginType. - * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', - * 'Certificate', 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LoginType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', + * 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' * @readonly * @enum {string} */ -export enum LoginType { - WindowsUser = 'WindowsUser', - WindowsGroup = 'WindowsGroup', - SqlLogin = 'SqlLogin', - Certificate = 'Certificate', - AsymmetricKey = 'AsymmetricKey', - ExternalUser = 'ExternalUser', - ExternalGroup = 'ExternalGroup', -} +export type LoginType = 'WindowsUser' | 'WindowsGroup' | 'SqlLogin' | 'Certificate' | 'AsymmetricKey' | 'ExternalUser' | 'ExternalGroup'; /** * Defines values for DatabaseState. - * Possible values include: 'Online', 'Restoring', 'Recovering', - * 'RecoveryPending', 'Suspect', 'Emergency', 'Offline', 'Copying', - * 'OfflineSecondary' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', + * 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' * @readonly * @enum {string} */ -export enum DatabaseState { - Online = 'Online', - Restoring = 'Restoring', - Recovering = 'Recovering', - RecoveryPending = 'RecoveryPending', - Suspect = 'Suspect', - Emergency = 'Emergency', - Offline = 'Offline', - Copying = 'Copying', - OfflineSecondary = 'OfflineSecondary', -} +export type DatabaseState = 'Online' | 'Restoring' | 'Recovering' | 'RecoveryPending' | 'Suspect' | 'Emergency' | 'Offline' | 'Copying' | 'OfflineSecondary'; /** * Defines values for DatabaseCompatLevel. - * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', - * 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseCompatLevel = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', 'CompatLevel110', + * 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' * @readonly * @enum {string} */ -export enum DatabaseCompatLevel { - CompatLevel80 = 'CompatLevel80', - CompatLevel90 = 'CompatLevel90', - CompatLevel100 = 'CompatLevel100', - CompatLevel110 = 'CompatLevel110', - CompatLevel120 = 'CompatLevel120', - CompatLevel130 = 'CompatLevel130', - CompatLevel140 = 'CompatLevel140', -} +export type DatabaseCompatLevel = 'CompatLevel80' | 'CompatLevel90' | 'CompatLevel100' | 'CompatLevel110' | 'CompatLevel120' | 'CompatLevel130' | 'CompatLevel140'; /** * Defines values for DatabaseFileType. - * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', - * 'Fulltext' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseFileType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', 'Fulltext' * @readonly * @enum {string} */ -export enum DatabaseFileType { - Rows = 'Rows', - Log = 'Log', - Filestream = 'Filestream', - NotSupported = 'NotSupported', - Fulltext = 'Fulltext', -} +export type DatabaseFileType = 'Rows' | 'Log' | 'Filestream' | 'NotSupported' | 'Fulltext'; /** * Defines values for ServerLevelPermissionsGroup. * Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB', * 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServerLevelPermissionsGroup = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServerLevelPermissionsGroup { - Default = 'Default', - MigrationFromSqlServerToAzureDB = 'MigrationFromSqlServerToAzureDB', - MigrationFromSqlServerToAzureMI = 'MigrationFromSqlServerToAzureMI', - MigrationFromMySQLToAzureDBForMySQL = 'MigrationFromMySQLToAzureDBForMySQL', -} +export type ServerLevelPermissionsGroup = 'Default' | 'MigrationFromSqlServerToAzureDB' | 'MigrationFromSqlServerToAzureMI' | 'MigrationFromMySQLToAzureDBForMySQL'; /** * Defines values for MongoDbClusterType. * Possible values include: 'BlobContainer', 'CosmosDb', 'MongoDb' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbClusterType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbClusterType { - BlobContainer = 'BlobContainer', - CosmosDb = 'CosmosDb', - MongoDb = 'MongoDb', -} +export type MongoDbClusterType = 'BlobContainer' | 'CosmosDb' | 'MongoDb'; /** * Defines values for TaskState. - * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', - * 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: TaskState = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', 'Failed', + * 'FailedInputValidation', 'Faulted' * @readonly * @enum {string} */ -export enum TaskState { - Unknown = 'Unknown', - Queued = 'Queued', - Running = 'Running', - Canceled = 'Canceled', - Succeeded = 'Succeeded', - Failed = 'Failed', - FailedInputValidation = 'FailedInputValidation', - Faulted = 'Faulted', -} +export type TaskState = 'Unknown' | 'Queued' | 'Running' | 'Canceled' | 'Succeeded' | 'Failed' | 'FailedInputValidation' | 'Faulted'; /** * Defines values for ServiceProvisioningState. - * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', - * 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServiceProvisioningState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', 'Stopping', 'Starting', + * 'FailedToStart', 'FailedToStop', 'Succeeded', 'Failed' * @readonly * @enum {string} */ -export enum ServiceProvisioningState { - Accepted = 'Accepted', - Deleting = 'Deleting', - Deploying = 'Deploying', - Stopped = 'Stopped', - Stopping = 'Stopping', - Starting = 'Starting', - FailedToStart = 'FailedToStart', - FailedToStop = 'FailedToStop', - Succeeded = 'Succeeded', - Failed = 'Failed', -} +export type ServiceProvisioningState = 'Accepted' | 'Deleting' | 'Deploying' | 'Stopped' | 'Stopping' | 'Starting' | 'FailedToStart' | 'FailedToStop' | 'Succeeded' | 'Failed'; /** * Defines values for ProjectTargetPlatform. - * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', - * 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectTargetPlatform = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', 'AzureDbForPostgreSql', 'MongoDb', + * 'Unknown' * @readonly * @enum {string} */ -export enum ProjectTargetPlatform { - SQLDB = 'SQLDB', - SQLMI = 'SQLMI', - AzureDbForMySql = 'AzureDbForMySql', - AzureDbForPostgreSql = 'AzureDbForPostgreSql', - MongoDb = 'MongoDb', - Unknown = 'Unknown', -} +export type ProjectTargetPlatform = 'SQLDB' | 'SQLMI' | 'AzureDbForMySql' | 'AzureDbForPostgreSql' | 'MongoDb' | 'Unknown'; /** * Defines values for ProjectSourcePlatform. * Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectSourcePlatform = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ProjectSourcePlatform { - SQL = 'SQL', - MySQL = 'MySQL', - PostgreSql = 'PostgreSql', - MongoDb = 'MongoDb', - Unknown = 'Unknown', -} +export type ProjectSourcePlatform = 'SQL' | 'MySQL' | 'PostgreSql' | 'MongoDb' | 'Unknown'; /** * Defines values for ProjectProvisioningState. * Possible values include: 'Deleting', 'Succeeded' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectProvisioningState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ProjectProvisioningState { - Deleting = 'Deleting', - Succeeded = 'Succeeded', -} +export type ProjectProvisioningState = 'Deleting' | 'Succeeded'; /** * Defines values for NameCheckFailureReason. * Possible values include: 'AlreadyExists', 'Invalid' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: NameCheckFailureReason = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum NameCheckFailureReason { - AlreadyExists = 'AlreadyExists', - Invalid = 'Invalid', -} +export type NameCheckFailureReason = 'AlreadyExists' | 'Invalid'; /** * Defines values for ServiceScalability. * Possible values include: 'none', 'manual', 'automatic' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServiceScalability = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceScalability { - None = 'none', - Manual = 'manual', - Automatic = 'automatic', -} +export type ServiceScalability = 'none' | 'manual' | 'automatic'; /** * Defines values for ResourceSkuRestrictionsType. * Possible values include: 'location' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuRestrictionsType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuRestrictionsType { - Location = 'location', -} +export type ResourceSkuRestrictionsType = 'location'; /** * Defines values for ResourceSkuRestrictionsReasonCode. * Possible values include: 'QuotaId', 'NotAvailableForSubscription' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuRestrictionsReasonCode = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuRestrictionsReasonCode { - QuotaId = 'QuotaId', - NotAvailableForSubscription = 'NotAvailableForSubscription', -} +export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; /** * Defines values for ResourceSkuCapacityScaleType. * Possible values include: 'Automatic', 'Manual', 'None' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuCapacityScaleType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuCapacityScaleType { - Automatic = 'Automatic', - Manual = 'Manual', - None = 'None', -} +export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; /** * Defines values for MySqlTargetPlatformType. * Possible values include: 'AzureDbForMySQL' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MySqlTargetPlatformType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MySqlTargetPlatformType { - AzureDbForMySQL = 'AzureDbForMySQL', -} +export type MySqlTargetPlatformType = 'AzureDbForMySQL'; /** * Defines values for SchemaMigrationOption. * Possible values include: 'None', 'ExtractFromSource', 'UseStorageFile' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SchemaMigrationOption = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SchemaMigrationOption { - None = 'None', - ExtractFromSource = 'ExtractFromSource', - UseStorageFile = 'UseStorageFile', -} +export type SchemaMigrationOption = 'None' | 'ExtractFromSource' | 'UseStorageFile'; /** * Defines values for SchemaMigrationStage. - * Possible values include: 'NotStarted', 'ValidatingInputs', - * 'CollectingObjects', 'DownloadingScript', 'GeneratingScript', - * 'UploadingScript', 'DeployingSchema', 'Completed', 'CompletedWithWarnings', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SchemaMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', + * 'DownloadingScript', 'GeneratingScript', 'UploadingScript', 'DeployingSchema', 'Completed', + * 'CompletedWithWarnings', 'Failed' * @readonly * @enum {string} */ -export enum SchemaMigrationStage { - NotStarted = 'NotStarted', - ValidatingInputs = 'ValidatingInputs', - CollectingObjects = 'CollectingObjects', - DownloadingScript = 'DownloadingScript', - GeneratingScript = 'GeneratingScript', - UploadingScript = 'UploadingScript', - DeployingSchema = 'DeployingSchema', - Completed = 'Completed', - CompletedWithWarnings = 'CompletedWithWarnings', - Failed = 'Failed', -} +export type SchemaMigrationStage = 'NotStarted' | 'ValidatingInputs' | 'CollectingObjects' | 'DownloadingScript' | 'GeneratingScript' | 'UploadingScript' | 'DeployingSchema' | 'Completed' | 'CompletedWithWarnings' | 'Failed'; /** * Defines values for DataMigrationResultCode. * Possible values include: 'Initial', 'Completed', 'ObjectNotExistsInSource', * 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DataMigrationResultCode = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum DataMigrationResultCode { - Initial = 'Initial', - Completed = 'Completed', - ObjectNotExistsInSource = 'ObjectNotExistsInSource', - ObjectNotExistsInTarget = 'ObjectNotExistsInTarget', - TargetObjectIsInaccessible = 'TargetObjectIsInaccessible', - FatalError = 'FatalError', -} +export type DataMigrationResultCode = 'Initial' | 'Completed' | 'ObjectNotExistsInSource' | 'ObjectNotExistsInTarget' | 'TargetObjectIsInaccessible' | 'FatalError'; /** * Defines values for ErrorType. * Possible values include: 'Default', 'Warning', 'Error' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ErrorType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ErrorType { - Default = 'Default', - Warning = 'Warning', - Error = 'Error', -} +export type ErrorType = 'Default' | 'Warning' | 'Error'; /** * Defines values for ResultType. * Possible values include: 'Migration', 'Database', 'Collection' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResultType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResultType { - Migration = 'Migration', - Database = 'Database', - Collection = 'Collection', -} +export type ResultType = 'Migration' | 'Database' | 'Collection'; /** * Contains response data for the listSkus operation. diff --git a/packages/@azure/arm-datamigration/lib/operations/files.ts b/packages/@azure/arm-datamigration/lib/operations/files.ts index dfd99f84b64a..f05767ce3cf2 100644 --- a/packages/@azure/arm-datamigration/lib/operations/files.ts +++ b/packages/@azure/arm-datamigration/lib/operations/files.ts @@ -52,7 +52,7 @@ export class Files { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -93,7 +93,7 @@ export class Files { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Files { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -179,7 +179,7 @@ export class Files { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -223,7 +223,7 @@ export class Files { * @param callback The callback */ update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -266,7 +266,7 @@ export class Files { * @param callback The callback */ read(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -307,7 +307,7 @@ export class Files { * @param callback The callback */ readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -340,7 +340,7 @@ export class Files { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/operations.ts b/packages/@azure/arm-datamigration/lib/operations/operations.ts index 4ea11a119716..e22bb1ea9155 100644 --- a/packages/@azure/arm-datamigration/lib/operations/operations.ts +++ b/packages/@azure/arm-datamigration/lib/operations/operations.ts @@ -42,7 +42,7 @@ export class Operations { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class Operations { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/projects.ts b/packages/@azure/arm-datamigration/lib/operations/projects.ts index f2c8dd87f14d..caae446b34a6 100644 --- a/packages/@azure/arm-datamigration/lib/operations/projects.ts +++ b/packages/@azure/arm-datamigration/lib/operations/projects.ts @@ -49,7 +49,7 @@ export class Projects { * @param callback The callback */ list(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -89,7 +89,7 @@ export class Projects { * @param callback The callback */ createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -128,7 +128,7 @@ export class Projects { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -166,7 +166,7 @@ export class Projects { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, options: Models.ProjectsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -207,7 +207,7 @@ export class Projects { * @param callback The callback */ update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -240,7 +240,7 @@ export class Projects { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts index c9acfb62b336..c8b3a6952ff9 100644 --- a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts +++ b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts @@ -42,7 +42,7 @@ export class ResourceSkus { * @param callback The callback */ listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class ResourceSkus { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/services.ts b/packages/@azure/arm-datamigration/lib/operations/services.ts index 3faa0ab51e8e..1a7c813a75ec 100644 --- a/packages/@azure/arm-datamigration/lib/operations/services.ts +++ b/packages/@azure/arm-datamigration/lib/operations/services.ts @@ -71,7 +71,7 @@ export class Services { * @param callback The callback */ get(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Services { * @param callback The callback */ checkStatus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -200,7 +200,7 @@ export class Services { * @param callback The callback */ listSkus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -236,7 +236,7 @@ export class Services { * @param callback The callback */ checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -268,7 +268,7 @@ export class Services { * @param callback The callback */ listByResourceGroup(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -295,7 +295,7 @@ export class Services { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -326,7 +326,7 @@ export class Services { * @param callback The callback */ checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -470,7 +470,7 @@ export class Services { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -500,7 +500,7 @@ export class Services { * @param callback The callback */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -530,7 +530,7 @@ export class Services { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/tasks.ts b/packages/@azure/arm-datamigration/lib/operations/tasks.ts index 5ae49940480b..02e8d3d519d6 100644 --- a/packages/@azure/arm-datamigration/lib/operations/tasks.ts +++ b/packages/@azure/arm-datamigration/lib/operations/tasks.ts @@ -53,7 +53,7 @@ export class Tasks { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: Models.TasksListOptionalParams, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -98,7 +98,7 @@ export class Tasks { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -141,7 +141,7 @@ export class Tasks { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksGetOptionalParams, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -183,7 +183,7 @@ export class Tasks { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -229,7 +229,7 @@ export class Tasks { * @param callback The callback */ update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -272,7 +272,7 @@ export class Tasks { * @param callback The callback */ cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -317,7 +317,7 @@ export class Tasks { * @param callback The callback */ command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -352,7 +352,7 @@ export class Tasks { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/usages.ts b/packages/@azure/arm-datamigration/lib/operations/usages.ts index e7c873c543f4..34e58611e057 100644 --- a/packages/@azure/arm-datamigration/lib/operations/usages.ts +++ b/packages/@azure/arm-datamigration/lib/operations/usages.ts @@ -46,7 +46,7 @@ export class Usages { * @param callback The callback */ list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(location: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -76,7 +76,7 @@ export class Usages { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index 3bd4688ee739..bed154f5d891 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -2,10 +2,10 @@ "name": "@azure/arm-datamigration", "author": "Microsoft Corporation", "description": "DataMigrationServiceClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.461", "tslib": "^1.9.3" }, "keywords": [ @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-deploymentmanager/package.json b/packages/@azure/arm-deploymentmanager/package.json index 680a37cfc580..b797574a2f4a 100644 --- a/packages/@azure/arm-deploymentmanager/package.json +++ b/packages/@azure/arm-deploymentmanager/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-deploymentmanager", "author": "Microsoft Corporation", "description": "AzureDeploymentManager Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-deviceprovisioningservices/package.json b/packages/@azure/arm-deviceprovisioningservices/package.json index db98658a0e4e..3f98b5d47ba0 100644 --- a/packages/@azure/arm-deviceprovisioningservices/package.json +++ b/packages/@azure/arm-deviceprovisioningservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-deviceprovisioningservices", "author": "Microsoft Corporation", "description": "IotDpsClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-devspaces/package.json b/packages/@azure/arm-devspaces/package.json index 6b968d278f9d..91e306fabdf4 100644 --- a/packages/@azure/arm-devspaces/package.json +++ b/packages/@azure/arm-devspaces/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-devspaces", "author": "Microsoft Corporation", "description": "DevSpacesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-devtestlabs/package.json b/packages/@azure/arm-devtestlabs/package.json index b1d1eb381dd6..6e8499e00f87 100644 --- a/packages/@azure/arm-devtestlabs/package.json +++ b/packages/@azure/arm-devtestlabs/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-devtestlabs", "author": "Microsoft Corporation", "description": "DevTestLabsClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-dns/package.json b/packages/@azure/arm-dns/package.json index 6a59ef39fbbc..d8289248e939 100644 --- a/packages/@azure/arm-dns/package.json +++ b/packages/@azure/arm-dns/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-dns", "author": "Microsoft Corporation", "description": "DnsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-domainservices/package.json b/packages/@azure/arm-domainservices/package.json index 9fc611fb44b2..4b6219bdf2c6 100644 --- a/packages/@azure/arm-domainservices/package.json +++ b/packages/@azure/arm-domainservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-domainservices", "author": "Microsoft Corporation", "description": "DomainservicesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-eventgrid/package.json b/packages/@azure/arm-eventgrid/package.json index 1f435e14e2fd..813e89aafc4e 100644 --- a/packages/@azure/arm-eventgrid/package.json +++ b/packages/@azure/arm-eventgrid/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-eventgrid", "author": "Microsoft Corporation", "description": "EventGridManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-eventhub/package.json b/packages/@azure/arm-eventhub/package.json index b15b5af72eaf..5f48771b3648 100644 --- a/packages/@azure/arm-eventhub/package.json +++ b/packages/@azure/arm-eventhub/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-eventhub", "author": "Microsoft Corporation", "description": "EventHubManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-features/package.json b/packages/@azure/arm-features/package.json index 1baa28a0dd0d..c3922d9671b1 100644 --- a/packages/@azure/arm-features/package.json +++ b/packages/@azure/arm-features/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-features", "author": "Microsoft Corporation", "description": "FeatureClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-frontdoor/package.json b/packages/@azure/arm-frontdoor/package.json index de63e5e60fc0..00900d031db0 100644 --- a/packages/@azure/arm-frontdoor/package.json +++ b/packages/@azure/arm-frontdoor/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-frontdoor", "author": "Microsoft Corporation", "description": "FrontDoorManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-hanaonazure/package.json b/packages/@azure/arm-hanaonazure/package.json index 2e62e1677ce7..2bc3ca23a98f 100644 --- a/packages/@azure/arm-hanaonazure/package.json +++ b/packages/@azure/arm-hanaonazure/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-hanaonazure", "author": "Microsoft Corporation", "description": "HanaManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-hdinsight/package.json b/packages/@azure/arm-hdinsight/package.json index 41e3bb491b31..49f48dfc23ef 100644 --- a/packages/@azure/arm-hdinsight/package.json +++ b/packages/@azure/arm-hdinsight/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-hdinsight", "author": "Microsoft Corporation", "description": "HDInsightManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-iotcentral/package.json b/packages/@azure/arm-iotcentral/package.json index 42f2202c5693..b204509b7b76 100644 --- a/packages/@azure/arm-iotcentral/package.json +++ b/packages/@azure/arm-iotcentral/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-iotcentral", "author": "Microsoft Corporation", "description": "IotCentralClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-iothub/package.json b/packages/@azure/arm-iothub/package.json index e090762cdfb3..f391246b4479 100644 --- a/packages/@azure/arm-iothub/package.json +++ b/packages/@azure/arm-iothub/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-iothub", "author": "Microsoft Corporation", "description": "IotHubClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-iotspaces/package.json b/packages/@azure/arm-iotspaces/package.json index dc618db26da6..3e8ffa1b6fb3 100644 --- a/packages/@azure/arm-iotspaces/package.json +++ b/packages/@azure/arm-iotspaces/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-iotspaces", "author": "Microsoft Corporation", "description": "IoTSpacesClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-keyvault/package.json b/packages/@azure/arm-keyvault/package.json index a1ed870aab8a..0f0d2d1b5d98 100644 --- a/packages/@azure/arm-keyvault/package.json +++ b/packages/@azure/arm-keyvault/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-keyvault", "author": "Microsoft Corporation", "description": "KeyVaultManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-links/package.json b/packages/@azure/arm-links/package.json index 860de7ae6a8a..0e98ea4fd805 100644 --- a/packages/@azure/arm-links/package.json +++ b/packages/@azure/arm-links/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-links", "author": "Microsoft Corporation", "description": "ManagementLinkClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-locks/package.json b/packages/@azure/arm-locks/package.json index a2d9084bd305..fdc2b5b3764b 100644 --- a/packages/@azure/arm-locks/package.json +++ b/packages/@azure/arm-locks/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-locks", "author": "Microsoft Corporation", "description": "ManagementLockClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-logic/package.json b/packages/@azure/arm-logic/package.json index 3e8ef6be9f11..aa168f061d32 100644 --- a/packages/@azure/arm-logic/package.json +++ b/packages/@azure/arm-logic/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-logic", "author": "Microsoft Corporation", "description": "LogicManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-machinelearningcompute/package.json b/packages/@azure/arm-machinelearningcompute/package.json index 9484875927b7..7b3ea54c436c 100644 --- a/packages/@azure/arm-machinelearningcompute/package.json +++ b/packages/@azure/arm-machinelearningcompute/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-machinelearningcompute", "author": "Microsoft Corporation", "description": "MachineLearningComputeManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-machinelearningexperimentation/package.json b/packages/@azure/arm-machinelearningexperimentation/package.json index 424e6b0a03d8..57ba9d3c9185 100644 --- a/packages/@azure/arm-machinelearningexperimentation/package.json +++ b/packages/@azure/arm-machinelearningexperimentation/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-machinelearningexperimentation", "author": "Microsoft Corporation", "description": "MLTeamAccountManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-machinelearningservices/package.json b/packages/@azure/arm-machinelearningservices/package.json index 1d33d5458fc6..d02a288ebeab 100644 --- a/packages/@azure/arm-machinelearningservices/package.json +++ b/packages/@azure/arm-machinelearningservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-machinelearningservices", "author": "Microsoft Corporation", "description": "AzureMachineLearningWorkspaces Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-managedapplications/package.json b/packages/@azure/arm-managedapplications/package.json index c1ca4ac7d63a..faba6a07a048 100644 --- a/packages/@azure/arm-managedapplications/package.json +++ b/packages/@azure/arm-managedapplications/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-managedapplications", "author": "Microsoft Corporation", "description": "ManagedApplicationClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-managementgroups/package.json b/packages/@azure/arm-managementgroups/package.json index a8dc5e3b3c29..a125aef41b40 100644 --- a/packages/@azure/arm-managementgroups/package.json +++ b/packages/@azure/arm-managementgroups/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-managementgroups", "author": "Microsoft Corporation", "description": "ManagementGroupsAPI Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-managementpartner/package.json b/packages/@azure/arm-managementpartner/package.json index 3fa5fdc5cc37..afa167c0f237 100644 --- a/packages/@azure/arm-managementpartner/package.json +++ b/packages/@azure/arm-managementpartner/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-managementpartner", "author": "Microsoft Corporation", "description": "ACEProvisioningManagementPartnerAPI Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-maps/package.json b/packages/@azure/arm-maps/package.json index fe5c2f227128..72f6dd1a7c00 100644 --- a/packages/@azure/arm-maps/package.json +++ b/packages/@azure/arm-maps/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-maps", "author": "Microsoft Corporation", "description": "MapsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-mariadb/package.json b/packages/@azure/arm-mariadb/package.json index 63c0995065ec..27456ff22612 100644 --- a/packages/@azure/arm-mariadb/package.json +++ b/packages/@azure/arm-mariadb/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-mariadb", "author": "Microsoft Corporation", "description": "MariaDBManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-marketplaceordering/package.json b/packages/@azure/arm-marketplaceordering/package.json index 78ddfc7e56cf..4c2fbb660111 100644 --- a/packages/@azure/arm-marketplaceordering/package.json +++ b/packages/@azure/arm-marketplaceordering/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-marketplaceordering", "author": "Microsoft Corporation", "description": "MarketplaceOrderingAgreements Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-mediaservices/package.json b/packages/@azure/arm-mediaservices/package.json index 1e6087cbafa5..2e36d9c7eb77 100644 --- a/packages/@azure/arm-mediaservices/package.json +++ b/packages/@azure/arm-mediaservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-mediaservices", "author": "Microsoft Corporation", "description": "AzureMediaServices Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-migrate/package.json b/packages/@azure/arm-migrate/package.json index 5672fee51b46..c9ec34626988 100644 --- a/packages/@azure/arm-migrate/package.json +++ b/packages/@azure/arm-migrate/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-migrate", "author": "Microsoft Corporation", "description": "AzureMigrate Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-monitor/package.json b/packages/@azure/arm-monitor/package.json index 2a400e5d7575..00ea3070ee64 100644 --- a/packages/@azure/arm-monitor/package.json +++ b/packages/@azure/arm-monitor/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-monitor", "author": "Microsoft Corporation", "description": "MonitorManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-msi/package.json b/packages/@azure/arm-msi/package.json index b8be1f695edd..622fb047d089 100644 --- a/packages/@azure/arm-msi/package.json +++ b/packages/@azure/arm-msi/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-msi", "author": "Microsoft Corporation", "description": "ManagedServiceIdentityClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-mysql/package.json b/packages/@azure/arm-mysql/package.json index 2960262a0645..b794c7caa7c5 100644 --- a/packages/@azure/arm-mysql/package.json +++ b/packages/@azure/arm-mysql/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-mysql", "author": "Microsoft Corporation", "description": "MySQLManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-network/package.json b/packages/@azure/arm-network/package.json index c939cf282418..4e73774ec287 100644 --- a/packages/@azure/arm-network/package.json +++ b/packages/@azure/arm-network/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-network", "author": "Microsoft Corporation", "description": "NetworkManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-notificationhubs/package.json b/packages/@azure/arm-notificationhubs/package.json index 674bba77e5f4..fac31a4fb7a9 100644 --- a/packages/@azure/arm-notificationhubs/package.json +++ b/packages/@azure/arm-notificationhubs/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-notificationhubs", "author": "Microsoft Corporation", "description": "NotificationHubsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-operationalinsights/package.json b/packages/@azure/arm-operationalinsights/package.json index ec87419da8e0..c7831ff28a10 100644 --- a/packages/@azure/arm-operationalinsights/package.json +++ b/packages/@azure/arm-operationalinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-operationalinsights", "author": "Microsoft Corporation", "description": "OperationalInsightsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-operations/package.json b/packages/@azure/arm-operations/package.json index 7b8f993eb42a..518b0ebfca66 100644 --- a/packages/@azure/arm-operations/package.json +++ b/packages/@azure/arm-operations/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-operations", "author": "Microsoft Corporation", "description": "OperationsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-policy/package.json b/packages/@azure/arm-policy/package.json index 9962fd9d83f0..0778956743cd 100644 --- a/packages/@azure/arm-policy/package.json +++ b/packages/@azure/arm-policy/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-policy", "author": "Microsoft Corporation", "description": "PolicyClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-policyinsights/package.json b/packages/@azure/arm-policyinsights/package.json index c115ab68caf2..57fcf482193d 100644 --- a/packages/@azure/arm-policyinsights/package.json +++ b/packages/@azure/arm-policyinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-policyinsights", "author": "Microsoft Corporation", "description": "PolicyInsightsClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-postgresql/package.json b/packages/@azure/arm-postgresql/package.json index 98c05ce58406..6629fd14326e 100644 --- a/packages/@azure/arm-postgresql/package.json +++ b/packages/@azure/arm-postgresql/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-postgresql", "author": "Microsoft Corporation", "description": "PostgreSQLManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-powerbidedicated/package.json b/packages/@azure/arm-powerbidedicated/package.json index 9a3947067a89..94907c86c4b6 100644 --- a/packages/@azure/arm-powerbidedicated/package.json +++ b/packages/@azure/arm-powerbidedicated/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-powerbidedicated", "author": "Microsoft Corporation", "description": "PowerBIDedicatedManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-powerbiembedded/package.json b/packages/@azure/arm-powerbiembedded/package.json index 7bfbff37ccf8..4a15c0d4d979 100644 --- a/packages/@azure/arm-powerbiembedded/package.json +++ b/packages/@azure/arm-powerbiembedded/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-powerbiembedded", "author": "Microsoft Corporation", "description": "PowerBIEmbeddedManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-recoveryservices-siterecovery/package.json b/packages/@azure/arm-recoveryservices-siterecovery/package.json index d39959dceaa4..bd8fe4fc1130 100644 --- a/packages/@azure/arm-recoveryservices-siterecovery/package.json +++ b/packages/@azure/arm-recoveryservices-siterecovery/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-recoveryservices-siterecovery", "author": "Microsoft Corporation", "description": "SiteRecoveryManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-recoveryservices/package.json b/packages/@azure/arm-recoveryservices/package.json index 50dee451d97b..49a5b0c39b18 100644 --- a/packages/@azure/arm-recoveryservices/package.json +++ b/packages/@azure/arm-recoveryservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-recoveryservices", "author": "Microsoft Corporation", "description": "RecoveryServicesClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-recoveryservicesbackup/package.json b/packages/@azure/arm-recoveryservicesbackup/package.json index cb2df2bef51a..af68e71e4fc9 100644 --- a/packages/@azure/arm-recoveryservicesbackup/package.json +++ b/packages/@azure/arm-recoveryservicesbackup/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-recoveryservicesbackup", "author": "Microsoft Corporation", "description": "RecoveryServicesBackupClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-rediscache/package.json b/packages/@azure/arm-rediscache/package.json index d8e005fd92f2..735e5ef8f43b 100644 --- a/packages/@azure/arm-rediscache/package.json +++ b/packages/@azure/arm-rediscache/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-rediscache", "author": "Microsoft Corporation", "description": "RedisManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.166", "ms-rest-js": "^1.0.439", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-relay/package.json b/packages/@azure/arm-relay/package.json index 51ffd8f3f299..68e8d375c05f 100644 --- a/packages/@azure/arm-relay/package.json +++ b/packages/@azure/arm-relay/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-relay", "author": "Microsoft Corporation", "description": "RelayManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-reservations/package.json b/packages/@azure/arm-reservations/package.json index 04d5a612ffd0..a50c1fa1060f 100644 --- a/packages/@azure/arm-reservations/package.json +++ b/packages/@azure/arm-reservations/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-reservations", "author": "Microsoft Corporation", "description": "AzureReservationAPI Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-resourcehealth/package.json b/packages/@azure/arm-resourcehealth/package.json index 75ac310652cd..24bc8351c7af 100644 --- a/packages/@azure/arm-resourcehealth/package.json +++ b/packages/@azure/arm-resourcehealth/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-resourcehealth", "author": "Microsoft Corporation", "description": "MicrosoftResourceHealth Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-resources/package.json b/packages/@azure/arm-resources/package.json index a69238d85e8d..e5bc6f4222f6 100644 --- a/packages/@azure/arm-resources/package.json +++ b/packages/@azure/arm-resources/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-resources", "author": "Microsoft Corporation", "description": "ResourceManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-search/package.json b/packages/@azure/arm-search/package.json index 3c702c1b1d6f..84e508bbd1c6 100644 --- a/packages/@azure/arm-search/package.json +++ b/packages/@azure/arm-search/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-search", "author": "Microsoft Corporation", "description": "SearchManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-security/package.json b/packages/@azure/arm-security/package.json index dacc3d8e9f57..351897c116ac 100644 --- a/packages/@azure/arm-security/package.json +++ b/packages/@azure/arm-security/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-security", "author": "Microsoft Corporation", "description": "SecurityCenter Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-servicebus/package.json b/packages/@azure/arm-servicebus/package.json index 4b6862235db6..8b2391b61ac1 100644 --- a/packages/@azure/arm-servicebus/package.json +++ b/packages/@azure/arm-servicebus/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-servicebus", "author": "Microsoft Corporation", "description": "ServiceBusManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-servicefabricmesh/package.json b/packages/@azure/arm-servicefabricmesh/package.json index 2215fe7647ef..ad8fe74fdb93 100644 --- a/packages/@azure/arm-servicefabricmesh/package.json +++ b/packages/@azure/arm-servicefabricmesh/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-servicefabricmesh", "author": "Microsoft Corporation", "description": "ServiceFabricMeshManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-servicemap/package.json b/packages/@azure/arm-servicemap/package.json index 68cdfae0f798..b8411c566c3d 100644 --- a/packages/@azure/arm-servicemap/package.json +++ b/packages/@azure/arm-servicemap/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-servicemap", "author": "Microsoft Corporation", "description": "ServicemapManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-signalr/package.json b/packages/@azure/arm-signalr/package.json index 8abcc030cfe6..453fb72e91b3 100644 --- a/packages/@azure/arm-signalr/package.json +++ b/packages/@azure/arm-signalr/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-signalr", "author": "Microsoft Corporation", "description": "SignalRManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-sql/package.json b/packages/@azure/arm-sql/package.json index 01938af85ae2..29af2561c37e 100644 --- a/packages/@azure/arm-sql/package.json +++ b/packages/@azure/arm-sql/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-sql", "author": "Microsoft Corporation", "description": "SqlManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-storage/package.json b/packages/@azure/arm-storage/package.json index 2f19c2b59418..164e5950417a 100644 --- a/packages/@azure/arm-storage/package.json +++ b/packages/@azure/arm-storage/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storage", "author": "Microsoft Corporation", "description": "StorageManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-storageimportexport/package.json b/packages/@azure/arm-storageimportexport/package.json index 68bc95678e77..ec13ac16e034 100644 --- a/packages/@azure/arm-storageimportexport/package.json +++ b/packages/@azure/arm-storageimportexport/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storageimportexport", "author": "Microsoft Corporation", "description": "StorageImportExportManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-storagesync/package.json b/packages/@azure/arm-storagesync/package.json index 983904bca4e1..3af37c9d8ad9 100644 --- a/packages/@azure/arm-storagesync/package.json +++ b/packages/@azure/arm-storagesync/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storagesync", "author": "Microsoft Corporation", "description": "StorageSyncManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-storsimple1200series/package.json b/packages/@azure/arm-storsimple1200series/package.json index ee888de2c857..7e5b86011de2 100644 --- a/packages/@azure/arm-storsimple1200series/package.json +++ b/packages/@azure/arm-storsimple1200series/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storsimple1200series", "author": "Microsoft Corporation", "description": "StorSimpleManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-storsimple8000series/package.json b/packages/@azure/arm-storsimple8000series/package.json index 3c9fe9aacd61..de8bf9d5d2c5 100644 --- a/packages/@azure/arm-storsimple8000series/package.json +++ b/packages/@azure/arm-storsimple8000series/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storsimple8000series", "author": "Microsoft Corporation", "description": "StorSimple8000SeriesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-streamanalytics/package.json b/packages/@azure/arm-streamanalytics/package.json index b19f13432402..f04b5e49e79d 100644 --- a/packages/@azure/arm-streamanalytics/package.json +++ b/packages/@azure/arm-streamanalytics/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-streamanalytics", "author": "Microsoft Corporation", "description": "StreamAnalyticsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-subscriptions/package.json b/packages/@azure/arm-subscriptions/package.json index 5263e9775a32..c6ec1d6ae92a 100644 --- a/packages/@azure/arm-subscriptions/package.json +++ b/packages/@azure/arm-subscriptions/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-subscriptions", "author": "Microsoft Corporation", "description": "SubscriptionClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-timeseriesinsights/package.json b/packages/@azure/arm-timeseriesinsights/package.json index 46b388dd95ec..bf4f6f7e41ed 100644 --- a/packages/@azure/arm-timeseriesinsights/package.json +++ b/packages/@azure/arm-timeseriesinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-timeseriesinsights", "author": "Microsoft Corporation", "description": "TimeSeriesInsightsClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-trafficmanager/package.json b/packages/@azure/arm-trafficmanager/package.json index d5b3da9f49f8..6f94b7cb6404 100644 --- a/packages/@azure/arm-trafficmanager/package.json +++ b/packages/@azure/arm-trafficmanager/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-trafficmanager", "author": "Microsoft Corporation", "description": "TrafficManagerManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/arm-visualstudio/package.json b/packages/@azure/arm-visualstudio/package.json index 85d3dc39e95c..db164c5fb0be 100644 --- a/packages/@azure/arm-visualstudio/package.json +++ b/packages/@azure/arm-visualstudio/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-visualstudio", "author": "Microsoft Corporation", "description": "VisualStudioResourceProviderClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0-preview", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/batch/package.json b/packages/@azure/batch/package.json index 3c78aa7a0456..babffba13fcf 100644 --- a/packages/@azure/batch/package.json +++ b/packages/@azure/batch/package.json @@ -2,7 +2,7 @@ "name": "@azure/batch", "author": "Microsoft Corporation", "description": "BatchServiceClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-autosuggest/package.json b/packages/@azure/cognitiveservices-autosuggest/package.json index 5baeba71c353..a2da7f6bb575 100644 --- a/packages/@azure/cognitiveservices-autosuggest/package.json +++ b/packages/@azure/cognitiveservices-autosuggest/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-autosuggest", "author": "Microsoft Corporation", "description": "AutoSuggestClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-computervision/package.json b/packages/@azure/cognitiveservices-computervision/package.json index ecb7610ee610..230e7130c089 100644 --- a/packages/@azure/cognitiveservices-computervision/package.json +++ b/packages/@azure/cognitiveservices-computervision/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-computervision", "author": "Microsoft Corporation", "description": "ComputerVisionClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-contentmoderator/package.json b/packages/@azure/cognitiveservices-contentmoderator/package.json index dc3b8eed1164..88f341fa5f08 100644 --- a/packages/@azure/cognitiveservices-contentmoderator/package.json +++ b/packages/@azure/cognitiveservices-contentmoderator/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-contentmoderator", "author": "Microsoft Corporation", "description": "ContentModeratorClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-customimagesearch/package.json b/packages/@azure/cognitiveservices-customimagesearch/package.json index 15bda1f0df18..f170a681ccc0 100644 --- a/packages/@azure/cognitiveservices-customimagesearch/package.json +++ b/packages/@azure/cognitiveservices-customimagesearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-customimagesearch", "author": "Microsoft Corporation", "description": "CustomImageSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-customsearch/package.json b/packages/@azure/cognitiveservices-customsearch/package.json index b6c1d364b3e9..eb6cc078bdee 100644 --- a/packages/@azure/cognitiveservices-customsearch/package.json +++ b/packages/@azure/cognitiveservices-customsearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-customsearch", "author": "Microsoft Corporation", "description": "CustomSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-customvision-prediction/package.json b/packages/@azure/cognitiveservices-customvision-prediction/package.json index 32a1fe1ad187..3d5b57b76b2e 100644 --- a/packages/@azure/cognitiveservices-customvision-prediction/package.json +++ b/packages/@azure/cognitiveservices-customvision-prediction/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-customvision-prediction", "author": "Microsoft Corporation", "description": "PredictionAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-customvision-training/package.json b/packages/@azure/cognitiveservices-customvision-training/package.json index 60330ab3df9d..1a5d11315875 100644 --- a/packages/@azure/cognitiveservices-customvision-training/package.json +++ b/packages/@azure/cognitiveservices-customvision-training/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-customvision-training", "author": "Microsoft Corporation", "description": "TrainingAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-entitysearch/package.json b/packages/@azure/cognitiveservices-entitysearch/package.json index f592172e8972..9c5567ffa514 100644 --- a/packages/@azure/cognitiveservices-entitysearch/package.json +++ b/packages/@azure/cognitiveservices-entitysearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-entitysearch", "author": "Microsoft Corporation", "description": "EntitySearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-face/package.json b/packages/@azure/cognitiveservices-face/package.json index ed86978ad025..3ba5e9eed14f 100644 --- a/packages/@azure/cognitiveservices-face/package.json +++ b/packages/@azure/cognitiveservices-face/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-face", "author": "Microsoft Corporation", "description": "FaceClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-imagesearch/package.json b/packages/@azure/cognitiveservices-imagesearch/package.json index c189e6803474..a9f622dcdc7d 100644 --- a/packages/@azure/cognitiveservices-imagesearch/package.json +++ b/packages/@azure/cognitiveservices-imagesearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-imagesearch", "author": "Microsoft Corporation", "description": "ImageSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-luis-authoring/package.json b/packages/@azure/cognitiveservices-luis-authoring/package.json index 40bd063af430..5f366d2473c3 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/package.json +++ b/packages/@azure/cognitiveservices-luis-authoring/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-luis-authoring", "author": "Microsoft Corporation", "description": "LUISAuthoringClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-luis-runtime/package.json b/packages/@azure/cognitiveservices-luis-runtime/package.json index 6b36a41112df..025713912a13 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/package.json +++ b/packages/@azure/cognitiveservices-luis-runtime/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-luis-runtime", "author": "Microsoft Corporation", "description": "LUISRuntimeClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-newssearch/package.json b/packages/@azure/cognitiveservices-newssearch/package.json index 69e8e1f13482..1624d11a6ab5 100644 --- a/packages/@azure/cognitiveservices-newssearch/package.json +++ b/packages/@azure/cognitiveservices-newssearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-newssearch", "author": "Microsoft Corporation", "description": "NewsSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-spellcheck/package.json b/packages/@azure/cognitiveservices-spellcheck/package.json index 89c19965d10f..88b685f55b10 100644 --- a/packages/@azure/cognitiveservices-spellcheck/package.json +++ b/packages/@azure/cognitiveservices-spellcheck/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-spellcheck", "author": "Microsoft Corporation", "description": "SpellCheckAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-textanalytics/package.json b/packages/@azure/cognitiveservices-textanalytics/package.json index 9242d90e890e..1643dc300e28 100644 --- a/packages/@azure/cognitiveservices-textanalytics/package.json +++ b/packages/@azure/cognitiveservices-textanalytics/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-textanalytics", "author": "Microsoft Corporation", "description": "TextAnalyticsClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-videosearch/package.json b/packages/@azure/cognitiveservices-videosearch/package.json index f542dd8fb38e..bbe2266ceb97 100644 --- a/packages/@azure/cognitiveservices-videosearch/package.json +++ b/packages/@azure/cognitiveservices-videosearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-videosearch", "author": "Microsoft Corporation", "description": "VideoSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-visualsearch/package.json b/packages/@azure/cognitiveservices-visualsearch/package.json index 4c18e4b9cb03..cd67926903a1 100644 --- a/packages/@azure/cognitiveservices-visualsearch/package.json +++ b/packages/@azure/cognitiveservices-visualsearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-visualsearch", "author": "Microsoft Corporation", "description": "VisualSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/cognitiveservices-websearch/package.json b/packages/@azure/cognitiveservices-websearch/package.json index 438816f4a6aa..df557183c624 100644 --- a/packages/@azure/cognitiveservices-websearch/package.json +++ b/packages/@azure/cognitiveservices-websearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-websearch", "author": "Microsoft Corporation", "description": "WebSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/eventgrid/package.json b/packages/@azure/eventgrid/package.json index 47b8d32d7980..49de1bf5d991 100644 --- a/packages/@azure/eventgrid/package.json +++ b/packages/@azure/eventgrid/package.json @@ -2,7 +2,7 @@ "name": "@azure/eventgrid", "author": "Microsoft Corporation", "description": "EventGridClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/graph/package.json b/packages/@azure/graph/package.json index 5395f9b5e457..301cc12f396a 100644 --- a/packages/@azure/graph/package.json +++ b/packages/@azure/graph/package.json @@ -2,7 +2,7 @@ "name": "@azure/graph", "author": "Microsoft Corporation", "description": "GraphRbacManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/loganalytics/package.json b/packages/@azure/loganalytics/package.json index 824d198f7e61..b3fce1e8438d 100644 --- a/packages/@azure/loganalytics/package.json +++ b/packages/@azure/loganalytics/package.json @@ -2,7 +2,7 @@ "name": "@azure/loganalytics", "author": "Microsoft Corporation", "description": "LogAnalyticsClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} \ No newline at end of file +} diff --git a/packages/@azure/servicefabric/package.json b/packages/@azure/servicefabric/package.json index 17372a2f5ac0..2d2edb306763 100644 --- a/packages/@azure/servicefabric/package.json +++ b/packages/@azure/servicefabric/package.json @@ -2,7 +2,7 @@ "name": "@azure/servicefabric", "author": "Microsoft Corporation", "description": "ServiceFabricClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "1.0.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +} From 1122ee4dd3a1797975e2117c8178b551c6f60e34 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Tue, 6 Nov 2018 17:51:51 +0000 Subject: [PATCH 20/21] Reset to master --- azure-pipelines.yml | 24 +- gulpfile.ts | 8 +- .../applicationinsights-query/package.json | 4 +- packages/@azure/arm-advisor/package.json | 4 +- .../@azure/arm-analysisservices/package.json | 4 +- .../@azure/arm-apimanagement/package.json | 4 +- packages/@azure/arm-appinsights/package.json | 4 +- packages/@azure/arm-appservice/package.json | 4 +- .../@azure/arm-authorization/package.json | 4 +- packages/@azure/arm-automation/package.json | 4 +- packages/@azure/arm-azurestack/package.json | 4 +- packages/@azure/arm-batch/package.json | 4 +- packages/@azure/arm-batchai/package.json | 4 +- packages/@azure/arm-billing/package.json | 4 +- packages/@azure/arm-cdn/package.json | 4 +- .../@azure/arm-cognitiveservices/package.json | 4 +- packages/@azure/arm-commerce/package.json | 4 +- packages/@azure/arm-compute/package.json | 4 +- packages/@azure/arm-consumption/package.json | 4 +- .../@azure/arm-containerinstance/package.json | 4 +- .../@azure/arm-containerregistry/package.json | 4 +- .../@azure/arm-containerservice/package.json | 4 +- packages/@azure/arm-cosmosdb/package.json | 4 +- .../@azure/arm-customerinsights/package.json | 4 +- packages/@azure/arm-databox/package.json | 4 +- packages/@azure/arm-databricks/package.json | 4 +- packages/@azure/arm-datacatalog/package.json | 4 +- packages/@azure/arm-datafactory/package.json | 4 +- .../lib/dataMigrationServiceClientContext.ts | 2 - .../arm-datamigration/lib/models/index.ts | 619 +++++++++++++++--- .../lib/models/parameters.ts | 2 + .../arm-datamigration/lib/operations/files.ts | 16 +- .../lib/operations/operations.ts | 4 +- .../lib/operations/projects.ts | 12 +- .../lib/operations/resourceSkus.ts | 4 +- .../lib/operations/services.ts | 20 +- .../arm-datamigration/lib/operations/tasks.ts | 16 +- .../lib/operations/usages.ts | 4 +- .../@azure/arm-datamigration/package.json | 6 +- .../@azure/arm-deploymentmanager/package.json | 4 +- .../package.json | 4 +- packages/@azure/arm-devspaces/package.json | 4 +- packages/@azure/arm-devtestlabs/package.json | 4 +- packages/@azure/arm-dns/package.json | 4 +- .../@azure/arm-domainservices/package.json | 4 +- packages/@azure/arm-eventgrid/package.json | 4 +- packages/@azure/arm-eventhub/package.json | 4 +- packages/@azure/arm-features/package.json | 4 +- packages/@azure/arm-frontdoor/package.json | 4 +- packages/@azure/arm-hanaonazure/package.json | 4 +- packages/@azure/arm-hdinsight/package.json | 4 +- packages/@azure/arm-iotcentral/package.json | 4 +- packages/@azure/arm-iothub/package.json | 4 +- packages/@azure/arm-iotspaces/package.json | 4 +- packages/@azure/arm-keyvault/package.json | 4 +- packages/@azure/arm-links/package.json | 4 +- packages/@azure/arm-locks/package.json | 4 +- packages/@azure/arm-logic/package.json | 4 +- .../arm-machinelearningcompute/package.json | 4 +- .../package.json | 4 +- .../arm-machinelearningservices/package.json | 4 +- .../arm-managedapplications/package.json | 4 +- .../@azure/arm-managementgroups/package.json | 4 +- .../@azure/arm-managementpartner/package.json | 4 +- packages/@azure/arm-maps/package.json | 4 +- packages/@azure/arm-mariadb/package.json | 4 +- .../arm-marketplaceordering/package.json | 4 +- .../@azure/arm-mediaservices/package.json | 4 +- packages/@azure/arm-migrate/package.json | 4 +- packages/@azure/arm-monitor/package.json | 4 +- packages/@azure/arm-msi/package.json | 4 +- packages/@azure/arm-mysql/package.json | 4 +- packages/@azure/arm-network/package.json | 4 +- .../@azure/arm-notificationhubs/package.json | 4 +- .../arm-operationalinsights/package.json | 4 +- packages/@azure/arm-operations/package.json | 4 +- packages/@azure/arm-policy/package.json | 4 +- .../@azure/arm-policyinsights/package.json | 4 +- packages/@azure/arm-postgresql/package.json | 4 +- .../@azure/arm-powerbidedicated/package.json | 4 +- .../@azure/arm-powerbiembedded/package.json | 4 +- .../package.json | 4 +- .../@azure/arm-recoveryservices/package.json | 4 +- .../arm-recoveryservicesbackup/package.json | 4 +- packages/@azure/arm-rediscache/package.json | 4 +- packages/@azure/arm-relay/package.json | 4 +- packages/@azure/arm-reservations/package.json | 4 +- .../@azure/arm-resourcehealth/package.json | 4 +- packages/@azure/arm-resources/package.json | 4 +- packages/@azure/arm-search/package.json | 4 +- packages/@azure/arm-security/package.json | 4 +- packages/@azure/arm-servicebus/package.json | 4 +- .../@azure/arm-servicefabricmesh/package.json | 4 +- packages/@azure/arm-servicemap/package.json | 4 +- packages/@azure/arm-signalr/package.json | 4 +- packages/@azure/arm-sql/package.json | 4 +- packages/@azure/arm-storage/package.json | 4 +- .../arm-storageimportexport/package.json | 4 +- packages/@azure/arm-storagesync/package.json | 4 +- .../arm-storsimple1200series/package.json | 4 +- .../arm-storsimple8000series/package.json | 4 +- .../@azure/arm-streamanalytics/package.json | 4 +- .../@azure/arm-subscriptions/package.json | 4 +- .../arm-timeseriesinsights/package.json | 4 +- .../@azure/arm-trafficmanager/package.json | 4 +- packages/@azure/arm-visualstudio/package.json | 4 +- packages/@azure/batch/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../cognitiveservices-face/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../cognitiveservices-newssearch/package.json | 4 +- .../cognitiveservices-spellcheck/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../cognitiveservices-websearch/package.json | 4 +- packages/@azure/eventgrid/package.json | 4 +- packages/@azure/graph/package.json | 4 +- packages/@azure/loganalytics/package.json | 4 +- packages/@azure/servicefabric/package.json | 4 +- 129 files changed, 836 insertions(+), 365 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 06fd69a449c8..a5a886a830f5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,6 +6,9 @@ pool: vmImage: 'Ubuntu 16.04' +trigger: +- master + steps: - task: NodeTool@0 inputs: @@ -13,13 +16,20 @@ steps: displayName: 'Install Node.js' - script: cd .. && git clone https://github.com/Azure/azure-rest-api-specs - displayName: git clone https://github.com/Azure/azure-rest-api-specs -- script: npm install - displayName: npm install -- script: npm run build - displayName: npm run build + displayName: cd.. && git clone https://github.com/Azure/azure-rest-api-specs + +- task: Npm@1 + displayName: 'npm install' + inputs: + verbose: false + +- task: Npm@1 + displayName: 'npm run build' + inputs: + command: custom + verbose: false + customCommand: run build - task: PublishBuildArtifacts@1 inputs: - pathtoPublish: $(Build.SourcesDirectory)/pack - condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') \ No newline at end of file + pathtoPublish: $(Build.SourcesDirectory)/drop diff --git a/gulpfile.ts b/gulpfile.ts index 310fc86e0b65..e40d2e2eeee5 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -110,9 +110,9 @@ const createPackages = (type: CreatePackageType = "pack") => { let publishedPackages = 0; let publishedPackagesSkipped = 0; - const packPath = path.join(azureSDKForJSRepoRoot, "pack"); - if (!fs.existsSync(packPath)) { - fs.mkdirSync(packPath); + const dropPath = path.join(azureSDKForJSRepoRoot, "drop"); + if (!fs.existsSync(dropPath)) { + fs.mkdirSync(dropPath); } for (const typeScriptReadmeFilePath of typeScriptReadmeFilePaths) { _logger.logTrace(`INFO: Processing ${typeScriptReadmeFilePath}`); @@ -171,7 +171,7 @@ const createPackages = (type: CreatePackageType = "pack") => { execSync(`npm ${type}`, { cwd: packageFolderPath }); const packFileName = `${packageName.replace("/", "-").replace("@", "")}-${localPackageVersion}.tgz` const packFilePath = path.join(packageFolderPath, packFileName); - fs.renameSync(packFilePath, path.join(packPath, packFileName)); + fs.renameSync(packFilePath, path.join(dropPath, packFileName)); console.log(`Filename: ${packFileName}`); publishedPackages++; } diff --git a/packages/@azure/applicationinsights-query/package.json b/packages/@azure/applicationinsights-query/package.json index 9afe8f5a784b..5e13d3e7c1f5 100644 --- a/packages/@azure/applicationinsights-query/package.json +++ b/packages/@azure/applicationinsights-query/package.json @@ -2,7 +2,7 @@ "name": "@azure/applicationinsights-query", "author": "Microsoft Corporation", "description": "ApplicationInsightsDataClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-advisor/package.json b/packages/@azure/arm-advisor/package.json index 29182098cbe7..56cdf9637c40 100644 --- a/packages/@azure/arm-advisor/package.json +++ b/packages/@azure/arm-advisor/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-advisor", "author": "Microsoft Corporation", "description": "AdvisorManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-analysisservices/package.json b/packages/@azure/arm-analysisservices/package.json index 6c710cd6457e..d139712ff53b 100644 --- a/packages/@azure/arm-analysisservices/package.json +++ b/packages/@azure/arm-analysisservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-analysisservices", "author": "Microsoft Corporation", "description": "AnalysisServicesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-apimanagement/package.json b/packages/@azure/arm-apimanagement/package.json index d21f66fc38c5..ecd4835aeb00 100644 --- a/packages/@azure/arm-apimanagement/package.json +++ b/packages/@azure/arm-apimanagement/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-apimanagement", "author": "Microsoft Corporation", "description": "ApiManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-appinsights/package.json b/packages/@azure/arm-appinsights/package.json index 29176de86065..8b949d0306f3 100644 --- a/packages/@azure/arm-appinsights/package.json +++ b/packages/@azure/arm-appinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-appinsights", "author": "Microsoft Corporation", "description": "ApplicationInsightsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-appservice/package.json b/packages/@azure/arm-appservice/package.json index f2652e172b52..4f3f29fe3a34 100644 --- a/packages/@azure/arm-appservice/package.json +++ b/packages/@azure/arm-appservice/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-appservice", "author": "Microsoft Corporation", "description": "WebSiteManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-authorization/package.json b/packages/@azure/arm-authorization/package.json index 27e7e81ae7e5..38cb0e132491 100644 --- a/packages/@azure/arm-authorization/package.json +++ b/packages/@azure/arm-authorization/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-authorization", "author": "Microsoft Corporation", "description": "AuthorizationManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-automation/package.json b/packages/@azure/arm-automation/package.json index f7fc540f6e58..679108bf3ee5 100644 --- a/packages/@azure/arm-automation/package.json +++ b/packages/@azure/arm-automation/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-automation", "author": "Microsoft Corporation", "description": "AutomationClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-azurestack/package.json b/packages/@azure/arm-azurestack/package.json index 15c7ee6e0686..fcc327a14238 100644 --- a/packages/@azure/arm-azurestack/package.json +++ b/packages/@azure/arm-azurestack/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-azurestack", "author": "Microsoft Corporation", "description": "AzureStackManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-batch/package.json b/packages/@azure/arm-batch/package.json index b5ecf39edf85..7f35e35bf526 100644 --- a/packages/@azure/arm-batch/package.json +++ b/packages/@azure/arm-batch/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-batch", "author": "Microsoft Corporation", "description": "BatchManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-batchai/package.json b/packages/@azure/arm-batchai/package.json index 5d382e1541de..c9502c184c33 100644 --- a/packages/@azure/arm-batchai/package.json +++ b/packages/@azure/arm-batchai/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-batchai", "author": "Microsoft Corporation", "description": "BatchAIManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-billing/package.json b/packages/@azure/arm-billing/package.json index 9a08c2800cec..2bee691f3351 100644 --- a/packages/@azure/arm-billing/package.json +++ b/packages/@azure/arm-billing/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-billing", "author": "Microsoft Corporation", "description": "BillingManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-cdn/package.json b/packages/@azure/arm-cdn/package.json index 45f3d9c8bd42..8472ccab15ad 100644 --- a/packages/@azure/arm-cdn/package.json +++ b/packages/@azure/arm-cdn/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-cdn", "author": "Microsoft Corporation", "description": "CdnManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-cognitiveservices/package.json b/packages/@azure/arm-cognitiveservices/package.json index 066189442dca..1e452af267e6 100644 --- a/packages/@azure/arm-cognitiveservices/package.json +++ b/packages/@azure/arm-cognitiveservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-cognitiveservices", "author": "Microsoft Corporation", "description": "CognitiveServicesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-commerce/package.json b/packages/@azure/arm-commerce/package.json index 954fb9e21441..ee21dee4e0a2 100644 --- a/packages/@azure/arm-commerce/package.json +++ b/packages/@azure/arm-commerce/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-commerce", "author": "Microsoft Corporation", "description": "UsageManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-compute/package.json b/packages/@azure/arm-compute/package.json index fb8ec771eda1..86761c32687b 100644 --- a/packages/@azure/arm-compute/package.json +++ b/packages/@azure/arm-compute/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-compute", "author": "Microsoft Corporation", "description": "ComputeManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-consumption/package.json b/packages/@azure/arm-consumption/package.json index 2a68a654c547..e1617361ac74 100644 --- a/packages/@azure/arm-consumption/package.json +++ b/packages/@azure/arm-consumption/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-consumption", "author": "Microsoft Corporation", "description": "ConsumptionManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-containerinstance/package.json b/packages/@azure/arm-containerinstance/package.json index cdb32edbf81f..aac696d442cb 100644 --- a/packages/@azure/arm-containerinstance/package.json +++ b/packages/@azure/arm-containerinstance/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-containerinstance", "author": "Microsoft Corporation", "description": "ContainerInstanceManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-containerregistry/package.json b/packages/@azure/arm-containerregistry/package.json index 96f25c8d27d3..4e48a822dcbf 100644 --- a/packages/@azure/arm-containerregistry/package.json +++ b/packages/@azure/arm-containerregistry/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-containerregistry", "author": "Microsoft Corporation", "description": "ContainerRegistryManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-containerservice/package.json b/packages/@azure/arm-containerservice/package.json index d8e25e319d7d..1f8d32b32470 100644 --- a/packages/@azure/arm-containerservice/package.json +++ b/packages/@azure/arm-containerservice/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-containerservice", "author": "Microsoft Corporation", "description": "ContainerServiceClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-cosmosdb/package.json b/packages/@azure/arm-cosmosdb/package.json index f0f88273d508..bcdf19d9e67a 100644 --- a/packages/@azure/arm-cosmosdb/package.json +++ b/packages/@azure/arm-cosmosdb/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-cosmosdb", "author": "Microsoft Corporation", "description": "CosmosDBManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-customerinsights/package.json b/packages/@azure/arm-customerinsights/package.json index 239345d7ee35..1757ec520866 100644 --- a/packages/@azure/arm-customerinsights/package.json +++ b/packages/@azure/arm-customerinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-customerinsights", "author": "Microsoft Corporation", "description": "CustomerInsightsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-databox/package.json b/packages/@azure/arm-databox/package.json index 848bf016e0cd..54b82bbb1273 100644 --- a/packages/@azure/arm-databox/package.json +++ b/packages/@azure/arm-databox/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-databox", "author": "Microsoft Corporation", "description": "DataBoxManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.0.1", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-databricks/package.json b/packages/@azure/arm-databricks/package.json index 5eaf7830d7cb..da3b8d658da9 100644 --- a/packages/@azure/arm-databricks/package.json +++ b/packages/@azure/arm-databricks/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-databricks", "author": "Microsoft Corporation", "description": "DatabricksClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-datacatalog/package.json b/packages/@azure/arm-datacatalog/package.json index ca270d29e914..c652c2b82e71 100644 --- a/packages/@azure/arm-datacatalog/package.json +++ b/packages/@azure/arm-datacatalog/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-datacatalog", "author": "Microsoft Corporation", "description": "DataCatalogRestClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-datafactory/package.json b/packages/@azure/arm-datafactory/package.json index 399e19f9d27f..e4e047afb03a 100644 --- a/packages/@azure/arm-datafactory/package.json +++ b/packages/@azure/arm-datafactory/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-datafactory", "author": "Microsoft Corporation", "description": "DataFactoryManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 6e4b755a16fe..594169f396a4 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -17,7 +17,6 @@ const packageVersion = "1.0.0-preview"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; - apiVersion?: string; subscriptionId: string; /** @@ -44,7 +43,6 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC super(credentials, options); - this.apiVersion = '2018-07-15-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index 978c6652c980..308b8d96c728 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -7320,350 +7320,811 @@ export interface FileList extends Array { /** * Defines values for CommandState. - * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', 'Failed' + * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + * 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: CommandState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type CommandState = 'Unknown' | 'Accepted' | 'Running' | 'Succeeded' | 'Failed'; +export enum CommandState { + Unknown = 'Unknown', + Accepted = 'Accepted', + Running = 'Running', + Succeeded = 'Succeeded', + Failed = 'Failed', +} /** * Defines values for SqlSourcePlatform. * Possible values include: 'SqlOnPrem' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SqlSourcePlatform = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type SqlSourcePlatform = 'SqlOnPrem'; +export enum SqlSourcePlatform { + SqlOnPrem = 'SqlOnPrem', +} /** * Defines values for AuthenticationType. - * Possible values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', - * 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' + * Possible values include: 'None', 'WindowsAuthentication', + * 'SqlAuthentication', 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: AuthenticationType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type AuthenticationType = 'None' | 'WindowsAuthentication' | 'SqlAuthentication' | 'ActiveDirectoryIntegrated' | 'ActiveDirectoryPassword'; +export enum AuthenticationType { + None = 'None', + WindowsAuthentication = 'WindowsAuthentication', + SqlAuthentication = 'SqlAuthentication', + ActiveDirectoryIntegrated = 'ActiveDirectoryIntegrated', + ActiveDirectoryPassword = 'ActiveDirectoryPassword', +} /** * Defines values for MongoDbErrorType. * Possible values include: 'Error', 'ValidationError', 'Warning' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbErrorType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MongoDbErrorType = 'Error' | 'ValidationError' | 'Warning'; +export enum MongoDbErrorType { + Error = 'Error', + ValidationError = 'ValidationError', + Warning = 'Warning', +} /** * Defines values for MongoDbMigrationState. - * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', - * 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' + * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', + * 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', + * 'Complete', 'Canceled', 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbMigrationState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MongoDbMigrationState = 'NotStarted' | 'ValidatingInput' | 'Initializing' | 'Restarting' | 'Copying' | 'InitialReplay' | 'Replaying' | 'Finalizing' | 'Complete' | 'Canceled' | 'Failed'; +export enum MongoDbMigrationState { + NotStarted = 'NotStarted', + ValidatingInput = 'ValidatingInput', + Initializing = 'Initializing', + Restarting = 'Restarting', + Copying = 'Copying', + InitialReplay = 'InitialReplay', + Replaying = 'Replaying', + Finalizing = 'Finalizing', + Complete = 'Complete', + Canceled = 'Canceled', + Failed = 'Failed', +} /** * Defines values for MongoDbShardKeyOrder. * Possible values include: 'Forward', 'Reverse', 'Hashed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbShardKeyOrder = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MongoDbShardKeyOrder = 'Forward' | 'Reverse' | 'Hashed'; +export enum MongoDbShardKeyOrder { + Forward = 'Forward', + Reverse = 'Reverse', + Hashed = 'Hashed', +} /** * Defines values for MongoDbReplication. * Possible values include: 'Disabled', 'OneTime', 'Continuous' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbReplication = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MongoDbReplication = 'Disabled' | 'OneTime' | 'Continuous'; +export enum MongoDbReplication { + Disabled = 'Disabled', + OneTime = 'OneTime', + Continuous = 'Continuous', +} /** * Defines values for BackupType. - * Possible values include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', - * 'DifferentialFile', 'Partial', 'DifferentialPartial' + * Possible values include: 'Database', 'TransactionLog', 'File', + * 'DifferentialDatabase', 'DifferentialFile', 'Partial', 'DifferentialPartial' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: BackupType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type BackupType = 'Database' | 'TransactionLog' | 'File' | 'DifferentialDatabase' | 'DifferentialFile' | 'Partial' | 'DifferentialPartial'; +export enum BackupType { + Database = 'Database', + TransactionLog = 'TransactionLog', + File = 'File', + DifferentialDatabase = 'DifferentialDatabase', + DifferentialFile = 'DifferentialFile', + Partial = 'Partial', + DifferentialPartial = 'DifferentialPartial', +} /** * Defines values for BackupMode. * Possible values include: 'CreateBackup', 'ExistingBackup' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: BackupMode = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type BackupMode = 'CreateBackup' | 'ExistingBackup'; +export enum BackupMode { + CreateBackup = 'CreateBackup', + ExistingBackup = 'ExistingBackup', +} /** * Defines values for SyncTableMigrationState. - * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED' + * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', + * 'CANCELED', 'ERROR', 'FAILED' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SyncTableMigrationState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type SyncTableMigrationState = 'BEFORE_LOAD' | 'FULL_LOAD' | 'COMPLETED' | 'CANCELED' | 'ERROR' | 'FAILED'; +export enum SyncTableMigrationState { + BEFORELOAD = 'BEFORE_LOAD', + FULLLOAD = 'FULL_LOAD', + COMPLETED = 'COMPLETED', + CANCELED = 'CANCELED', + ERROR = 'ERROR', + FAILED = 'FAILED', +} /** * Defines values for SyncDatabaseMigrationReportingState. - * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', - * 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED' + * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', + * 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', + * 'CANCELLING', 'CANCELLED', 'FAILED' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SyncDatabaseMigrationReportingState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type SyncDatabaseMigrationReportingState = 'UNDEFINED' | 'CONFIGURING' | 'INITIALIAZING' | 'STARTING' | 'RUNNING' | 'READY_TO_COMPLETE' | 'COMPLETING' | 'COMPLETE' | 'CANCELLING' | 'CANCELLED' | 'FAILED'; +export enum SyncDatabaseMigrationReportingState { + UNDEFINED = 'UNDEFINED', + CONFIGURING = 'CONFIGURING', + INITIALIAZING = 'INITIALIAZING', + STARTING = 'STARTING', + RUNNING = 'RUNNING', + READYTOCOMPLETE = 'READY_TO_COMPLETE', + COMPLETING = 'COMPLETING', + COMPLETE = 'COMPLETE', + CANCELLING = 'CANCELLING', + CANCELLED = 'CANCELLED', + FAILED = 'FAILED', +} /** * Defines values for ValidationStatus. - * Possible values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', 'Completed', - * 'CompletedWithIssues', 'Stopped', 'Failed' + * Possible values include: 'Default', 'NotStarted', 'Initialized', + * 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ValidationStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ValidationStatus = 'Default' | 'NotStarted' | 'Initialized' | 'InProgress' | 'Completed' | 'CompletedWithIssues' | 'Stopped' | 'Failed'; +export enum ValidationStatus { + Default = 'Default', + NotStarted = 'NotStarted', + Initialized = 'Initialized', + InProgress = 'InProgress', + Completed = 'Completed', + CompletedWithIssues = 'CompletedWithIssues', + Stopped = 'Stopped', + Failed = 'Failed', +} /** * Defines values for Severity. * Possible values include: 'Message', 'Warning', 'Error' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: Severity = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type Severity = 'Message' | 'Warning' | 'Error'; +export enum Severity { + Message = 'Message', + Warning = 'Warning', + Error = 'Error', +} /** * Defines values for UpdateActionType. - * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' + * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', + * 'AddedOnTarget' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: UpdateActionType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type UpdateActionType = 'DeletedOnTarget' | 'ChangedOnTarget' | 'AddedOnTarget'; +export enum UpdateActionType { + DeletedOnTarget = 'DeletedOnTarget', + ChangedOnTarget = 'ChangedOnTarget', + AddedOnTarget = 'AddedOnTarget', +} /** * Defines values for ObjectType. - * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' + * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', + * 'Function' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ObjectType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ObjectType = 'StoredProcedures' | 'Table' | 'User' | 'View' | 'Function'; +export enum ObjectType { + StoredProcedures = 'StoredProcedures', + Table = 'Table', + User = 'User', + View = 'View', + Function = 'Function', +} /** * Defines values for MigrationState. - * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', - * 'Stopped' + * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', + * 'Completed', 'Skipped', 'Stopped' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MigrationState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MigrationState = 'None' | 'InProgress' | 'Failed' | 'Warning' | 'Completed' | 'Skipped' | 'Stopped'; +export enum MigrationState { + None = 'None', + InProgress = 'InProgress', + Failed = 'Failed', + Warning = 'Warning', + Completed = 'Completed', + Skipped = 'Skipped', + Stopped = 'Stopped', +} /** * Defines values for DatabaseMigrationStage. - * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' + * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', + * 'Restore', 'Completed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DatabaseMigrationStage = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type DatabaseMigrationStage = 'None' | 'Initialize' | 'Backup' | 'FileCopy' | 'Restore' | 'Completed'; +export enum DatabaseMigrationStage { + None = 'None', + Initialize = 'Initialize', + Backup = 'Backup', + FileCopy = 'FileCopy', + Restore = 'Restore', + Completed = 'Completed', +} /** * Defines values for MigrationStatus. - * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', - * 'Configured', 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' + * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', + * 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped', 'Completed', + * 'CompletedWithWarnings' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MigrationStatus = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MigrationStatus = 'Default' | 'Connecting' | 'SourceAndTargetSelected' | 'SelectLogins' | 'Configured' | 'Running' | 'Error' | 'Stopped' | 'Completed' | 'CompletedWithWarnings'; +export enum MigrationStatus { + Default = 'Default', + Connecting = 'Connecting', + SourceAndTargetSelected = 'SourceAndTargetSelected', + SelectLogins = 'SelectLogins', + Configured = 'Configured', + Running = 'Running', + Error = 'Error', + Stopped = 'Stopped', + Completed = 'Completed', + CompletedWithWarnings = 'CompletedWithWarnings', +} /** * Defines values for LoginMigrationStage. - * Possible values include: 'None', 'Initialize', 'LoginMigration', 'EstablishUserMapping', - * 'AssignRoleMembership', 'AssignRoleOwnership', 'EstablishServerPermissions', - * 'EstablishObjectPermissions', 'Completed' + * Possible values include: 'None', 'Initialize', 'LoginMigration', + * 'EstablishUserMapping', 'AssignRoleMembership', 'AssignRoleOwnership', + * 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: LoginMigrationStage = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type LoginMigrationStage = 'None' | 'Initialize' | 'LoginMigration' | 'EstablishUserMapping' | 'AssignRoleMembership' | 'AssignRoleOwnership' | 'EstablishServerPermissions' | 'EstablishObjectPermissions' | 'Completed'; +export enum LoginMigrationStage { + None = 'None', + Initialize = 'Initialize', + LoginMigration = 'LoginMigration', + EstablishUserMapping = 'EstablishUserMapping', + AssignRoleMembership = 'AssignRoleMembership', + AssignRoleOwnership = 'AssignRoleOwnership', + EstablishServerPermissions = 'EstablishServerPermissions', + EstablishObjectPermissions = 'EstablishObjectPermissions', + Completed = 'Completed', +} /** * Defines values for LoginType. - * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', - * 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' + * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', + * 'Certificate', 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: LoginType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type LoginType = 'WindowsUser' | 'WindowsGroup' | 'SqlLogin' | 'Certificate' | 'AsymmetricKey' | 'ExternalUser' | 'ExternalGroup'; +export enum LoginType { + WindowsUser = 'WindowsUser', + WindowsGroup = 'WindowsGroup', + SqlLogin = 'SqlLogin', + Certificate = 'Certificate', + AsymmetricKey = 'AsymmetricKey', + ExternalUser = 'ExternalUser', + ExternalGroup = 'ExternalGroup', +} /** * Defines values for DatabaseState. - * Possible values include: 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', - * 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' + * Possible values include: 'Online', 'Restoring', 'Recovering', + * 'RecoveryPending', 'Suspect', 'Emergency', 'Offline', 'Copying', + * 'OfflineSecondary' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DatabaseState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type DatabaseState = 'Online' | 'Restoring' | 'Recovering' | 'RecoveryPending' | 'Suspect' | 'Emergency' | 'Offline' | 'Copying' | 'OfflineSecondary'; +export enum DatabaseState { + Online = 'Online', + Restoring = 'Restoring', + Recovering = 'Recovering', + RecoveryPending = 'RecoveryPending', + Suspect = 'Suspect', + Emergency = 'Emergency', + Offline = 'Offline', + Copying = 'Copying', + OfflineSecondary = 'OfflineSecondary', +} /** * Defines values for DatabaseCompatLevel. - * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', 'CompatLevel110', - * 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' + * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', + * 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DatabaseCompatLevel = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type DatabaseCompatLevel = 'CompatLevel80' | 'CompatLevel90' | 'CompatLevel100' | 'CompatLevel110' | 'CompatLevel120' | 'CompatLevel130' | 'CompatLevel140'; +export enum DatabaseCompatLevel { + CompatLevel80 = 'CompatLevel80', + CompatLevel90 = 'CompatLevel90', + CompatLevel100 = 'CompatLevel100', + CompatLevel110 = 'CompatLevel110', + CompatLevel120 = 'CompatLevel120', + CompatLevel130 = 'CompatLevel130', + CompatLevel140 = 'CompatLevel140', +} /** * Defines values for DatabaseFileType. - * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', 'Fulltext' + * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', + * 'Fulltext' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DatabaseFileType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type DatabaseFileType = 'Rows' | 'Log' | 'Filestream' | 'NotSupported' | 'Fulltext'; +export enum DatabaseFileType { + Rows = 'Rows', + Log = 'Log', + Filestream = 'Filestream', + NotSupported = 'NotSupported', + Fulltext = 'Fulltext', +} /** * Defines values for ServerLevelPermissionsGroup. * Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB', * 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServerLevelPermissionsGroup = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ServerLevelPermissionsGroup = 'Default' | 'MigrationFromSqlServerToAzureDB' | 'MigrationFromSqlServerToAzureMI' | 'MigrationFromMySQLToAzureDBForMySQL'; +export enum ServerLevelPermissionsGroup { + Default = 'Default', + MigrationFromSqlServerToAzureDB = 'MigrationFromSqlServerToAzureDB', + MigrationFromSqlServerToAzureMI = 'MigrationFromSqlServerToAzureMI', + MigrationFromMySQLToAzureDBForMySQL = 'MigrationFromMySQLToAzureDBForMySQL', +} /** * Defines values for MongoDbClusterType. * Possible values include: 'BlobContainer', 'CosmosDb', 'MongoDb' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MongoDbClusterType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MongoDbClusterType = 'BlobContainer' | 'CosmosDb' | 'MongoDb'; +export enum MongoDbClusterType { + BlobContainer = 'BlobContainer', + CosmosDb = 'CosmosDb', + MongoDb = 'MongoDb', +} /** * Defines values for TaskState. - * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', 'Failed', - * 'FailedInputValidation', 'Faulted' + * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', + * 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: TaskState = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type TaskState = 'Unknown' | 'Queued' | 'Running' | 'Canceled' | 'Succeeded' | 'Failed' | 'FailedInputValidation' | 'Faulted'; +export enum TaskState { + Unknown = 'Unknown', + Queued = 'Queued', + Running = 'Running', + Canceled = 'Canceled', + Succeeded = 'Succeeded', + Failed = 'Failed', + FailedInputValidation = 'FailedInputValidation', + Faulted = 'Faulted', +} /** * Defines values for ServiceProvisioningState. - * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', 'Stopping', 'Starting', - * 'FailedToStart', 'FailedToStop', 'Succeeded', 'Failed' + * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', + * 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', + * 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServiceProvisioningState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ServiceProvisioningState = 'Accepted' | 'Deleting' | 'Deploying' | 'Stopped' | 'Stopping' | 'Starting' | 'FailedToStart' | 'FailedToStop' | 'Succeeded' | 'Failed'; +export enum ServiceProvisioningState { + Accepted = 'Accepted', + Deleting = 'Deleting', + Deploying = 'Deploying', + Stopped = 'Stopped', + Stopping = 'Stopping', + Starting = 'Starting', + FailedToStart = 'FailedToStart', + FailedToStop = 'FailedToStop', + Succeeded = 'Succeeded', + Failed = 'Failed', +} /** * Defines values for ProjectTargetPlatform. - * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', 'AzureDbForPostgreSql', 'MongoDb', - * 'Unknown' + * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', + * 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProjectTargetPlatform = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ProjectTargetPlatform = 'SQLDB' | 'SQLMI' | 'AzureDbForMySql' | 'AzureDbForPostgreSql' | 'MongoDb' | 'Unknown'; +export enum ProjectTargetPlatform { + SQLDB = 'SQLDB', + SQLMI = 'SQLMI', + AzureDbForMySql = 'AzureDbForMySql', + AzureDbForPostgreSql = 'AzureDbForPostgreSql', + MongoDb = 'MongoDb', + Unknown = 'Unknown', +} /** * Defines values for ProjectSourcePlatform. * Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProjectSourcePlatform = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ProjectSourcePlatform = 'SQL' | 'MySQL' | 'PostgreSql' | 'MongoDb' | 'Unknown'; +export enum ProjectSourcePlatform { + SQL = 'SQL', + MySQL = 'MySQL', + PostgreSql = 'PostgreSql', + MongoDb = 'MongoDb', + Unknown = 'Unknown', +} /** * Defines values for ProjectProvisioningState. * Possible values include: 'Deleting', 'Succeeded' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProjectProvisioningState = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ProjectProvisioningState = 'Deleting' | 'Succeeded'; +export enum ProjectProvisioningState { + Deleting = 'Deleting', + Succeeded = 'Succeeded', +} /** * Defines values for NameCheckFailureReason. * Possible values include: 'AlreadyExists', 'Invalid' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: NameCheckFailureReason = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type NameCheckFailureReason = 'AlreadyExists' | 'Invalid'; +export enum NameCheckFailureReason { + AlreadyExists = 'AlreadyExists', + Invalid = 'Invalid', +} /** * Defines values for ServiceScalability. * Possible values include: 'none', 'manual', 'automatic' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ServiceScalability = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ServiceScalability = 'none' | 'manual' | 'automatic'; +export enum ServiceScalability { + None = 'none', + Manual = 'manual', + Automatic = 'automatic', +} /** * Defines values for ResourceSkuRestrictionsType. * Possible values include: 'location' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResourceSkuRestrictionsType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ResourceSkuRestrictionsType = 'location'; +export enum ResourceSkuRestrictionsType { + Location = 'location', +} /** * Defines values for ResourceSkuRestrictionsReasonCode. * Possible values include: 'QuotaId', 'NotAvailableForSubscription' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResourceSkuRestrictionsReasonCode = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; +export enum ResourceSkuRestrictionsReasonCode { + QuotaId = 'QuotaId', + NotAvailableForSubscription = 'NotAvailableForSubscription', +} /** * Defines values for ResourceSkuCapacityScaleType. * Possible values include: 'Automatic', 'Manual', 'None' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResourceSkuCapacityScaleType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; +export enum ResourceSkuCapacityScaleType { + Automatic = 'Automatic', + Manual = 'Manual', + None = 'None', +} /** * Defines values for MySqlTargetPlatformType. * Possible values include: 'AzureDbForMySQL' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: MySqlTargetPlatformType = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type MySqlTargetPlatformType = 'AzureDbForMySQL'; +export enum MySqlTargetPlatformType { + AzureDbForMySQL = 'AzureDbForMySQL', +} /** * Defines values for SchemaMigrationOption. * Possible values include: 'None', 'ExtractFromSource', 'UseStorageFile' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SchemaMigrationOption = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type SchemaMigrationOption = 'None' | 'ExtractFromSource' | 'UseStorageFile'; +export enum SchemaMigrationOption { + None = 'None', + ExtractFromSource = 'ExtractFromSource', + UseStorageFile = 'UseStorageFile', +} /** * Defines values for SchemaMigrationStage. - * Possible values include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', - * 'DownloadingScript', 'GeneratingScript', 'UploadingScript', 'DeployingSchema', 'Completed', - * 'CompletedWithWarnings', 'Failed' + * Possible values include: 'NotStarted', 'ValidatingInputs', + * 'CollectingObjects', 'DownloadingScript', 'GeneratingScript', + * 'UploadingScript', 'DeployingSchema', 'Completed', 'CompletedWithWarnings', + * 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SchemaMigrationStage = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type SchemaMigrationStage = 'NotStarted' | 'ValidatingInputs' | 'CollectingObjects' | 'DownloadingScript' | 'GeneratingScript' | 'UploadingScript' | 'DeployingSchema' | 'Completed' | 'CompletedWithWarnings' | 'Failed'; +export enum SchemaMigrationStage { + NotStarted = 'NotStarted', + ValidatingInputs = 'ValidatingInputs', + CollectingObjects = 'CollectingObjects', + DownloadingScript = 'DownloadingScript', + GeneratingScript = 'GeneratingScript', + UploadingScript = 'UploadingScript', + DeployingSchema = 'DeployingSchema', + Completed = 'Completed', + CompletedWithWarnings = 'CompletedWithWarnings', + Failed = 'Failed', +} /** * Defines values for DataMigrationResultCode. * Possible values include: 'Initial', 'Completed', 'ObjectNotExistsInSource', * 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DataMigrationResultCode = + * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type DataMigrationResultCode = 'Initial' | 'Completed' | 'ObjectNotExistsInSource' | 'ObjectNotExistsInTarget' | 'TargetObjectIsInaccessible' | 'FatalError'; +export enum DataMigrationResultCode { + Initial = 'Initial', + Completed = 'Completed', + ObjectNotExistsInSource = 'ObjectNotExistsInSource', + ObjectNotExistsInTarget = 'ObjectNotExistsInTarget', + TargetObjectIsInaccessible = 'TargetObjectIsInaccessible', + FatalError = 'FatalError', +} /** * Defines values for ErrorType. * Possible values include: 'Default', 'Warning', 'Error' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ErrorType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ErrorType = 'Default' | 'Warning' | 'Error'; +export enum ErrorType { + Default = 'Default', + Warning = 'Warning', + Error = 'Error', +} /** * Defines values for ResultType. * Possible values include: 'Migration', 'Database', 'Collection' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResultType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export type ResultType = 'Migration' | 'Database' | 'Collection'; +export enum ResultType { + Migration = 'Migration', + Database = 'Database', + Collection = 'Collection', +} /** * Contains response data for the listSkus operation. diff --git a/packages/@azure/arm-datamigration/lib/models/parameters.ts b/packages/@azure/arm-datamigration/lib/models/parameters.ts index 7aeaceeadc6d..edad9643d324 100644 --- a/packages/@azure/arm-datamigration/lib/models/parameters.ts +++ b/packages/@azure/arm-datamigration/lib/models/parameters.ts @@ -24,7 +24,9 @@ export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, + isConstant: true, serializedName: "api-version", + defaultValue: '2018-07-15-preview', type: { name: "String" } diff --git a/packages/@azure/arm-datamigration/lib/operations/files.ts b/packages/@azure/arm-datamigration/lib/operations/files.ts index f05767ce3cf2..dfd99f84b64a 100644 --- a/packages/@azure/arm-datamigration/lib/operations/files.ts +++ b/packages/@azure/arm-datamigration/lib/operations/files.ts @@ -52,7 +52,7 @@ export class Files { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -93,7 +93,7 @@ export class Files { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Files { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -179,7 +179,7 @@ export class Files { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -223,7 +223,7 @@ export class Files { * @param callback The callback */ update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -266,7 +266,7 @@ export class Files { * @param callback The callback */ read(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -307,7 +307,7 @@ export class Files { * @param callback The callback */ readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -340,7 +340,7 @@ export class Files { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/operations.ts b/packages/@azure/arm-datamigration/lib/operations/operations.ts index e22bb1ea9155..4ea11a119716 100644 --- a/packages/@azure/arm-datamigration/lib/operations/operations.ts +++ b/packages/@azure/arm-datamigration/lib/operations/operations.ts @@ -42,7 +42,7 @@ export class Operations { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class Operations { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/projects.ts b/packages/@azure/arm-datamigration/lib/operations/projects.ts index caae446b34a6..f2c8dd87f14d 100644 --- a/packages/@azure/arm-datamigration/lib/operations/projects.ts +++ b/packages/@azure/arm-datamigration/lib/operations/projects.ts @@ -49,7 +49,7 @@ export class Projects { * @param callback The callback */ list(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -89,7 +89,7 @@ export class Projects { * @param callback The callback */ createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -128,7 +128,7 @@ export class Projects { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -166,7 +166,7 @@ export class Projects { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, options: Models.ProjectsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -207,7 +207,7 @@ export class Projects { * @param callback The callback */ update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -240,7 +240,7 @@ export class Projects { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts index c8b3a6952ff9..c9acfb62b336 100644 --- a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts +++ b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts @@ -42,7 +42,7 @@ export class ResourceSkus { * @param callback The callback */ listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSkus(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class ResourceSkus { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/services.ts b/packages/@azure/arm-datamigration/lib/operations/services.ts index 1a7c813a75ec..3faa0ab51e8e 100644 --- a/packages/@azure/arm-datamigration/lib/operations/services.ts +++ b/packages/@azure/arm-datamigration/lib/operations/services.ts @@ -71,7 +71,7 @@ export class Services { * @param callback The callback */ get(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Services { * @param callback The callback */ checkStatus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -200,7 +200,7 @@ export class Services { * @param callback The callback */ listSkus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -236,7 +236,7 @@ export class Services { * @param callback The callback */ checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -268,7 +268,7 @@ export class Services { * @param callback The callback */ listByResourceGroup(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -295,7 +295,7 @@ export class Services { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -326,7 +326,7 @@ export class Services { * @param callback The callback */ checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -470,7 +470,7 @@ export class Services { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -500,7 +500,7 @@ export class Services { * @param callback The callback */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -530,7 +530,7 @@ export class Services { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/tasks.ts b/packages/@azure/arm-datamigration/lib/operations/tasks.ts index 02e8d3d519d6..5ae49940480b 100644 --- a/packages/@azure/arm-datamigration/lib/operations/tasks.ts +++ b/packages/@azure/arm-datamigration/lib/operations/tasks.ts @@ -53,7 +53,7 @@ export class Tasks { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: Models.TasksListOptionalParams, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -98,7 +98,7 @@ export class Tasks { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -141,7 +141,7 @@ export class Tasks { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksGetOptionalParams, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -183,7 +183,7 @@ export class Tasks { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -229,7 +229,7 @@ export class Tasks { * @param callback The callback */ update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -272,7 +272,7 @@ export class Tasks { * @param callback The callback */ cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -317,7 +317,7 @@ export class Tasks { * @param callback The callback */ command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -352,7 +352,7 @@ export class Tasks { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/usages.ts b/packages/@azure/arm-datamigration/lib/operations/usages.ts index 34e58611e057..e7c873c543f4 100644 --- a/packages/@azure/arm-datamigration/lib/operations/usages.ts +++ b/packages/@azure/arm-datamigration/lib/operations/usages.ts @@ -46,7 +46,7 @@ export class Usages { * @param callback The callback */ list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(location: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -76,7 +76,7 @@ export class Usages { * @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 { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index bed154f5d891..9b16b43a0e6a 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -2,10 +2,10 @@ "name": "@azure/arm-datamigration", "author": "Microsoft Corporation", "description": "DataMigrationServiceClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.461", + "ms-rest-js": "^1.0.457", "tslib": "^1.9.3" }, "keywords": [ @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-deploymentmanager/package.json b/packages/@azure/arm-deploymentmanager/package.json index b797574a2f4a..680a37cfc580 100644 --- a/packages/@azure/arm-deploymentmanager/package.json +++ b/packages/@azure/arm-deploymentmanager/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-deploymentmanager", "author": "Microsoft Corporation", "description": "AzureDeploymentManager Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-deviceprovisioningservices/package.json b/packages/@azure/arm-deviceprovisioningservices/package.json index 3f98b5d47ba0..db98658a0e4e 100644 --- a/packages/@azure/arm-deviceprovisioningservices/package.json +++ b/packages/@azure/arm-deviceprovisioningservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-deviceprovisioningservices", "author": "Microsoft Corporation", "description": "IotDpsClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-devspaces/package.json b/packages/@azure/arm-devspaces/package.json index 91e306fabdf4..6b968d278f9d 100644 --- a/packages/@azure/arm-devspaces/package.json +++ b/packages/@azure/arm-devspaces/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-devspaces", "author": "Microsoft Corporation", "description": "DevSpacesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-devtestlabs/package.json b/packages/@azure/arm-devtestlabs/package.json index 6e8499e00f87..b1d1eb381dd6 100644 --- a/packages/@azure/arm-devtestlabs/package.json +++ b/packages/@azure/arm-devtestlabs/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-devtestlabs", "author": "Microsoft Corporation", "description": "DevTestLabsClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-dns/package.json b/packages/@azure/arm-dns/package.json index d8289248e939..6a59ef39fbbc 100644 --- a/packages/@azure/arm-dns/package.json +++ b/packages/@azure/arm-dns/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-dns", "author": "Microsoft Corporation", "description": "DnsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-domainservices/package.json b/packages/@azure/arm-domainservices/package.json index 4b6219bdf2c6..9fc611fb44b2 100644 --- a/packages/@azure/arm-domainservices/package.json +++ b/packages/@azure/arm-domainservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-domainservices", "author": "Microsoft Corporation", "description": "DomainservicesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-eventgrid/package.json b/packages/@azure/arm-eventgrid/package.json index 813e89aafc4e..1f435e14e2fd 100644 --- a/packages/@azure/arm-eventgrid/package.json +++ b/packages/@azure/arm-eventgrid/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-eventgrid", "author": "Microsoft Corporation", "description": "EventGridManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-eventhub/package.json b/packages/@azure/arm-eventhub/package.json index 5f48771b3648..b15b5af72eaf 100644 --- a/packages/@azure/arm-eventhub/package.json +++ b/packages/@azure/arm-eventhub/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-eventhub", "author": "Microsoft Corporation", "description": "EventHubManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-features/package.json b/packages/@azure/arm-features/package.json index c3922d9671b1..1baa28a0dd0d 100644 --- a/packages/@azure/arm-features/package.json +++ b/packages/@azure/arm-features/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-features", "author": "Microsoft Corporation", "description": "FeatureClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-frontdoor/package.json b/packages/@azure/arm-frontdoor/package.json index 00900d031db0..de63e5e60fc0 100644 --- a/packages/@azure/arm-frontdoor/package.json +++ b/packages/@azure/arm-frontdoor/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-frontdoor", "author": "Microsoft Corporation", "description": "FrontDoorManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-hanaonazure/package.json b/packages/@azure/arm-hanaonazure/package.json index 2bc3ca23a98f..2e62e1677ce7 100644 --- a/packages/@azure/arm-hanaonazure/package.json +++ b/packages/@azure/arm-hanaonazure/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-hanaonazure", "author": "Microsoft Corporation", "description": "HanaManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-hdinsight/package.json b/packages/@azure/arm-hdinsight/package.json index 49f48dfc23ef..41e3bb491b31 100644 --- a/packages/@azure/arm-hdinsight/package.json +++ b/packages/@azure/arm-hdinsight/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-hdinsight", "author": "Microsoft Corporation", "description": "HDInsightManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-iotcentral/package.json b/packages/@azure/arm-iotcentral/package.json index b204509b7b76..42f2202c5693 100644 --- a/packages/@azure/arm-iotcentral/package.json +++ b/packages/@azure/arm-iotcentral/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-iotcentral", "author": "Microsoft Corporation", "description": "IotCentralClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-iothub/package.json b/packages/@azure/arm-iothub/package.json index f391246b4479..e090762cdfb3 100644 --- a/packages/@azure/arm-iothub/package.json +++ b/packages/@azure/arm-iothub/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-iothub", "author": "Microsoft Corporation", "description": "IotHubClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-iotspaces/package.json b/packages/@azure/arm-iotspaces/package.json index 3e8ffa1b6fb3..dc618db26da6 100644 --- a/packages/@azure/arm-iotspaces/package.json +++ b/packages/@azure/arm-iotspaces/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-iotspaces", "author": "Microsoft Corporation", "description": "IoTSpacesClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-keyvault/package.json b/packages/@azure/arm-keyvault/package.json index 0f0d2d1b5d98..a1ed870aab8a 100644 --- a/packages/@azure/arm-keyvault/package.json +++ b/packages/@azure/arm-keyvault/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-keyvault", "author": "Microsoft Corporation", "description": "KeyVaultManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-links/package.json b/packages/@azure/arm-links/package.json index 0e98ea4fd805..860de7ae6a8a 100644 --- a/packages/@azure/arm-links/package.json +++ b/packages/@azure/arm-links/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-links", "author": "Microsoft Corporation", "description": "ManagementLinkClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-locks/package.json b/packages/@azure/arm-locks/package.json index fdc2b5b3764b..a2d9084bd305 100644 --- a/packages/@azure/arm-locks/package.json +++ b/packages/@azure/arm-locks/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-locks", "author": "Microsoft Corporation", "description": "ManagementLockClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-logic/package.json b/packages/@azure/arm-logic/package.json index aa168f061d32..3e8ef6be9f11 100644 --- a/packages/@azure/arm-logic/package.json +++ b/packages/@azure/arm-logic/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-logic", "author": "Microsoft Corporation", "description": "LogicManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-machinelearningcompute/package.json b/packages/@azure/arm-machinelearningcompute/package.json index 7b3ea54c436c..9484875927b7 100644 --- a/packages/@azure/arm-machinelearningcompute/package.json +++ b/packages/@azure/arm-machinelearningcompute/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-machinelearningcompute", "author": "Microsoft Corporation", "description": "MachineLearningComputeManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-machinelearningexperimentation/package.json b/packages/@azure/arm-machinelearningexperimentation/package.json index 57ba9d3c9185..424e6b0a03d8 100644 --- a/packages/@azure/arm-machinelearningexperimentation/package.json +++ b/packages/@azure/arm-machinelearningexperimentation/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-machinelearningexperimentation", "author": "Microsoft Corporation", "description": "MLTeamAccountManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-machinelearningservices/package.json b/packages/@azure/arm-machinelearningservices/package.json index d02a288ebeab..1d33d5458fc6 100644 --- a/packages/@azure/arm-machinelearningservices/package.json +++ b/packages/@azure/arm-machinelearningservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-machinelearningservices", "author": "Microsoft Corporation", "description": "AzureMachineLearningWorkspaces Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-managedapplications/package.json b/packages/@azure/arm-managedapplications/package.json index faba6a07a048..c1ca4ac7d63a 100644 --- a/packages/@azure/arm-managedapplications/package.json +++ b/packages/@azure/arm-managedapplications/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-managedapplications", "author": "Microsoft Corporation", "description": "ManagedApplicationClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-managementgroups/package.json b/packages/@azure/arm-managementgroups/package.json index a125aef41b40..a8dc5e3b3c29 100644 --- a/packages/@azure/arm-managementgroups/package.json +++ b/packages/@azure/arm-managementgroups/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-managementgroups", "author": "Microsoft Corporation", "description": "ManagementGroupsAPI Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-managementpartner/package.json b/packages/@azure/arm-managementpartner/package.json index afa167c0f237..3fa5fdc5cc37 100644 --- a/packages/@azure/arm-managementpartner/package.json +++ b/packages/@azure/arm-managementpartner/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-managementpartner", "author": "Microsoft Corporation", "description": "ACEProvisioningManagementPartnerAPI Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-maps/package.json b/packages/@azure/arm-maps/package.json index 72f6dd1a7c00..fe5c2f227128 100644 --- a/packages/@azure/arm-maps/package.json +++ b/packages/@azure/arm-maps/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-maps", "author": "Microsoft Corporation", "description": "MapsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-mariadb/package.json b/packages/@azure/arm-mariadb/package.json index 27456ff22612..63c0995065ec 100644 --- a/packages/@azure/arm-mariadb/package.json +++ b/packages/@azure/arm-mariadb/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-mariadb", "author": "Microsoft Corporation", "description": "MariaDBManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-marketplaceordering/package.json b/packages/@azure/arm-marketplaceordering/package.json index 4c2fbb660111..78ddfc7e56cf 100644 --- a/packages/@azure/arm-marketplaceordering/package.json +++ b/packages/@azure/arm-marketplaceordering/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-marketplaceordering", "author": "Microsoft Corporation", "description": "MarketplaceOrderingAgreements Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-mediaservices/package.json b/packages/@azure/arm-mediaservices/package.json index 2e36d9c7eb77..1e6087cbafa5 100644 --- a/packages/@azure/arm-mediaservices/package.json +++ b/packages/@azure/arm-mediaservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-mediaservices", "author": "Microsoft Corporation", "description": "AzureMediaServices Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-migrate/package.json b/packages/@azure/arm-migrate/package.json index c9ec34626988..5672fee51b46 100644 --- a/packages/@azure/arm-migrate/package.json +++ b/packages/@azure/arm-migrate/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-migrate", "author": "Microsoft Corporation", "description": "AzureMigrate Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-monitor/package.json b/packages/@azure/arm-monitor/package.json index 00ea3070ee64..2a400e5d7575 100644 --- a/packages/@azure/arm-monitor/package.json +++ b/packages/@azure/arm-monitor/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-monitor", "author": "Microsoft Corporation", "description": "MonitorManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-msi/package.json b/packages/@azure/arm-msi/package.json index 622fb047d089..b8be1f695edd 100644 --- a/packages/@azure/arm-msi/package.json +++ b/packages/@azure/arm-msi/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-msi", "author": "Microsoft Corporation", "description": "ManagedServiceIdentityClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-mysql/package.json b/packages/@azure/arm-mysql/package.json index b794c7caa7c5..2960262a0645 100644 --- a/packages/@azure/arm-mysql/package.json +++ b/packages/@azure/arm-mysql/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-mysql", "author": "Microsoft Corporation", "description": "MySQLManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-network/package.json b/packages/@azure/arm-network/package.json index 4e73774ec287..c939cf282418 100644 --- a/packages/@azure/arm-network/package.json +++ b/packages/@azure/arm-network/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-network", "author": "Microsoft Corporation", "description": "NetworkManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-notificationhubs/package.json b/packages/@azure/arm-notificationhubs/package.json index fac31a4fb7a9..674bba77e5f4 100644 --- a/packages/@azure/arm-notificationhubs/package.json +++ b/packages/@azure/arm-notificationhubs/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-notificationhubs", "author": "Microsoft Corporation", "description": "NotificationHubsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-operationalinsights/package.json b/packages/@azure/arm-operationalinsights/package.json index c7831ff28a10..ec87419da8e0 100644 --- a/packages/@azure/arm-operationalinsights/package.json +++ b/packages/@azure/arm-operationalinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-operationalinsights", "author": "Microsoft Corporation", "description": "OperationalInsightsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-operations/package.json b/packages/@azure/arm-operations/package.json index 518b0ebfca66..7b8f993eb42a 100644 --- a/packages/@azure/arm-operations/package.json +++ b/packages/@azure/arm-operations/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-operations", "author": "Microsoft Corporation", "description": "OperationsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-policy/package.json b/packages/@azure/arm-policy/package.json index 0778956743cd..9962fd9d83f0 100644 --- a/packages/@azure/arm-policy/package.json +++ b/packages/@azure/arm-policy/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-policy", "author": "Microsoft Corporation", "description": "PolicyClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-policyinsights/package.json b/packages/@azure/arm-policyinsights/package.json index 57fcf482193d..c115ab68caf2 100644 --- a/packages/@azure/arm-policyinsights/package.json +++ b/packages/@azure/arm-policyinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-policyinsights", "author": "Microsoft Corporation", "description": "PolicyInsightsClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-postgresql/package.json b/packages/@azure/arm-postgresql/package.json index 6629fd14326e..98c05ce58406 100644 --- a/packages/@azure/arm-postgresql/package.json +++ b/packages/@azure/arm-postgresql/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-postgresql", "author": "Microsoft Corporation", "description": "PostgreSQLManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-powerbidedicated/package.json b/packages/@azure/arm-powerbidedicated/package.json index 94907c86c4b6..9a3947067a89 100644 --- a/packages/@azure/arm-powerbidedicated/package.json +++ b/packages/@azure/arm-powerbidedicated/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-powerbidedicated", "author": "Microsoft Corporation", "description": "PowerBIDedicatedManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-powerbiembedded/package.json b/packages/@azure/arm-powerbiembedded/package.json index 4a15c0d4d979..7bfbff37ccf8 100644 --- a/packages/@azure/arm-powerbiembedded/package.json +++ b/packages/@azure/arm-powerbiembedded/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-powerbiembedded", "author": "Microsoft Corporation", "description": "PowerBIEmbeddedManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-recoveryservices-siterecovery/package.json b/packages/@azure/arm-recoveryservices-siterecovery/package.json index bd8fe4fc1130..d39959dceaa4 100644 --- a/packages/@azure/arm-recoveryservices-siterecovery/package.json +++ b/packages/@azure/arm-recoveryservices-siterecovery/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-recoveryservices-siterecovery", "author": "Microsoft Corporation", "description": "SiteRecoveryManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-recoveryservices/package.json b/packages/@azure/arm-recoveryservices/package.json index 49a5b0c39b18..50dee451d97b 100644 --- a/packages/@azure/arm-recoveryservices/package.json +++ b/packages/@azure/arm-recoveryservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-recoveryservices", "author": "Microsoft Corporation", "description": "RecoveryServicesClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-recoveryservicesbackup/package.json b/packages/@azure/arm-recoveryservicesbackup/package.json index af68e71e4fc9..cb2df2bef51a 100644 --- a/packages/@azure/arm-recoveryservicesbackup/package.json +++ b/packages/@azure/arm-recoveryservicesbackup/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-recoveryservicesbackup", "author": "Microsoft Corporation", "description": "RecoveryServicesBackupClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-rediscache/package.json b/packages/@azure/arm-rediscache/package.json index 735e5ef8f43b..d8e005fd92f2 100644 --- a/packages/@azure/arm-rediscache/package.json +++ b/packages/@azure/arm-rediscache/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-rediscache", "author": "Microsoft Corporation", "description": "RedisManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.166", "ms-rest-js": "^1.0.439", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-relay/package.json b/packages/@azure/arm-relay/package.json index 68e8d375c05f..51ffd8f3f299 100644 --- a/packages/@azure/arm-relay/package.json +++ b/packages/@azure/arm-relay/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-relay", "author": "Microsoft Corporation", "description": "RelayManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-reservations/package.json b/packages/@azure/arm-reservations/package.json index a50c1fa1060f..04d5a612ffd0 100644 --- a/packages/@azure/arm-reservations/package.json +++ b/packages/@azure/arm-reservations/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-reservations", "author": "Microsoft Corporation", "description": "AzureReservationAPI Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-resourcehealth/package.json b/packages/@azure/arm-resourcehealth/package.json index 24bc8351c7af..75ac310652cd 100644 --- a/packages/@azure/arm-resourcehealth/package.json +++ b/packages/@azure/arm-resourcehealth/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-resourcehealth", "author": "Microsoft Corporation", "description": "MicrosoftResourceHealth Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-resources/package.json b/packages/@azure/arm-resources/package.json index e5bc6f4222f6..a69238d85e8d 100644 --- a/packages/@azure/arm-resources/package.json +++ b/packages/@azure/arm-resources/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-resources", "author": "Microsoft Corporation", "description": "ResourceManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-search/package.json b/packages/@azure/arm-search/package.json index 84e508bbd1c6..3c702c1b1d6f 100644 --- a/packages/@azure/arm-search/package.json +++ b/packages/@azure/arm-search/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-search", "author": "Microsoft Corporation", "description": "SearchManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-security/package.json b/packages/@azure/arm-security/package.json index 351897c116ac..dacc3d8e9f57 100644 --- a/packages/@azure/arm-security/package.json +++ b/packages/@azure/arm-security/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-security", "author": "Microsoft Corporation", "description": "SecurityCenter Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-servicebus/package.json b/packages/@azure/arm-servicebus/package.json index 8b2391b61ac1..4b6862235db6 100644 --- a/packages/@azure/arm-servicebus/package.json +++ b/packages/@azure/arm-servicebus/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-servicebus", "author": "Microsoft Corporation", "description": "ServiceBusManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-servicefabricmesh/package.json b/packages/@azure/arm-servicefabricmesh/package.json index ad8fe74fdb93..2215fe7647ef 100644 --- a/packages/@azure/arm-servicefabricmesh/package.json +++ b/packages/@azure/arm-servicefabricmesh/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-servicefabricmesh", "author": "Microsoft Corporation", "description": "ServiceFabricMeshManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-servicemap/package.json b/packages/@azure/arm-servicemap/package.json index b8411c566c3d..68cdfae0f798 100644 --- a/packages/@azure/arm-servicemap/package.json +++ b/packages/@azure/arm-servicemap/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-servicemap", "author": "Microsoft Corporation", "description": "ServicemapManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-signalr/package.json b/packages/@azure/arm-signalr/package.json index 453fb72e91b3..8abcc030cfe6 100644 --- a/packages/@azure/arm-signalr/package.json +++ b/packages/@azure/arm-signalr/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-signalr", "author": "Microsoft Corporation", "description": "SignalRManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-sql/package.json b/packages/@azure/arm-sql/package.json index 29af2561c37e..01938af85ae2 100644 --- a/packages/@azure/arm-sql/package.json +++ b/packages/@azure/arm-sql/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-sql", "author": "Microsoft Corporation", "description": "SqlManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-storage/package.json b/packages/@azure/arm-storage/package.json index 164e5950417a..2f19c2b59418 100644 --- a/packages/@azure/arm-storage/package.json +++ b/packages/@azure/arm-storage/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storage", "author": "Microsoft Corporation", "description": "StorageManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-storageimportexport/package.json b/packages/@azure/arm-storageimportexport/package.json index ec13ac16e034..68bc95678e77 100644 --- a/packages/@azure/arm-storageimportexport/package.json +++ b/packages/@azure/arm-storageimportexport/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storageimportexport", "author": "Microsoft Corporation", "description": "StorageImportExportManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-storagesync/package.json b/packages/@azure/arm-storagesync/package.json index 3af37c9d8ad9..983904bca4e1 100644 --- a/packages/@azure/arm-storagesync/package.json +++ b/packages/@azure/arm-storagesync/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storagesync", "author": "Microsoft Corporation", "description": "StorageSyncManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-storsimple1200series/package.json b/packages/@azure/arm-storsimple1200series/package.json index 7e5b86011de2..ee888de2c857 100644 --- a/packages/@azure/arm-storsimple1200series/package.json +++ b/packages/@azure/arm-storsimple1200series/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storsimple1200series", "author": "Microsoft Corporation", "description": "StorSimpleManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-storsimple8000series/package.json b/packages/@azure/arm-storsimple8000series/package.json index de8bf9d5d2c5..3c9fe9aacd61 100644 --- a/packages/@azure/arm-storsimple8000series/package.json +++ b/packages/@azure/arm-storsimple8000series/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storsimple8000series", "author": "Microsoft Corporation", "description": "StorSimple8000SeriesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-streamanalytics/package.json b/packages/@azure/arm-streamanalytics/package.json index f04b5e49e79d..b19f13432402 100644 --- a/packages/@azure/arm-streamanalytics/package.json +++ b/packages/@azure/arm-streamanalytics/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-streamanalytics", "author": "Microsoft Corporation", "description": "StreamAnalyticsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-subscriptions/package.json b/packages/@azure/arm-subscriptions/package.json index c6ec1d6ae92a..5263e9775a32 100644 --- a/packages/@azure/arm-subscriptions/package.json +++ b/packages/@azure/arm-subscriptions/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-subscriptions", "author": "Microsoft Corporation", "description": "SubscriptionClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-timeseriesinsights/package.json b/packages/@azure/arm-timeseriesinsights/package.json index bf4f6f7e41ed..46b388dd95ec 100644 --- a/packages/@azure/arm-timeseriesinsights/package.json +++ b/packages/@azure/arm-timeseriesinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-timeseriesinsights", "author": "Microsoft Corporation", "description": "TimeSeriesInsightsClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-trafficmanager/package.json b/packages/@azure/arm-trafficmanager/package.json index 6f94b7cb6404..d5b3da9f49f8 100644 --- a/packages/@azure/arm-trafficmanager/package.json +++ b/packages/@azure/arm-trafficmanager/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-trafficmanager", "author": "Microsoft Corporation", "description": "TrafficManagerManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/arm-visualstudio/package.json b/packages/@azure/arm-visualstudio/package.json index db164c5fb0be..85d3dc39e95c 100644 --- a/packages/@azure/arm-visualstudio/package.json +++ b/packages/@azure/arm-visualstudio/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-visualstudio", "author": "Microsoft Corporation", "description": "VisualStudioResourceProviderClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0-preview", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", "ms-rest-js": "^1.0.457", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/batch/package.json b/packages/@azure/batch/package.json index babffba13fcf..3c78aa7a0456 100644 --- a/packages/@azure/batch/package.json +++ b/packages/@azure/batch/package.json @@ -2,7 +2,7 @@ "name": "@azure/batch", "author": "Microsoft Corporation", "description": "BatchServiceClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-autosuggest/package.json b/packages/@azure/cognitiveservices-autosuggest/package.json index a2da7f6bb575..5baeba71c353 100644 --- a/packages/@azure/cognitiveservices-autosuggest/package.json +++ b/packages/@azure/cognitiveservices-autosuggest/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-autosuggest", "author": "Microsoft Corporation", "description": "AutoSuggestClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-computervision/package.json b/packages/@azure/cognitiveservices-computervision/package.json index 230e7130c089..ecb7610ee610 100644 --- a/packages/@azure/cognitiveservices-computervision/package.json +++ b/packages/@azure/cognitiveservices-computervision/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-computervision", "author": "Microsoft Corporation", "description": "ComputerVisionClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-contentmoderator/package.json b/packages/@azure/cognitiveservices-contentmoderator/package.json index 88f341fa5f08..dc3b8eed1164 100644 --- a/packages/@azure/cognitiveservices-contentmoderator/package.json +++ b/packages/@azure/cognitiveservices-contentmoderator/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-contentmoderator", "author": "Microsoft Corporation", "description": "ContentModeratorClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-customimagesearch/package.json b/packages/@azure/cognitiveservices-customimagesearch/package.json index f170a681ccc0..15bda1f0df18 100644 --- a/packages/@azure/cognitiveservices-customimagesearch/package.json +++ b/packages/@azure/cognitiveservices-customimagesearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-customimagesearch", "author": "Microsoft Corporation", "description": "CustomImageSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-customsearch/package.json b/packages/@azure/cognitiveservices-customsearch/package.json index eb6cc078bdee..b6c1d364b3e9 100644 --- a/packages/@azure/cognitiveservices-customsearch/package.json +++ b/packages/@azure/cognitiveservices-customsearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-customsearch", "author": "Microsoft Corporation", "description": "CustomSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-customvision-prediction/package.json b/packages/@azure/cognitiveservices-customvision-prediction/package.json index 3d5b57b76b2e..32a1fe1ad187 100644 --- a/packages/@azure/cognitiveservices-customvision-prediction/package.json +++ b/packages/@azure/cognitiveservices-customvision-prediction/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-customvision-prediction", "author": "Microsoft Corporation", "description": "PredictionAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-customvision-training/package.json b/packages/@azure/cognitiveservices-customvision-training/package.json index 1a5d11315875..60330ab3df9d 100644 --- a/packages/@azure/cognitiveservices-customvision-training/package.json +++ b/packages/@azure/cognitiveservices-customvision-training/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-customvision-training", "author": "Microsoft Corporation", "description": "TrainingAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-entitysearch/package.json b/packages/@azure/cognitiveservices-entitysearch/package.json index 9c5567ffa514..f592172e8972 100644 --- a/packages/@azure/cognitiveservices-entitysearch/package.json +++ b/packages/@azure/cognitiveservices-entitysearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-entitysearch", "author": "Microsoft Corporation", "description": "EntitySearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-face/package.json b/packages/@azure/cognitiveservices-face/package.json index 3ba5e9eed14f..ed86978ad025 100644 --- a/packages/@azure/cognitiveservices-face/package.json +++ b/packages/@azure/cognitiveservices-face/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-face", "author": "Microsoft Corporation", "description": "FaceClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-imagesearch/package.json b/packages/@azure/cognitiveservices-imagesearch/package.json index a9f622dcdc7d..c189e6803474 100644 --- a/packages/@azure/cognitiveservices-imagesearch/package.json +++ b/packages/@azure/cognitiveservices-imagesearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-imagesearch", "author": "Microsoft Corporation", "description": "ImageSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-luis-authoring/package.json b/packages/@azure/cognitiveservices-luis-authoring/package.json index 5f366d2473c3..40bd063af430 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/package.json +++ b/packages/@azure/cognitiveservices-luis-authoring/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-luis-authoring", "author": "Microsoft Corporation", "description": "LUISAuthoringClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-luis-runtime/package.json b/packages/@azure/cognitiveservices-luis-runtime/package.json index 025713912a13..6b36a41112df 100644 --- a/packages/@azure/cognitiveservices-luis-runtime/package.json +++ b/packages/@azure/cognitiveservices-luis-runtime/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-luis-runtime", "author": "Microsoft Corporation", "description": "LUISRuntimeClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-newssearch/package.json b/packages/@azure/cognitiveservices-newssearch/package.json index 1624d11a6ab5..69e8e1f13482 100644 --- a/packages/@azure/cognitiveservices-newssearch/package.json +++ b/packages/@azure/cognitiveservices-newssearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-newssearch", "author": "Microsoft Corporation", "description": "NewsSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-spellcheck/package.json b/packages/@azure/cognitiveservices-spellcheck/package.json index 88b685f55b10..89c19965d10f 100644 --- a/packages/@azure/cognitiveservices-spellcheck/package.json +++ b/packages/@azure/cognitiveservices-spellcheck/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-spellcheck", "author": "Microsoft Corporation", "description": "SpellCheckAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-textanalytics/package.json b/packages/@azure/cognitiveservices-textanalytics/package.json index 1643dc300e28..9242d90e890e 100644 --- a/packages/@azure/cognitiveservices-textanalytics/package.json +++ b/packages/@azure/cognitiveservices-textanalytics/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-textanalytics", "author": "Microsoft Corporation", "description": "TextAnalyticsClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-videosearch/package.json b/packages/@azure/cognitiveservices-videosearch/package.json index bbe2266ceb97..f542dd8fb38e 100644 --- a/packages/@azure/cognitiveservices-videosearch/package.json +++ b/packages/@azure/cognitiveservices-videosearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-videosearch", "author": "Microsoft Corporation", "description": "VideoSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-visualsearch/package.json b/packages/@azure/cognitiveservices-visualsearch/package.json index cd67926903a1..4c18e4b9cb03 100644 --- a/packages/@azure/cognitiveservices-visualsearch/package.json +++ b/packages/@azure/cognitiveservices-visualsearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-visualsearch", "author": "Microsoft Corporation", "description": "VisualSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/cognitiveservices-websearch/package.json b/packages/@azure/cognitiveservices-websearch/package.json index df557183c624..438816f4a6aa 100644 --- a/packages/@azure/cognitiveservices-websearch/package.json +++ b/packages/@azure/cognitiveservices-websearch/package.json @@ -2,7 +2,7 @@ "name": "@azure/cognitiveservices-websearch", "author": "Microsoft Corporation", "description": "WebSearchAPIClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/eventgrid/package.json b/packages/@azure/eventgrid/package.json index 49de1bf5d991..47b8d32d7980 100644 --- a/packages/@azure/eventgrid/package.json +++ b/packages/@azure/eventgrid/package.json @@ -2,7 +2,7 @@ "name": "@azure/eventgrid", "author": "Microsoft Corporation", "description": "EventGridClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -39,4 +39,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/graph/package.json b/packages/@azure/graph/package.json index 301cc12f396a..5395f9b5e457 100644 --- a/packages/@azure/graph/package.json +++ b/packages/@azure/graph/package.json @@ -2,7 +2,7 @@ "name": "@azure/graph", "author": "Microsoft Corporation", "description": "GraphRbacManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.176", "ms-rest-js": "^1.0.455", @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/loganalytics/package.json b/packages/@azure/loganalytics/package.json index b3fce1e8438d..824d198f7e61 100644 --- a/packages/@azure/loganalytics/package.json +++ b/packages/@azure/loganalytics/package.json @@ -2,7 +2,7 @@ "name": "@azure/loganalytics", "author": "Microsoft Corporation", "description": "LogAnalyticsClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -38,4 +38,4 @@ "prepare": "npm run build" }, "sideEffects": false -} +} \ No newline at end of file diff --git a/packages/@azure/servicefabric/package.json b/packages/@azure/servicefabric/package.json index 2d2edb306763..17372a2f5ac0 100644 --- a/packages/@azure/servicefabric/package.json +++ b/packages/@azure/servicefabric/package.json @@ -2,7 +2,7 @@ "name": "@azure/servicefabric", "author": "Microsoft Corporation", "description": "ServiceFabricClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" @@ -51,4 +51,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} +} \ No newline at end of file From bf7f5e1b0e177b86c089dbed7bf63848fa234f40 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Tue, 6 Nov 2018 17:54:24 +0000 Subject: [PATCH 21/21] Regenerated "@azure/arm-datamigration" SDK. --- .../lib/dataMigrationServiceClientContext.ts | 4 +- .../arm-datamigration/lib/models/index.ts | 619 +++--------------- .../lib/models/parameters.ts | 2 - .../arm-datamigration/lib/operations/files.ts | 16 +- .../lib/operations/operations.ts | 4 +- .../lib/operations/projects.ts | 12 +- .../lib/operations/resourceSkus.ts | 4 +- .../lib/operations/services.ts | 20 +- .../arm-datamigration/lib/operations/tasks.ts | 16 +- .../lib/operations/usages.ts | 4 +- .../@azure/arm-datamigration/package.json | 4 +- 11 files changed, 122 insertions(+), 583 deletions(-) diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 594169f396a4..29bdcb443e9e 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -13,10 +13,11 @@ import * as msRest from "ms-rest-js"; import * as msRestAzure from "ms-rest-azure-js"; const packageName = "@azure/arm-datamigration"; -const packageVersion = "1.0.0-preview"; +const packageVersion = "0.1.0"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; + apiVersion?: string; subscriptionId: string; /** @@ -43,6 +44,7 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC super(credentials, options); + this.apiVersion = '2018-07-15-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index 308b8d96c728..978c6652c980 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -7320,811 +7320,350 @@ export interface FileList extends Array { /** * Defines values for CommandState. - * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CommandState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', 'Failed' * @readonly * @enum {string} */ -export enum CommandState { - Unknown = 'Unknown', - Accepted = 'Accepted', - Running = 'Running', - Succeeded = 'Succeeded', - Failed = 'Failed', -} +export type CommandState = 'Unknown' | 'Accepted' | 'Running' | 'Succeeded' | 'Failed'; /** * Defines values for SqlSourcePlatform. * Possible values include: 'SqlOnPrem' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SqlSourcePlatform = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SqlSourcePlatform { - SqlOnPrem = 'SqlOnPrem', -} +export type SqlSourcePlatform = 'SqlOnPrem'; /** * Defines values for AuthenticationType. - * Possible values include: 'None', 'WindowsAuthentication', - * 'SqlAuthentication', 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: AuthenticationType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', + * 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' * @readonly * @enum {string} */ -export enum AuthenticationType { - None = 'None', - WindowsAuthentication = 'WindowsAuthentication', - SqlAuthentication = 'SqlAuthentication', - ActiveDirectoryIntegrated = 'ActiveDirectoryIntegrated', - ActiveDirectoryPassword = 'ActiveDirectoryPassword', -} +export type AuthenticationType = 'None' | 'WindowsAuthentication' | 'SqlAuthentication' | 'ActiveDirectoryIntegrated' | 'ActiveDirectoryPassword'; /** * Defines values for MongoDbErrorType. * Possible values include: 'Error', 'ValidationError', 'Warning' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbErrorType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbErrorType { - Error = 'Error', - ValidationError = 'ValidationError', - Warning = 'Warning', -} +export type MongoDbErrorType = 'Error' | 'ValidationError' | 'Warning'; /** * Defines values for MongoDbMigrationState. - * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', - * 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', - * 'Complete', 'Canceled', 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbMigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', + * 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' * @readonly * @enum {string} */ -export enum MongoDbMigrationState { - NotStarted = 'NotStarted', - ValidatingInput = 'ValidatingInput', - Initializing = 'Initializing', - Restarting = 'Restarting', - Copying = 'Copying', - InitialReplay = 'InitialReplay', - Replaying = 'Replaying', - Finalizing = 'Finalizing', - Complete = 'Complete', - Canceled = 'Canceled', - Failed = 'Failed', -} +export type MongoDbMigrationState = 'NotStarted' | 'ValidatingInput' | 'Initializing' | 'Restarting' | 'Copying' | 'InitialReplay' | 'Replaying' | 'Finalizing' | 'Complete' | 'Canceled' | 'Failed'; /** * Defines values for MongoDbShardKeyOrder. * Possible values include: 'Forward', 'Reverse', 'Hashed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbShardKeyOrder = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbShardKeyOrder { - Forward = 'Forward', - Reverse = 'Reverse', - Hashed = 'Hashed', -} +export type MongoDbShardKeyOrder = 'Forward' | 'Reverse' | 'Hashed'; /** * Defines values for MongoDbReplication. * Possible values include: 'Disabled', 'OneTime', 'Continuous' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbReplication = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbReplication { - Disabled = 'Disabled', - OneTime = 'OneTime', - Continuous = 'Continuous', -} +export type MongoDbReplication = 'Disabled' | 'OneTime' | 'Continuous'; /** * Defines values for BackupType. - * Possible values include: 'Database', 'TransactionLog', 'File', - * 'DifferentialDatabase', 'DifferentialFile', 'Partial', 'DifferentialPartial' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: BackupType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', + * 'DifferentialFile', 'Partial', 'DifferentialPartial' * @readonly * @enum {string} */ -export enum BackupType { - Database = 'Database', - TransactionLog = 'TransactionLog', - File = 'File', - DifferentialDatabase = 'DifferentialDatabase', - DifferentialFile = 'DifferentialFile', - Partial = 'Partial', - DifferentialPartial = 'DifferentialPartial', -} +export type BackupType = 'Database' | 'TransactionLog' | 'File' | 'DifferentialDatabase' | 'DifferentialFile' | 'Partial' | 'DifferentialPartial'; /** * Defines values for BackupMode. * Possible values include: 'CreateBackup', 'ExistingBackup' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: BackupMode = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupMode { - CreateBackup = 'CreateBackup', - ExistingBackup = 'ExistingBackup', -} +export type BackupMode = 'CreateBackup' | 'ExistingBackup'; /** * Defines values for SyncTableMigrationState. - * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', - * 'CANCELED', 'ERROR', 'FAILED' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncTableMigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED' * @readonly * @enum {string} */ -export enum SyncTableMigrationState { - BEFORELOAD = 'BEFORE_LOAD', - FULLLOAD = 'FULL_LOAD', - COMPLETED = 'COMPLETED', - CANCELED = 'CANCELED', - ERROR = 'ERROR', - FAILED = 'FAILED', -} +export type SyncTableMigrationState = 'BEFORE_LOAD' | 'FULL_LOAD' | 'COMPLETED' | 'CANCELED' | 'ERROR' | 'FAILED'; /** * Defines values for SyncDatabaseMigrationReportingState. - * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', - * 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - * 'CANCELLING', 'CANCELLED', 'FAILED' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncDatabaseMigrationReportingState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', + * 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED' * @readonly * @enum {string} */ -export enum SyncDatabaseMigrationReportingState { - UNDEFINED = 'UNDEFINED', - CONFIGURING = 'CONFIGURING', - INITIALIAZING = 'INITIALIAZING', - STARTING = 'STARTING', - RUNNING = 'RUNNING', - READYTOCOMPLETE = 'READY_TO_COMPLETE', - COMPLETING = 'COMPLETING', - COMPLETE = 'COMPLETE', - CANCELLING = 'CANCELLING', - CANCELLED = 'CANCELLED', - FAILED = 'FAILED', -} +export type SyncDatabaseMigrationReportingState = 'UNDEFINED' | 'CONFIGURING' | 'INITIALIAZING' | 'STARTING' | 'RUNNING' | 'READY_TO_COMPLETE' | 'COMPLETING' | 'COMPLETE' | 'CANCELLING' | 'CANCELLED' | 'FAILED'; /** * Defines values for ValidationStatus. - * Possible values include: 'Default', 'NotStarted', 'Initialized', - * 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ValidationStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', 'Completed', + * 'CompletedWithIssues', 'Stopped', 'Failed' * @readonly * @enum {string} */ -export enum ValidationStatus { - Default = 'Default', - NotStarted = 'NotStarted', - Initialized = 'Initialized', - InProgress = 'InProgress', - Completed = 'Completed', - CompletedWithIssues = 'CompletedWithIssues', - Stopped = 'Stopped', - Failed = 'Failed', -} +export type ValidationStatus = 'Default' | 'NotStarted' | 'Initialized' | 'InProgress' | 'Completed' | 'CompletedWithIssues' | 'Stopped' | 'Failed'; /** * Defines values for Severity. * Possible values include: 'Message', 'Warning', 'Error' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: Severity = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum Severity { - Message = 'Message', - Warning = 'Warning', - Error = 'Error', -} +export type Severity = 'Message' | 'Warning' | 'Error'; /** * Defines values for UpdateActionType. - * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', - * 'AddedOnTarget' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: UpdateActionType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' * @readonly * @enum {string} */ -export enum UpdateActionType { - DeletedOnTarget = 'DeletedOnTarget', - ChangedOnTarget = 'ChangedOnTarget', - AddedOnTarget = 'AddedOnTarget', -} +export type UpdateActionType = 'DeletedOnTarget' | 'ChangedOnTarget' | 'AddedOnTarget'; /** * Defines values for ObjectType. - * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', - * 'Function' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ObjectType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' * @readonly * @enum {string} */ -export enum ObjectType { - StoredProcedures = 'StoredProcedures', - Table = 'Table', - User = 'User', - View = 'View', - Function = 'Function', -} +export type ObjectType = 'StoredProcedures' | 'Table' | 'User' | 'View' | 'Function'; /** * Defines values for MigrationState. - * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', - * 'Completed', 'Skipped', 'Stopped' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', + * 'Stopped' * @readonly * @enum {string} */ -export enum MigrationState { - None = 'None', - InProgress = 'InProgress', - Failed = 'Failed', - Warning = 'Warning', - Completed = 'Completed', - Skipped = 'Skipped', - Stopped = 'Stopped', -} +export type MigrationState = 'None' | 'InProgress' | 'Failed' | 'Warning' | 'Completed' | 'Skipped' | 'Stopped'; /** * Defines values for DatabaseMigrationStage. - * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', - * 'Restore', 'Completed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' * @readonly * @enum {string} */ -export enum DatabaseMigrationStage { - None = 'None', - Initialize = 'Initialize', - Backup = 'Backup', - FileCopy = 'FileCopy', - Restore = 'Restore', - Completed = 'Completed', -} +export type DatabaseMigrationStage = 'None' | 'Initialize' | 'Backup' | 'FileCopy' | 'Restore' | 'Completed'; /** * Defines values for MigrationStatus. - * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', - * 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped', 'Completed', - * 'CompletedWithWarnings' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MigrationStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', + * 'Configured', 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' * @readonly * @enum {string} */ -export enum MigrationStatus { - Default = 'Default', - Connecting = 'Connecting', - SourceAndTargetSelected = 'SourceAndTargetSelected', - SelectLogins = 'SelectLogins', - Configured = 'Configured', - Running = 'Running', - Error = 'Error', - Stopped = 'Stopped', - Completed = 'Completed', - CompletedWithWarnings = 'CompletedWithWarnings', -} +export type MigrationStatus = 'Default' | 'Connecting' | 'SourceAndTargetSelected' | 'SelectLogins' | 'Configured' | 'Running' | 'Error' | 'Stopped' | 'Completed' | 'CompletedWithWarnings'; /** * Defines values for LoginMigrationStage. - * Possible values include: 'None', 'Initialize', 'LoginMigration', - * 'EstablishUserMapping', 'AssignRoleMembership', 'AssignRoleOwnership', - * 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LoginMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'Initialize', 'LoginMigration', 'EstablishUserMapping', + * 'AssignRoleMembership', 'AssignRoleOwnership', 'EstablishServerPermissions', + * 'EstablishObjectPermissions', 'Completed' * @readonly * @enum {string} */ -export enum LoginMigrationStage { - None = 'None', - Initialize = 'Initialize', - LoginMigration = 'LoginMigration', - EstablishUserMapping = 'EstablishUserMapping', - AssignRoleMembership = 'AssignRoleMembership', - AssignRoleOwnership = 'AssignRoleOwnership', - EstablishServerPermissions = 'EstablishServerPermissions', - EstablishObjectPermissions = 'EstablishObjectPermissions', - Completed = 'Completed', -} +export type LoginMigrationStage = 'None' | 'Initialize' | 'LoginMigration' | 'EstablishUserMapping' | 'AssignRoleMembership' | 'AssignRoleOwnership' | 'EstablishServerPermissions' | 'EstablishObjectPermissions' | 'Completed'; /** * Defines values for LoginType. - * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', - * 'Certificate', 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LoginType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', + * 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' * @readonly * @enum {string} */ -export enum LoginType { - WindowsUser = 'WindowsUser', - WindowsGroup = 'WindowsGroup', - SqlLogin = 'SqlLogin', - Certificate = 'Certificate', - AsymmetricKey = 'AsymmetricKey', - ExternalUser = 'ExternalUser', - ExternalGroup = 'ExternalGroup', -} +export type LoginType = 'WindowsUser' | 'WindowsGroup' | 'SqlLogin' | 'Certificate' | 'AsymmetricKey' | 'ExternalUser' | 'ExternalGroup'; /** * Defines values for DatabaseState. - * Possible values include: 'Online', 'Restoring', 'Recovering', - * 'RecoveryPending', 'Suspect', 'Emergency', 'Offline', 'Copying', - * 'OfflineSecondary' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', + * 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' * @readonly * @enum {string} */ -export enum DatabaseState { - Online = 'Online', - Restoring = 'Restoring', - Recovering = 'Recovering', - RecoveryPending = 'RecoveryPending', - Suspect = 'Suspect', - Emergency = 'Emergency', - Offline = 'Offline', - Copying = 'Copying', - OfflineSecondary = 'OfflineSecondary', -} +export type DatabaseState = 'Online' | 'Restoring' | 'Recovering' | 'RecoveryPending' | 'Suspect' | 'Emergency' | 'Offline' | 'Copying' | 'OfflineSecondary'; /** * Defines values for DatabaseCompatLevel. - * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', - * 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseCompatLevel = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', 'CompatLevel110', + * 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' * @readonly * @enum {string} */ -export enum DatabaseCompatLevel { - CompatLevel80 = 'CompatLevel80', - CompatLevel90 = 'CompatLevel90', - CompatLevel100 = 'CompatLevel100', - CompatLevel110 = 'CompatLevel110', - CompatLevel120 = 'CompatLevel120', - CompatLevel130 = 'CompatLevel130', - CompatLevel140 = 'CompatLevel140', -} +export type DatabaseCompatLevel = 'CompatLevel80' | 'CompatLevel90' | 'CompatLevel100' | 'CompatLevel110' | 'CompatLevel120' | 'CompatLevel130' | 'CompatLevel140'; /** * Defines values for DatabaseFileType. - * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', - * 'Fulltext' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseFileType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', 'Fulltext' * @readonly * @enum {string} */ -export enum DatabaseFileType { - Rows = 'Rows', - Log = 'Log', - Filestream = 'Filestream', - NotSupported = 'NotSupported', - Fulltext = 'Fulltext', -} +export type DatabaseFileType = 'Rows' | 'Log' | 'Filestream' | 'NotSupported' | 'Fulltext'; /** * Defines values for ServerLevelPermissionsGroup. * Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB', * 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServerLevelPermissionsGroup = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServerLevelPermissionsGroup { - Default = 'Default', - MigrationFromSqlServerToAzureDB = 'MigrationFromSqlServerToAzureDB', - MigrationFromSqlServerToAzureMI = 'MigrationFromSqlServerToAzureMI', - MigrationFromMySQLToAzureDBForMySQL = 'MigrationFromMySQLToAzureDBForMySQL', -} +export type ServerLevelPermissionsGroup = 'Default' | 'MigrationFromSqlServerToAzureDB' | 'MigrationFromSqlServerToAzureMI' | 'MigrationFromMySQLToAzureDBForMySQL'; /** * Defines values for MongoDbClusterType. * Possible values include: 'BlobContainer', 'CosmosDb', 'MongoDb' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbClusterType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbClusterType { - BlobContainer = 'BlobContainer', - CosmosDb = 'CosmosDb', - MongoDb = 'MongoDb', -} +export type MongoDbClusterType = 'BlobContainer' | 'CosmosDb' | 'MongoDb'; /** * Defines values for TaskState. - * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', - * 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: TaskState = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', 'Failed', + * 'FailedInputValidation', 'Faulted' * @readonly * @enum {string} */ -export enum TaskState { - Unknown = 'Unknown', - Queued = 'Queued', - Running = 'Running', - Canceled = 'Canceled', - Succeeded = 'Succeeded', - Failed = 'Failed', - FailedInputValidation = 'FailedInputValidation', - Faulted = 'Faulted', -} +export type TaskState = 'Unknown' | 'Queued' | 'Running' | 'Canceled' | 'Succeeded' | 'Failed' | 'FailedInputValidation' | 'Faulted'; /** * Defines values for ServiceProvisioningState. - * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', - * 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServiceProvisioningState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', 'Stopping', 'Starting', + * 'FailedToStart', 'FailedToStop', 'Succeeded', 'Failed' * @readonly * @enum {string} */ -export enum ServiceProvisioningState { - Accepted = 'Accepted', - Deleting = 'Deleting', - Deploying = 'Deploying', - Stopped = 'Stopped', - Stopping = 'Stopping', - Starting = 'Starting', - FailedToStart = 'FailedToStart', - FailedToStop = 'FailedToStop', - Succeeded = 'Succeeded', - Failed = 'Failed', -} +export type ServiceProvisioningState = 'Accepted' | 'Deleting' | 'Deploying' | 'Stopped' | 'Stopping' | 'Starting' | 'FailedToStart' | 'FailedToStop' | 'Succeeded' | 'Failed'; /** * Defines values for ProjectTargetPlatform. - * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', - * 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectTargetPlatform = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', 'AzureDbForPostgreSql', 'MongoDb', + * 'Unknown' * @readonly * @enum {string} */ -export enum ProjectTargetPlatform { - SQLDB = 'SQLDB', - SQLMI = 'SQLMI', - AzureDbForMySql = 'AzureDbForMySql', - AzureDbForPostgreSql = 'AzureDbForPostgreSql', - MongoDb = 'MongoDb', - Unknown = 'Unknown', -} +export type ProjectTargetPlatform = 'SQLDB' | 'SQLMI' | 'AzureDbForMySql' | 'AzureDbForPostgreSql' | 'MongoDb' | 'Unknown'; /** * Defines values for ProjectSourcePlatform. * Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectSourcePlatform = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ProjectSourcePlatform { - SQL = 'SQL', - MySQL = 'MySQL', - PostgreSql = 'PostgreSql', - MongoDb = 'MongoDb', - Unknown = 'Unknown', -} +export type ProjectSourcePlatform = 'SQL' | 'MySQL' | 'PostgreSql' | 'MongoDb' | 'Unknown'; /** * Defines values for ProjectProvisioningState. * Possible values include: 'Deleting', 'Succeeded' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectProvisioningState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ProjectProvisioningState { - Deleting = 'Deleting', - Succeeded = 'Succeeded', -} +export type ProjectProvisioningState = 'Deleting' | 'Succeeded'; /** * Defines values for NameCheckFailureReason. * Possible values include: 'AlreadyExists', 'Invalid' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: NameCheckFailureReason = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum NameCheckFailureReason { - AlreadyExists = 'AlreadyExists', - Invalid = 'Invalid', -} +export type NameCheckFailureReason = 'AlreadyExists' | 'Invalid'; /** * Defines values for ServiceScalability. * Possible values include: 'none', 'manual', 'automatic' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServiceScalability = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceScalability { - None = 'none', - Manual = 'manual', - Automatic = 'automatic', -} +export type ServiceScalability = 'none' | 'manual' | 'automatic'; /** * Defines values for ResourceSkuRestrictionsType. * Possible values include: 'location' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuRestrictionsType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuRestrictionsType { - Location = 'location', -} +export type ResourceSkuRestrictionsType = 'location'; /** * Defines values for ResourceSkuRestrictionsReasonCode. * Possible values include: 'QuotaId', 'NotAvailableForSubscription' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuRestrictionsReasonCode = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuRestrictionsReasonCode { - QuotaId = 'QuotaId', - NotAvailableForSubscription = 'NotAvailableForSubscription', -} +export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; /** * Defines values for ResourceSkuCapacityScaleType. * Possible values include: 'Automatic', 'Manual', 'None' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuCapacityScaleType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuCapacityScaleType { - Automatic = 'Automatic', - Manual = 'Manual', - None = 'None', -} +export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; /** * Defines values for MySqlTargetPlatformType. * Possible values include: 'AzureDbForMySQL' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MySqlTargetPlatformType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MySqlTargetPlatformType { - AzureDbForMySQL = 'AzureDbForMySQL', -} +export type MySqlTargetPlatformType = 'AzureDbForMySQL'; /** * Defines values for SchemaMigrationOption. * Possible values include: 'None', 'ExtractFromSource', 'UseStorageFile' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SchemaMigrationOption = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SchemaMigrationOption { - None = 'None', - ExtractFromSource = 'ExtractFromSource', - UseStorageFile = 'UseStorageFile', -} +export type SchemaMigrationOption = 'None' | 'ExtractFromSource' | 'UseStorageFile'; /** * Defines values for SchemaMigrationStage. - * Possible values include: 'NotStarted', 'ValidatingInputs', - * 'CollectingObjects', 'DownloadingScript', 'GeneratingScript', - * 'UploadingScript', 'DeployingSchema', 'Completed', 'CompletedWithWarnings', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SchemaMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', + * 'DownloadingScript', 'GeneratingScript', 'UploadingScript', 'DeployingSchema', 'Completed', + * 'CompletedWithWarnings', 'Failed' * @readonly * @enum {string} */ -export enum SchemaMigrationStage { - NotStarted = 'NotStarted', - ValidatingInputs = 'ValidatingInputs', - CollectingObjects = 'CollectingObjects', - DownloadingScript = 'DownloadingScript', - GeneratingScript = 'GeneratingScript', - UploadingScript = 'UploadingScript', - DeployingSchema = 'DeployingSchema', - Completed = 'Completed', - CompletedWithWarnings = 'CompletedWithWarnings', - Failed = 'Failed', -} +export type SchemaMigrationStage = 'NotStarted' | 'ValidatingInputs' | 'CollectingObjects' | 'DownloadingScript' | 'GeneratingScript' | 'UploadingScript' | 'DeployingSchema' | 'Completed' | 'CompletedWithWarnings' | 'Failed'; /** * Defines values for DataMigrationResultCode. * Possible values include: 'Initial', 'Completed', 'ObjectNotExistsInSource', * 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DataMigrationResultCode = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum DataMigrationResultCode { - Initial = 'Initial', - Completed = 'Completed', - ObjectNotExistsInSource = 'ObjectNotExistsInSource', - ObjectNotExistsInTarget = 'ObjectNotExistsInTarget', - TargetObjectIsInaccessible = 'TargetObjectIsInaccessible', - FatalError = 'FatalError', -} +export type DataMigrationResultCode = 'Initial' | 'Completed' | 'ObjectNotExistsInSource' | 'ObjectNotExistsInTarget' | 'TargetObjectIsInaccessible' | 'FatalError'; /** * Defines values for ErrorType. * Possible values include: 'Default', 'Warning', 'Error' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ErrorType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ErrorType { - Default = 'Default', - Warning = 'Warning', - Error = 'Error', -} +export type ErrorType = 'Default' | 'Warning' | 'Error'; /** * Defines values for ResultType. * Possible values include: 'Migration', 'Database', 'Collection' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResultType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResultType { - Migration = 'Migration', - Database = 'Database', - Collection = 'Collection', -} +export type ResultType = 'Migration' | 'Database' | 'Collection'; /** * Contains response data for the listSkus operation. diff --git a/packages/@azure/arm-datamigration/lib/models/parameters.ts b/packages/@azure/arm-datamigration/lib/models/parameters.ts index edad9643d324..7aeaceeadc6d 100644 --- a/packages/@azure/arm-datamigration/lib/models/parameters.ts +++ b/packages/@azure/arm-datamigration/lib/models/parameters.ts @@ -24,9 +24,7 @@ export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2018-07-15-preview', type: { name: "String" } diff --git a/packages/@azure/arm-datamigration/lib/operations/files.ts b/packages/@azure/arm-datamigration/lib/operations/files.ts index dfd99f84b64a..f05767ce3cf2 100644 --- a/packages/@azure/arm-datamigration/lib/operations/files.ts +++ b/packages/@azure/arm-datamigration/lib/operations/files.ts @@ -52,7 +52,7 @@ export class Files { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -93,7 +93,7 @@ export class Files { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Files { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -179,7 +179,7 @@ export class Files { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -223,7 +223,7 @@ export class Files { * @param callback The callback */ update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -266,7 +266,7 @@ export class Files { * @param callback The callback */ read(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -307,7 +307,7 @@ export class Files { * @param callback The callback */ readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -340,7 +340,7 @@ export class Files { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/operations.ts b/packages/@azure/arm-datamigration/lib/operations/operations.ts index 4ea11a119716..e22bb1ea9155 100644 --- a/packages/@azure/arm-datamigration/lib/operations/operations.ts +++ b/packages/@azure/arm-datamigration/lib/operations/operations.ts @@ -42,7 +42,7 @@ export class Operations { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class Operations { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/projects.ts b/packages/@azure/arm-datamigration/lib/operations/projects.ts index f2c8dd87f14d..caae446b34a6 100644 --- a/packages/@azure/arm-datamigration/lib/operations/projects.ts +++ b/packages/@azure/arm-datamigration/lib/operations/projects.ts @@ -49,7 +49,7 @@ export class Projects { * @param callback The callback */ list(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -89,7 +89,7 @@ export class Projects { * @param callback The callback */ createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -128,7 +128,7 @@ export class Projects { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -166,7 +166,7 @@ export class Projects { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, options: Models.ProjectsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -207,7 +207,7 @@ export class Projects { * @param callback The callback */ update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -240,7 +240,7 @@ export class Projects { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts index c9acfb62b336..c8b3a6952ff9 100644 --- a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts +++ b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts @@ -42,7 +42,7 @@ export class ResourceSkus { * @param callback The callback */ listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class ResourceSkus { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/services.ts b/packages/@azure/arm-datamigration/lib/operations/services.ts index 3faa0ab51e8e..1a7c813a75ec 100644 --- a/packages/@azure/arm-datamigration/lib/operations/services.ts +++ b/packages/@azure/arm-datamigration/lib/operations/services.ts @@ -71,7 +71,7 @@ export class Services { * @param callback The callback */ get(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Services { * @param callback The callback */ checkStatus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -200,7 +200,7 @@ export class Services { * @param callback The callback */ listSkus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -236,7 +236,7 @@ export class Services { * @param callback The callback */ checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -268,7 +268,7 @@ export class Services { * @param callback The callback */ listByResourceGroup(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -295,7 +295,7 @@ export class Services { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -326,7 +326,7 @@ export class Services { * @param callback The callback */ checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -470,7 +470,7 @@ export class Services { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -500,7 +500,7 @@ export class Services { * @param callback The callback */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -530,7 +530,7 @@ export class Services { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/tasks.ts b/packages/@azure/arm-datamigration/lib/operations/tasks.ts index 5ae49940480b..02e8d3d519d6 100644 --- a/packages/@azure/arm-datamigration/lib/operations/tasks.ts +++ b/packages/@azure/arm-datamigration/lib/operations/tasks.ts @@ -53,7 +53,7 @@ export class Tasks { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: Models.TasksListOptionalParams, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -98,7 +98,7 @@ export class Tasks { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -141,7 +141,7 @@ export class Tasks { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksGetOptionalParams, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -183,7 +183,7 @@ export class Tasks { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -229,7 +229,7 @@ export class Tasks { * @param callback The callback */ update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -272,7 +272,7 @@ export class Tasks { * @param callback The callback */ cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -317,7 +317,7 @@ export class Tasks { * @param callback The callback */ command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -352,7 +352,7 @@ export class Tasks { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/usages.ts b/packages/@azure/arm-datamigration/lib/operations/usages.ts index e7c873c543f4..34e58611e057 100644 --- a/packages/@azure/arm-datamigration/lib/operations/usages.ts +++ b/packages/@azure/arm-datamigration/lib/operations/usages.ts @@ -46,7 +46,7 @@ export class Usages { * @param callback The callback */ list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(location: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -76,7 +76,7 @@ export class Usages { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index 9b16b43a0e6a..2af74a3ceb0a 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -5,7 +5,7 @@ "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-js": "^1.0.461", "tslib": "^1.9.3" }, "keywords": [ @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +}