diff --git a/sdk/devtestlabs/arm-devtestlabs/LICENSE.txt b/sdk/devtestlabs/arm-devtestlabs/LICENSE.txt index b73b4a1293c3..2d3163745319 100644 --- a/sdk/devtestlabs/arm-devtestlabs/LICENSE.txt +++ b/sdk/devtestlabs/arm-devtestlabs/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2021 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 diff --git a/sdk/devtestlabs/arm-devtestlabs/README.md b/sdk/devtestlabs/arm-devtestlabs/README.md index 884a722c47aa..39802c579457 100644 --- a/sdk/devtestlabs/arm-devtestlabs/README.md +++ b/sdk/devtestlabs/arm-devtestlabs/README.md @@ -1,11 +1,11 @@ ## Azure DevTestLabsClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for DevTestLabsClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for DevTestLabsClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-devtestlabs @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list providerOperations as an example written in JavaScript. ##### Sample code @@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new DevTestLabsClient(creds, subscriptionId); - client.providerOperations.list().then((result) => { console.log("The result is:"); console.log(result); @@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmDevtestlabs.DevTestLabsClient(creds, subscriptionId); client.providerOperations.list().then((result) => { diff --git a/sdk/devtestlabs/arm-devtestlabs/package.json b/sdk/devtestlabs/arm-devtestlabs/package.json index 8b4446d50a9a..39032e9cf440 100644 --- a/sdk/devtestlabs/arm-devtestlabs/package.json +++ b/sdk/devtestlabs/arm-devtestlabs/package.json @@ -4,10 +4,10 @@ "description": "DevTestLabsClient Library with typescript type definitions for node.js and browser.", "version": "3.3.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.4.0", - "@azure/ms-rest-js": "^1.11.0", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", "@azure/core-auth": "^1.1.4", - "tslib": "^1.9.3" + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -22,18 +22,18 @@ "types": "./esm/devTestLabsClient.d.ts", "devDependencies": { "typescript": "^3.6.0", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.4.9" + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/feature/v4/sdk/devtestlabs/arm-devtestlabs", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/devtestlabs/arm-devtestlabs", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", diff --git a/sdk/devtestlabs/arm-devtestlabs/rollup.config.js b/sdk/devtestlabs/arm-devtestlabs/rollup.config.js index f42a0f237882..bf0329ea4946 100644 --- a/sdk/devtestlabs/arm-devtestlabs/rollup.config.js +++ b/sdk/devtestlabs/arm-devtestlabs/rollup.config.js @@ -21,15 +21,15 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }), + nodeResolve({ mainFields: ['module', 'main'] }), sourcemaps() ] }; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClient.ts b/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClient.ts index d65f2ffacb1f..6b08c8808f78 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClient.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -20,7 +19,6 @@ class DevTestLabsClient extends DevTestLabsClientContext { // Operation groups providerOperations: operations.ProviderOperations; labs: operations.Labs; - operations: operations.Operations; globalSchedules: operations.GlobalSchedules; artifactSources: operations.ArtifactSources; armTemplates: operations.ArmTemplates; @@ -33,7 +31,10 @@ class DevTestLabsClient extends DevTestLabsClientContext { policySets: operations.PolicySets; policies: operations.Policies; schedules: operations.Schedules; + labSecrets: operations.LabSecrets; serviceRunners: operations.ServiceRunners; + sharedGalleries: operations.SharedGalleries; + sharedImages: operations.SharedImages; users: operations.Users; disks: operations.Disks; environments: operations.Environments; @@ -43,6 +44,8 @@ class DevTestLabsClient extends DevTestLabsClientContext { virtualMachines: operations.VirtualMachines; virtualMachineSchedules: operations.VirtualMachineSchedules; virtualNetworks: operations.VirtualNetworks; + bastionHosts: operations.BastionHosts; + operations: operations.Operations; /** * Initializes a new instance of the DevTestLabsClient class. @@ -52,14 +55,13 @@ class DevTestLabsClient extends DevTestLabsClientContext { * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and * @azure/ms-rest-browserauth are also supported. - * @param subscriptionId The subscription ID. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.DevTestLabsClientOptions) { super(credentials, subscriptionId, options); this.providerOperations = new operations.ProviderOperations(this); this.labs = new operations.Labs(this); - this.operations = new operations.Operations(this); this.globalSchedules = new operations.GlobalSchedules(this); this.artifactSources = new operations.ArtifactSources(this); this.armTemplates = new operations.ArmTemplates(this); @@ -72,7 +74,10 @@ class DevTestLabsClient extends DevTestLabsClientContext { this.policySets = new operations.PolicySets(this); this.policies = new operations.Policies(this); this.schedules = new operations.Schedules(this); + this.labSecrets = new operations.LabSecrets(this); this.serviceRunners = new operations.ServiceRunners(this); + this.sharedGalleries = new operations.SharedGalleries(this); + this.sharedImages = new operations.SharedImages(this); this.users = new operations.Users(this); this.disks = new operations.Disks(this); this.environments = new operations.Environments(this); @@ -82,6 +87,8 @@ class DevTestLabsClient extends DevTestLabsClientContext { this.virtualMachines = new operations.VirtualMachines(this); this.virtualMachineSchedules = new operations.VirtualMachineSchedules(this); this.virtualNetworks = new operations.VirtualNetworks(this); + this.bastionHosts = new operations.BastionHosts(this); + this.operations = new operations.Operations(this); } } diff --git a/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClientContext.ts b/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClientContext.ts index 4903a461c288..485f53d2e406 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClientContext.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-devtestlabs"; const packageVersion = "3.3.1"; @@ -29,7 +28,7 @@ export class DevTestLabsClientContext extends msRestAzure.AzureServiceClient { * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and * @azure/ms-rest-browserauth are also supported. - * @param subscriptionId The subscription ID. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.DevTestLabsClientOptions) { @@ -50,7 +49,7 @@ export class DevTestLabsClientContext extends msRestAzure.AzureServiceClient { super(credentials, options); - this.apiVersion = '2018-09-15'; + this.apiVersion = '2021-09-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/armTemplatesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/armTemplatesMappers.ts index 9029e0573c48..fa8847b5a7c0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/armTemplatesMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/armTemplatesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,73 +8,64 @@ export { ApplicableSchedule, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateList, ArmTemplateParameterProperties, Artifact, - ArtifactDeploymentStatusProperties, ArtifactInstallProperties, ArtifactParameterProperties, ArtifactSource, - AttachNewDataDiskOptions, + AzureEntityResource, BaseResource, - BulkCreationParameters, - CloudError, + BastionHost, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, - CustomImagePropertiesCustom, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromVm, DataDiskProperties, DataDiskStorageTypeInfo, DayDetails, Disk, - DtlEnvironment, - EnvironmentDeploymentProperties, + Environment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, ExternalSubnet, Formula, - FormulaPropertiesFromVm, GalleryImage, - GalleryImageReference, HourDetails, - IdentityProperties, + ImageVersionProperties, InboundNatRule, Lab, - LabAnnouncementProperties, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabResourceCostProperties, - LabSupportProperties, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LinuxOsInfo, - NetworkInterfaceProperties, + LabSecret, NotificationChannel, NotificationSettings, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, + PolicySet, Port, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, + ScheduleProperties, Secret, ServiceFabric, ServiceRunner, - SharedPublicIpAddressConfiguration, + SharedGallery, + SharedImage, Subnet, SubnetOverride, - SubnetSharedPublicIpAddressConfiguration, - TargetCostProperties, + SystemData, + TrackedResource, User, - UserIdentity, - UserSecretStore, + VirtualMachine, VirtualNetwork, - WeekDetails, - WindowsOsInfo + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/artifactSourcesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/artifactSourcesMappers.ts index 4490f531b049..0c5309af95ef 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/artifactSourcesMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/artifactSourcesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, ArtifactSourceList, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/artifactsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/artifactsMappers.ts index 4e804b1760d0..619eb666195a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/artifactsMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/artifactsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,76 +8,67 @@ export { ApplicableSchedule, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateInfo, ArmTemplateParameterProperties, Artifact, - ArtifactDeploymentStatusProperties, ArtifactInstallProperties, ArtifactList, ArtifactParameterProperties, ArtifactSource, - AttachNewDataDiskOptions, + AzureEntityResource, BaseResource, - BulkCreationParameters, - CloudError, + BastionHost, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, - CustomImagePropertiesCustom, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromVm, DataDiskProperties, DataDiskStorageTypeInfo, DayDetails, Disk, - DtlEnvironment, - EnvironmentDeploymentProperties, + Environment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, ExternalSubnet, Formula, - FormulaPropertiesFromVm, GalleryImage, - GalleryImageReference, GenerateArmTemplateRequest, HourDetails, - IdentityProperties, + ImageVersionProperties, InboundNatRule, Lab, - LabAnnouncementProperties, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabResourceCostProperties, - LabSupportProperties, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LinuxOsInfo, - NetworkInterfaceProperties, + LabSecret, NotificationChannel, NotificationSettings, ParameterInfo, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, + PolicySet, Port, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, + ScheduleProperties, Secret, ServiceFabric, ServiceRunner, - SharedPublicIpAddressConfiguration, + SharedGallery, + SharedImage, Subnet, SubnetOverride, - SubnetSharedPublicIpAddressConfiguration, - TargetCostProperties, + SystemData, + TrackedResource, User, - UserIdentity, - UserSecretStore, + VirtualMachine, VirtualNetwork, - WeekDetails, - WindowsOsInfo + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/bastionHostsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/bastionHostsMappers.ts new file mode 100644 index 000000000000..ac58ba6d9028 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/bastionHostsMappers.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApplicableSchedule, + ApplicableScheduleProperties, + ArmTemplate, + ArmTemplateParameterProperties, + Artifact, + ArtifactInstallProperties, + ArtifactParameterProperties, + ArtifactSource, + ArtifactSourceFragment, + AzureEntityResource, + BaseResource, + BastionHost, + BastionHostFragment, + BastionHostList, + ComputeDataDisk, + ComputeVmInstanceViewStatus, + Cost, + CostThresholdProperties, + CustomImage, + CustomImageFragment, + DataDiskProperties, + DataDiskStorageTypeInfo, + DayDetails, + Disk, + DiskFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Event, + ExternalSubnet, + Formula, + FormulaFragment, + GalleryImage, + HourDetails, + ImageVersionProperties, + InboundNatRule, + Lab, + LabCost, + LabCostDetailsProperties, + LabFragment, + LabResourceCostProperties, + LabSecret, + LabSecretFragment, + NotificationChannel, + NotificationChannelFragment, + NotificationSettings, + ParametersValueFileInfo, + Policy, + PolicyFragment, + PolicySet, + Port, + ProxyResource, + Resource, + Schedule, + ScheduleCreationParameter, + ScheduleFragment, + ScheduleProperties, + Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, + ServiceRunner, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, + Subnet, + SubnetOverride, + SystemData, + Tags, + TrackedResource, + User, + UserFragment, + VirtualMachine, + VirtualMachineFragment, + VirtualNetwork, + VirtualNetworkFragment, + WeekDetails +} from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/costsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/costsMappers.ts index f704c7d2f7f3..2affb9411dff 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/costsMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/costsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,72 +8,63 @@ export { ApplicableSchedule, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, Artifact, - ArtifactDeploymentStatusProperties, ArtifactInstallProperties, ArtifactParameterProperties, ArtifactSource, - AttachNewDataDiskOptions, + AzureEntityResource, BaseResource, - BulkCreationParameters, - CloudError, + BastionHost, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, - CustomImagePropertiesCustom, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromVm, DataDiskProperties, DataDiskStorageTypeInfo, DayDetails, Disk, - DtlEnvironment, - EnvironmentDeploymentProperties, + Environment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, ExternalSubnet, Formula, - FormulaPropertiesFromVm, GalleryImage, - GalleryImageReference, HourDetails, - IdentityProperties, + ImageVersionProperties, InboundNatRule, Lab, - LabAnnouncementProperties, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabResourceCostProperties, - LabSupportProperties, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LinuxOsInfo, - NetworkInterfaceProperties, + LabSecret, NotificationChannel, NotificationSettings, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, + PolicySet, Port, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, + ScheduleProperties, Secret, ServiceFabric, ServiceRunner, - SharedPublicIpAddressConfiguration, + SharedGallery, + SharedImage, Subnet, SubnetOverride, - SubnetSharedPublicIpAddressConfiguration, - TargetCostProperties, + SystemData, + TrackedResource, User, - UserIdentity, - UserSecretStore, + VirtualMachine, VirtualNetwork, - WeekDetails, - WindowsOsInfo + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/customImagesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/customImagesMappers.ts index b968e0b63305..3ae3c2b304fd 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/customImagesMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/customImagesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, CustomImageList, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/disksMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/disksMappers.ts index 390d1869cee3..359a2002783f 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/disksMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/disksMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,125 +8,85 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, AttachDiskProperties, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, DetachDiskProperties, Disk, DiskFragment, DiskList, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/environmentsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/environmentsMappers.ts index bcc0dbf16a0e..3b2f05672b86 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/environmentsMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/environmentsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - DtlEnvironmentList, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + EnvironmentList, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/formulasMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/formulasMappers.ts index 3d4ad5e725d4..dc1bdd4af65f 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/formulasMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/formulasMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, FormulaList, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/galleryImagesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/galleryImagesMappers.ts index 48dcc74fc425..4bb5c7989b62 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/galleryImagesMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/galleryImagesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,73 +8,64 @@ export { ApplicableSchedule, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, Artifact, - ArtifactDeploymentStatusProperties, ArtifactInstallProperties, ArtifactParameterProperties, ArtifactSource, - AttachNewDataDiskOptions, + AzureEntityResource, BaseResource, - BulkCreationParameters, - CloudError, + BastionHost, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, - CustomImagePropertiesCustom, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromVm, DataDiskProperties, DataDiskStorageTypeInfo, DayDetails, Disk, - DtlEnvironment, - EnvironmentDeploymentProperties, + Environment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, ExternalSubnet, Formula, - FormulaPropertiesFromVm, GalleryImage, GalleryImageList, - GalleryImageReference, HourDetails, - IdentityProperties, + ImageVersionProperties, InboundNatRule, Lab, - LabAnnouncementProperties, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabResourceCostProperties, - LabSupportProperties, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LinuxOsInfo, - NetworkInterfaceProperties, + LabSecret, NotificationChannel, NotificationSettings, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, + PolicySet, Port, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, + ScheduleProperties, Secret, ServiceFabric, ServiceRunner, - SharedPublicIpAddressConfiguration, + SharedGallery, + SharedImage, Subnet, SubnetOverride, - SubnetSharedPublicIpAddressConfiguration, - TargetCostProperties, + SystemData, + TrackedResource, User, - UserIdentity, - UserSecretStore, + VirtualMachine, VirtualNetwork, - WeekDetails, - WindowsOsInfo + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/globalSchedulesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/globalSchedulesMappers.ts index 730b2e7ae174..c2bb070fd740 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/globalSchedulesMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/globalSchedulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,124 +8,84 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, RetargetScheduleProperties, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, ScheduleList, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/index.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/index.ts index d3c9ec2db1e7..d8a3586b4581 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/index.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,289 +12,106 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Properties of a weekly schedule. + * Metadata pertaining to creation and last modification of the resource. */ -export interface WeekDetails { +export interface SystemData { /** - * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). - */ - weekdays?: string[]; - /** - * The time of the day the schedule will occur. - */ - time?: string; -} - -/** - * Properties of a daily schedule. - */ -export interface DayDetails { - /** - * The time of day the schedule will occur. - */ - time?: string; -} - -/** - * Properties of an hourly schedule. - */ -export interface HourDetails { - /** - * Minutes of the hour the schedule will run. + * The identity that created the resource. */ - minute?: number; -} - -/** - * Notification settings for a schedule. - */ -export interface NotificationSettings { + createdBy?: string; /** - * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values - * include: 'Enabled', 'Disabled' + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' */ - status?: EnableStatus; + createdByType?: CreatedByType; /** - * Time in minutes before event at which notification will be sent. + * The timestamp of resource creation (UTC). */ - timeInMinutes?: number; + createdAt?: Date; /** - * The webhook URL to which the notification will be sent. + * The identity that last modified the resource. */ - webhookUrl?: string; + lastModifiedBy?: string; /** - * The email recipient to send notifications to (can be a list of semi-colon separated email - * addresses). + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' */ - emailRecipient?: string; + lastModifiedByType?: CreatedByType; /** - * The locale to use when sending a notification (fallback for unsupported languages is EN). + * The timestamp of resource last modification (UTC) */ - notificationLocale?: string; + lastModifiedAt?: Date; } /** - * An Azure resource. + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource */ export interface Resource extends BaseResource { /** - * The identifier of the resource. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * The name of the resource. + * The name of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; - /** - * The location of the resource. - */ - location?: string; - /** - * The tags of the resource. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * A schedule. - */ -export interface Schedule extends Resource { - /** - * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', - * 'Disabled' - */ - status?: EnableStatus; - /** - * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). - */ - taskType?: string; - /** - * If the schedule will occur only some days of the week, specify the weekly recurrence. - */ - weeklyRecurrence?: WeekDetails; - /** - * If the schedule will occur once each day of the week, specify the daily recurrence. - */ - dailyRecurrence?: DayDetails; - /** - * If the schedule will occur multiple times a day, specify the hourly recurrence. - */ - hourlyRecurrence?: HourDetails; - /** - * The time zone ID (e.g. Pacific Standard time). - */ - timeZoneId?: string; - /** - * Notification settings. - */ - notificationSettings?: NotificationSettings; - /** - * The creation date of the schedule. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly createdDate?: Date; - /** - * The resource ID to which the schedule belongs - */ - targetResourceId?: string; - /** - * The provisioning status of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; - /** - * 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; -} - -/** - * Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab - * level. - */ -export interface ApplicableSchedule extends Resource { - /** - * The auto-shutdown schedule, if one has been set at the lab or lab resource level. - */ - labVmsShutdown?: Schedule; - /** - * The auto-startup schedule, if one has been set at the lab or lab resource level. - */ - labVmsStartup?: Schedule; -} - -/** - * Properties of a weekly schedule. - */ -export interface WeekDetailsFragment { - /** - * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). - */ - weekdays?: string[]; - /** - * The time of the day the schedule will occur. - */ - time?: string; -} - -/** - * Properties of a daily schedule. - */ -export interface DayDetailsFragment { - /** - * The time of day the schedule will occur. - */ - time?: string; -} - -/** - * Properties of an hourly schedule. - */ -export interface HourDetailsFragment { - /** - * Minutes of the hour the schedule will run. - */ - minute?: number; } /** - * Notification settings for a schedule. + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource */ -export interface NotificationSettingsFragment { - /** - * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values - * include: 'Enabled', 'Disabled' - */ - status?: EnableStatus; - /** - * Time in minutes before event at which notification will be sent. - */ - timeInMinutes?: number; - /** - * The webhook URL to which the notification will be sent. - */ - webhookUrl?: string; - /** - * The email recipient to send notifications to (can be a list of semi-colon separated email - * addresses). - */ - emailRecipient?: string; +export interface TrackedResource extends Resource { /** - * The locale to use when sending a notification (fallback for unsupported languages is EN). + * Resource tags. */ - notificationLocale?: string; -} - -/** - * Represents an update resource - */ -export interface UpdateResource { + tags?: { [propertyName: string]: string }; /** - * The tags of the resource. + * The geo-location where the resource lives */ - tags?: { [propertyName: string]: string }; + location: string; } /** * A schedule. */ -export interface ScheduleFragment extends UpdateResource { - /** - * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', - * 'Disabled' - */ - status?: EnableStatus; - /** - * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). - */ - taskType?: string; - /** - * If the schedule will occur only some days of the week, specify the weekly recurrence. - */ - weeklyRecurrence?: WeekDetailsFragment; - /** - * If the schedule will occur once each day of the week, specify the daily recurrence. - */ - dailyRecurrence?: DayDetailsFragment; - /** - * If the schedule will occur multiple times a day, specify the hourly recurrence. - */ - hourlyRecurrence?: HourDetailsFragment; - /** - * The time zone ID (e.g. Pacific Standard time). - */ - timeZoneId?: string; +export interface Schedule extends TrackedResource { /** - * Notification settings. + * The properties of the resource. */ - notificationSettings?: NotificationSettingsFragment; + properties: ScheduleProperties; /** - * The resource ID to which the schedule belongs + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - targetResourceId?: string; + readonly systemData?: SystemData; } /** * Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab * level. */ -export interface ApplicableScheduleFragment extends UpdateResource { +export interface ApplicableSchedule extends Resource { /** - * The auto-shutdown schedule, if one has been set at the lab or lab resource level. + * The properties of the resource. */ - labVmsShutdown?: ScheduleFragment; + properties: ApplicableScheduleProperties; /** - * The auto-startup schedule, if one has been set at the lab or lab resource level. + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - labVmsStartup?: ScheduleFragment; + readonly systemData?: SystemData; } /** @@ -414,6 +231,11 @@ export interface ArmTemplate extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly enabled?: boolean; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -444,20 +266,6 @@ export interface ArmTemplateParameterProperties { value?: string; } -/** - * Properties of an Azure Resource Manager template parameter. - */ -export interface ArmTemplateParameterPropertiesFragment { - /** - * The name of the template parameter. - */ - name?: string; - /** - * The value of the template parameter. - */ - value?: string; -} - /** * An artifact. */ @@ -502,183 +310,86 @@ export interface Artifact extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdDate?: Date; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * Properties of an artifact deployment. + * Properties of an artifact source. */ -export interface ArtifactDeploymentStatusProperties { +export interface ArtifactSource extends TrackedResource { /** - * The deployment status of the artifact. + * The artifact source's display name. */ - deploymentStatus?: string; + displayName?: string; /** - * The total count of the artifacts that were successfully applied. + * The artifact source's URI. */ - artifactsApplied?: number; + uri?: string; /** - * The total count of the artifacts that were tentatively applied. + * The artifact source's type. Possible values include: 'VsoGit', 'GitHub', 'StorageAccount' */ - totalArtifacts?: number; -} - -/** - * Properties of an artifact deployment. - */ -export interface ArtifactDeploymentStatusPropertiesFragment { + sourceType?: SourceControlType; /** - * The deployment status of the artifact. + * The folder containing artifacts. */ - deploymentStatus?: string; + folderPath?: string; /** - * The total count of the artifacts that were successfully applied. + * The folder containing Azure Resource Manager templates. */ - artifactsApplied?: number; + armTemplateFolderPath?: string; /** - * The total count of the artifacts that were tentatively applied. + * The artifact source's branch reference. */ - totalArtifacts?: number; -} - -/** - * Properties of an artifact parameter. - */ -export interface ArtifactParameterPropertiesFragment { + branchRef?: string; /** - * The name of the artifact parameter. + * The security token to authenticate to the artifact source. */ - name?: string; + securityToken?: string; /** - * The value of the artifact parameter. + * Indicates if the artifact source is enabled (values: Enabled, Disabled). Possible values + * include: 'Enabled', 'Disabled' */ - value?: string; -} - -/** - * Properties of an artifact. - */ -export interface ArtifactInstallPropertiesFragment { + status?: EnableStatus; /** - * The artifact's identifier. + * The artifact source's creation date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - artifactId?: string; + readonly createdDate?: Date; /** - * The artifact's title. + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - artifactTitle?: string; - /** - * The parameters of the artifact. - */ - parameters?: ArtifactParameterPropertiesFragment[]; - /** - * The status of the artifact. - */ - status?: string; - /** - * The status message from the deployment. - */ - deploymentStatusMessage?: string; + readonly provisioningState?: string; /** - * The status message from the virtual machine extension. + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmExtensionStatusMessage?: string; + readonly uniqueIdentifier?: string; /** - * The time that the artifact starts to install on the virtual machine. + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - installTime?: Date; + readonly systemData?: SystemData; } /** - * Properties of an artifact source. + * Resource tags */ -export interface ArtifactSource extends Resource { - /** - * The artifact source's display name. - */ - displayName?: string; - /** - * The artifact source's URI. - */ - uri?: string; - /** - * The artifact source's type. Possible values include: 'VsoGit', 'GitHub' - */ - sourceType?: SourceControlType; +export interface Tags { /** - * The folder containing artifacts. - */ - folderPath?: string; - /** - * The folder containing Azure Resource Manager templates. - */ - armTemplateFolderPath?: string; - /** - * The artifact source's branch reference. - */ - branchRef?: string; - /** - * The security token to authenticate to the artifact source. - */ - securityToken?: string; - /** - * Indicates if the artifact source is enabled (values: Enabled, Disabled). Possible values - * include: 'Enabled', 'Disabled' - */ - status?: EnableStatus; - /** - * The artifact source's creation date. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly createdDate?: Date; - /** - * The provisioning status of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; - /** - * The unique immutable identifier of a resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource tags */ - readonly uniqueIdentifier?: string; + tags?: { [propertyName: string]: string }; } /** - * Properties of an artifact source. + * Patch */ -export interface ArtifactSourceFragment extends UpdateResource { - /** - * The artifact source's display name. - */ - displayName?: string; - /** - * The artifact source's URI. - */ - uri?: string; - /** - * The artifact source's type. Possible values include: 'VsoGit', 'GitHub' - */ - sourceType?: SourceControlType; - /** - * The folder containing artifacts. - */ - folderPath?: string; - /** - * The folder containing Azure Resource Manager templates. - */ - armTemplateFolderPath?: string; - /** - * The artifact source's branch reference. - */ - branchRef?: string; - /** - * The security token to authenticate to the artifact source. - */ - securityToken?: string; - /** - * Indicates if the artifact source is enabled (values: Enabled, Disabled). Possible values - * include: 'Enabled', 'Disabled' - */ - status?: EnableStatus; +export interface ArtifactSourceFragment extends Tags { } /** @@ -692,61 +403,40 @@ export interface AttachDiskProperties { } /** - * Properties to attach new disk to the Virtual Machine. + * Profile of a Bastion Host */ -export interface AttachNewDataDiskOptions { - /** - * Size of the disk to be attached in Gibibytes. - */ - diskSizeGiB?: number; +export interface BastionHost extends TrackedResource { /** - * The name of the disk to be attached. - */ - diskName?: string; - /** - * The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', - * 'Premium' + * The ID of the external BastionHost resource that corresponds to this DTL BastionHost + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - diskType?: StorageType; -} - -/** - * Properties to attach new disk to the Virtual Machine. - */ -export interface AttachNewDataDiskOptionsFragment { + readonly externalBastionHostId?: string; /** - * Size of the disk to be attached in Gibibytes. + * The ID of the PublicIpAddress resource that is created by and paired with this BastionHost + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - diskSizeGiB?: number; + readonly ipAddressId?: string; /** - * The name of the disk to be attached. + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - diskName?: string; + readonly provisioningState?: string; /** - * The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', - * 'Premium' + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - diskType?: StorageType; -} - -/** - * Parameters for creating multiple virtual machines as a single action. - */ -export interface BulkCreationParameters { + readonly uniqueIdentifier?: string; /** - * The number of virtual machine instances to create. + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceCount?: number; + readonly systemData?: SystemData; } /** - * Parameters for creating multiple virtual machines as a single action. + * Patch */ -export interface BulkCreationParametersFragment { - /** - * The number of virtual machine instances to create. - */ - instanceCount?: number; +export interface BastionHostFragment extends Tags { } /** @@ -771,28 +461,6 @@ export interface ComputeDataDisk { diskSizeGiB?: number; } -/** - * A data disks attached to a virtual machine. - */ -export interface ComputeDataDiskFragment { - /** - * Gets data disk name. - */ - name?: string; - /** - * When backed by a blob, the URI of underlying blob. - */ - diskUri?: string; - /** - * When backed by managed disk, this is the ID of the compute disk resource. - */ - managedDiskId?: string; - /** - * Gets data disk size in GiB. - */ - diskSizeGiB?: number; -} - /** * Status information about a virtual machine. */ @@ -812,186 +480,166 @@ export interface ComputeVmInstanceViewStatus { } /** - * Status information about a virtual machine. + * Properties of a cost threshold item. */ -export interface ComputeVmInstanceViewStatusFragment { - /** - * Gets the status Code. - */ - code?: string; - /** - * Gets the short localizable label for the status. - */ - displayStatus?: string; +export interface CostThresholdProperties { /** - * Gets the message associated with the status. + * The ID of the cost threshold item. */ - message?: string; -} - -/** - * Properties of a virtual machine returned by the Microsoft.Compute API. - */ -export interface ComputeVmProperties { + thresholdId?: string; /** - * Gets the statuses of the virtual machine. + * The cost threshold value. */ - statuses?: ComputeVmInstanceViewStatus[]; + thresholdValue?: number; /** - * Gets the OS type of the virtual machine. + * Indicates whether this threshold will be displayed on cost charts. Possible values include: + * 'Enabled', 'Disabled' */ - osType?: string; + displayOnChart?: CostThresholdStatus; /** - * Gets the size of the virtual machine. + * Indicates whether notifications will be sent when this threshold is exceeded. Possible values + * include: 'Enabled', 'Disabled' */ - vmSize?: string; + sendNotificationWhenExceeded?: CostThresholdStatus; /** - * Gets the network interface ID of the virtual machine. + * Indicates the datetime when notifications were last sent for this threshold. */ - networkInterfaceId?: string; + notificationSent?: string; +} + +/** + * The properties of a lab cost item. + */ +export interface LabCostDetailsProperties { /** - * Gets OS disk blob uri for the virtual machine. + * The date of the cost item. */ - osDiskId?: string; + date?: Date; /** - * Gets data disks blob uri for the virtual machine. + * The cost component of the cost item. */ - dataDiskIds?: string[]; + cost?: number; /** - * Gets all data disks attached to the virtual machine. + * The type of the cost. Possible values include: 'Unavailable', 'Reported', 'Projected' */ - dataDisks?: ComputeDataDisk[]; + costType?: CostType; } /** - * Properties of a virtual machine returned by the Microsoft.Compute API. + * The properties of a resource cost item. */ -export interface ComputeVmPropertiesFragment { +export interface LabResourceCostProperties { /** - * Gets the statuses of the virtual machine. + * The name of the resource. */ - statuses?: ComputeVmInstanceViewStatusFragment[]; + resourcename?: string; /** - * Gets the OS type of the virtual machine. + * The unique identifier of the resource. */ - osType?: string; + resourceUId?: string; /** - * Gets the size of the virtual machine. + * The cost component of the resource cost item. */ - vmSize?: string; + resourceCost?: number; /** - * Gets the network interface ID of the virtual machine. + * The logical resource type (ex. virtualmachine, storageaccount) */ - networkInterfaceId?: string; + resourceType?: string; /** - * Gets OS disk blob uri for the virtual machine. + * The owner of the resource (ex. janedoe@microsoft.com) */ - osDiskId?: string; + resourceOwner?: string; /** - * Gets data disks blob uri for the virtual machine. + * The category of the resource (ex. Premium_LRS, Standard_DS1) */ - dataDiskIds?: string[]; + resourcePricingTier?: string; /** - * Gets all data disks attached to the virtual machine. + * The status of the resource (ex. Active) + */ + resourceStatus?: string; + /** + * The ID of the resource + */ + resourceId?: string; + /** + * The ID of the external resource */ - dataDisks?: ComputeDataDiskFragment[]; + externalResourceId?: string; } /** - * Properties of a percentage cost threshold. + * A cost item. */ -export interface PercentageCostThresholdProperties { +export interface Cost extends Resource { /** - * The cost threshold value. + * Target cost status. Possible values include: 'Enabled', 'Disabled' */ - thresholdValue?: number; -} - -/** - * Properties of a cost threshold item. - */ -export interface CostThresholdProperties { + status?: TargetCostStatus; /** - * The ID of the cost threshold item. + * Lab target cost */ - thresholdId?: string; + target?: number; /** - * The value of the percentage cost threshold. + * Cost thresholds. */ - percentageThreshold?: PercentageCostThresholdProperties; + costThresholds?: CostThresholdProperties[]; /** - * Indicates whether this threshold will be displayed on cost charts. Possible values include: - * 'Enabled', 'Disabled' + * Reporting cycle start date. */ - displayOnChart?: CostThresholdStatus; + cycleStartDateTime?: Date; /** - * Indicates whether notifications will be sent when this threshold is exceeded. Possible values - * include: 'Enabled', 'Disabled' + * Reporting cycle end date. */ - sendNotificationWhenExceeded?: CostThresholdStatus; + cycleEndDateTime?: Date; /** - * Indicates the datetime when notifications were last sent for this threshold. + * Reporting cycle type. Possible values include: 'CalendarMonth', 'Custom' */ - notificationSent?: string; -} - -/** - * Information about a Windows OS. - */ -export interface WindowsOsInfo { + cycleType?: ReportingCycleType; /** - * The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). Possible - * values include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' + * The cost component of the cost item. */ - windowsOsState?: WindowsOsState; -} - -/** - * Information about a Linux OS. - */ -export interface LinuxOsInfo { + estimatedLabCost?: number; /** - * The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). - * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested', 'DeprovisionApplied' + * The lab cost details component of the cost data. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - linuxOsState?: LinuxOsState; -} - -/** - * Properties for creating a custom image from a virtual machine. - */ -export interface CustomImagePropertiesFromVm { + readonly labCostDetails?: LabCostDetailsProperties[]; /** - * The source vm identifier. + * The resource cost component of the cost data. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceVmId?: string; + readonly resourceCosts?: LabResourceCostProperties[]; /** - * The Windows OS information of the VM. + * The currency code of the cost. */ - windowsOsInfo?: WindowsOsInfo; + currencyCode?: string; /** - * The Linux OS information of the VM. + * The start time of the cost data. */ - linuxOsInfo?: LinuxOsInfo; -} - -/** - * Properties for creating a custom image from a VHD. - */ -export interface CustomImagePropertiesCustom { + startDateTime?: Date; /** - * The image name. + * The end time of the cost data. */ - imageName?: string; + endDateTime?: Date; /** - * Indicates whether sysprep has been run on the VHD. + * The creation date of the cost. */ - sysPrep?: boolean; + createdDate?: Date; /** - * The OS type of the custom image (i.e. Windows, Linux). Possible values include: 'Windows', - * 'Linux', 'None' + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osType: CustomImageOsType; + readonly provisioningState?: string; + /** + * 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; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -1003,41 +651,42 @@ export interface DataDiskStorageTypeInfo { */ lun?: string; /** - * Disk Storage Type. Possible values include: 'Standard', 'Premium' + * Disk Storage Type. Possible values include: 'Standard', 'Premium', 'StandardSSD' */ storageType?: StorageType; } /** - * Properties for plan on a custom image. + * A custom image. */ -export interface CustomImagePropertiesFromPlan { +export interface CustomImage extends TrackedResource { /** - * The id of the plan, equivalent to name of the plan + * The source vm identifier. */ - id?: string; + sourceVmId?: string; /** - * The publisher for the plan from the marketplace image the custom image is derived from + * The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). Possible + * values include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' */ - publisher?: string; + windowsOsState?: WindowsOsState; /** - * The offer for the plan from the marketplace image the custom image is derived from + * The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). + * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested', 'DeprovisionApplied' */ - offer?: string; -} - -/** - * A custom image. - */ -export interface CustomImage extends Resource { + linuxOsState?: LinuxOsState; /** - * The virtual machine from which the image is to be created. + * The image name. + */ + imageName?: string; + /** + * Indicates whether sysprep has been run on the VHD. */ - vm?: CustomImagePropertiesFromVm; + sysPrep?: boolean; /** - * The VHD from which the image is to be created. + * The OS type of the custom image (i.e. Windows, Linux). Possible values include: 'Windows', + * 'Linux', 'None' */ - vhd?: CustomImagePropertiesCustom; + osType: CustomImageOsType; /** * The description of the custom image. */ @@ -1064,9 +713,17 @@ export interface CustomImage extends Resource { */ dataDiskStorageInfo?: DataDiskStorageTypeInfo[]; /** - * Storage information about the plan related to this custom image + * The id of the plan, equivalent to name of the plan + */ + customImageId?: string; + /** + * The publisher for the plan from the marketplace image the custom image is derived from + */ + publisher?: string; + /** + * The offer for the plan from the marketplace image the custom image is derived from */ - customImagePlan?: CustomImagePropertiesFromPlan; + offer?: string; /** * Whether or not the custom images underlying offer/plan has been enabled for programmatic * deployment @@ -1082,140 +739,17 @@ export interface CustomImage extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly uniqueIdentifier?: string; -} - -/** - * Information about a Windows OS. - */ -export interface WindowsOsInfoFragment { - /** - * The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). Possible - * values include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' - */ - windowsOsState?: WindowsOsState; -} - -/** - * Information about a Linux OS. - */ -export interface LinuxOsInfoFragment { - /** - * The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). - * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested', 'DeprovisionApplied' - */ - linuxOsState?: LinuxOsState; -} - -/** - * Properties for creating a custom image from a virtual machine. - */ -export interface CustomImagePropertiesFromVmFragment { - /** - * The source vm identifier. - */ - sourceVmId?: string; - /** - * The Windows OS information of the VM. - */ - windowsOsInfo?: WindowsOsInfoFragment; - /** - * The Linux OS information of the VM. - */ - linuxOsInfo?: LinuxOsInfoFragment; -} - -/** - * Properties for creating a custom image from a VHD. - */ -export interface CustomImagePropertiesCustomFragment { - /** - * The image name. - */ - imageName?: string; - /** - * Indicates whether sysprep has been run on the VHD. - */ - sysPrep?: boolean; - /** - * The OS type of the custom image (i.e. Windows, Linux). Possible values include: 'Windows', - * 'Linux', 'None' - */ - osType?: CustomImageOsType; -} - -/** - * Storage information about the data disks present in the custom image - */ -export interface DataDiskStorageTypeInfoFragment { - /** - * Disk Lun - */ - lun?: string; - /** - * Disk Storage Type. Possible values include: 'Standard', 'Premium' - */ - storageType?: StorageType; -} - -/** - * Properties for plan on a custom image. - */ -export interface CustomImagePropertiesFromPlanFragment { - /** - * The id of the plan, equivalent to name of the plan - */ - id?: string; - /** - * The publisher for the plan from the marketplace image the custom image is derived from - */ - publisher?: string; /** - * The offer for the plan from the marketplace image the custom image is derived from + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - offer?: string; + readonly systemData?: SystemData; } /** - * A custom image. + * Patch */ -export interface CustomImageFragment extends UpdateResource { - /** - * The virtual machine from which the image is to be created. - */ - vm?: CustomImagePropertiesFromVmFragment; - /** - * The VHD from which the image is to be created. - */ - vhd?: CustomImagePropertiesCustomFragment; - /** - * The description of the custom image. - */ - description?: string; - /** - * The author of the custom image. - */ - author?: string; - /** - * The Managed Image Id backing the custom image. - */ - managedImageId?: string; - /** - * The Managed Snapshot Id backing the custom image. - */ - managedSnapshotId?: string; - /** - * Storage information about the data disks present in the custom image - */ - dataDiskStorageInfo?: DataDiskStorageTypeInfoFragment[]; - /** - * Storage information about the plan related to this custom image - */ - customImagePlan?: CustomImagePropertiesFromPlanFragment; - /** - * Whether or not the custom images underlying offer/plan has been enabled for programmatic - * deployment - */ - isPlanAuthorized?: boolean; +export interface CustomImageFragment extends Tags { } /** @@ -1223,28 +757,18 @@ export interface CustomImageFragment extends UpdateResource { */ export interface DataDiskProperties { /** - * Specifies options to attach a new disk to the virtual machine. - */ - attachNewDataDiskOptions?: AttachNewDataDiskOptions; - /** - * Specifies the existing lab disk id to attach to virtual machine. + * Size of the disk to be attached in Gibibytes. */ - existingLabDiskId?: string; + diskSizeGiB?: number; /** - * Caching option for a data disk (i.e. None, ReadOnly, ReadWrite). Possible values include: - * 'None', 'ReadOnly', 'ReadWrite' + * The name of the disk to be attached. */ - hostCaching?: HostCachingOptions; -} - -/** - * Request body for adding a new or existing data disk to a virtual machine. - */ -export interface DataDiskPropertiesFragment { + diskName?: string; /** - * Specifies options to attach a new disk to the virtual machine. + * The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', + * 'Premium', 'StandardSSD' */ - attachNewDataDiskOptions?: AttachNewDataDiskOptionsFragment; + diskType?: StorageType; /** * Specifies the existing lab disk id to attach to virtual machine. */ @@ -1253,7 +777,7 @@ export interface DataDiskPropertiesFragment { * Caching option for a data disk (i.e. None, ReadOnly, ReadWrite). Possible values include: * 'None', 'ReadOnly', 'ReadWrite' */ - hostCaching?: HostCachingOptions; + hostCaching?: HostCachingOption; } /** @@ -1279,10 +803,10 @@ export interface DetachDiskProperties { /** * A Disk. */ -export interface Disk extends Resource { +export interface Disk extends TrackedResource { /** * The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', - * 'Premium' + * 'Premium', 'StandardSSD' */ diskType?: StorageType; /** @@ -1301,6 +825,10 @@ export interface Disk extends Resource { * When backed by a blob, the URI of underlying blob. */ diskUri?: string; + /** + * When backed by a blob, the storage account where the blob is. + */ + storageAccountId?: string; /** * The creation date of the disk. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1324,47 +852,23 @@ export interface Disk extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly uniqueIdentifier?: string; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * A Disk. + * Patch + */ +export interface DiskFragment extends Tags { +} + +/** + * An environment, which is essentially an ARM template deployment. */ -export interface DiskFragment extends UpdateResource { - /** - * The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', - * 'Premium' - */ - diskType?: StorageType; - /** - * The size of the disk in Gibibytes. - */ - diskSizeGiB?: number; - /** - * The resource ID of the VM to which this disk is leased. - */ - leasedByLabVmId?: string; - /** - * When backed by a blob, the name of the VHD blob without extension. - */ - diskBlobName?: string; - /** - * When backed by a blob, the URI of underlying blob. - */ - diskUri?: string; - /** - * The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite). - */ - hostCaching?: string; - /** - * When backed by managed disk, this is the ID of the compute disk resource. - */ - managedDiskId?: string; -} - -/** - * Properties of an environment deployment. - */ -export interface EnvironmentDeploymentProperties { +export interface Environment extends TrackedResource { /** * The Azure Resource Manager template's identifier. */ @@ -1373,16 +877,6 @@ export interface EnvironmentDeploymentProperties { * The parameters of the Azure Resource Manager template. */ parameters?: ArmTemplateParameterProperties[]; -} - -/** - * An environment, which is essentially an ARM template deployment. - */ -export interface DtlEnvironment extends Resource { - /** - * The deployment properties of the environment. - */ - deploymentProperties?: EnvironmentDeploymentProperties; /** * The display name of the Azure Resource Manager template that produced the environment. */ @@ -1407,34 +901,17 @@ export interface DtlEnvironment extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly uniqueIdentifier?: string; -} - -/** - * Properties of an environment deployment. - */ -export interface EnvironmentDeploymentPropertiesFragment { - /** - * The Azure Resource Manager template's identifier. - */ - armTemplateId?: string; /** - * The parameters of the Azure Resource Manager template. + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - parameters?: ArmTemplateParameterPropertiesFragment[]; + readonly systemData?: SystemData; } /** - * An environment, which is essentially an ARM template deployment. + * Patch */ -export interface DtlEnvironmentFragment extends UpdateResource { - /** - * The deployment properties of the environment. - */ - deploymentProperties?: EnvironmentDeploymentPropertiesFragment; - /** - * The display name of the Azure Resource Manager template that produced the environment. - */ - armTemplateDisplayName?: string; +export interface EnvironmentFragment extends Tags { } /** @@ -1518,17 +995,6 @@ export interface Event { eventName?: NotificationChannelEventType; } -/** - * An event to be notified for. - */ -export interface EventFragment { - /** - * The event type for which this notification is enabled (i.e. AutoShutdown, Cost). Possible - * values include: 'AutoShutdown', 'Cost' - */ - eventName?: NotificationChannelEventType; -} - /** * The parameters of the export operation. */ @@ -1559,46 +1025,6 @@ export interface ExternalSubnet { name?: string; } -/** - * Subnet information as returned by the Microsoft.Network API. - */ -export interface ExternalSubnetFragment { - /** - * Gets or sets the identifier. - */ - id?: string; - /** - * Gets or sets the name. - */ - name?: string; -} - -/** - * The reference information for an Azure Marketplace image. - */ -export interface GalleryImageReference { - /** - * The offer of the gallery image. - */ - offer?: string; - /** - * The publisher of the gallery image. - */ - publisher?: string; - /** - * The SKU of the gallery image. - */ - sku?: string; - /** - * The OS type of the gallery image. - */ - osType?: string; - /** - * The version of the gallery image. - */ - version?: string; -} - /** * A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load * balancer. @@ -1620,96 +1046,79 @@ export interface InboundNatRule { } /** - * Properties of a virtual machine that determine how it is connected to a load balancer. - */ -export interface SharedPublicIpAddressConfiguration { - /** - * The incoming NAT rules - */ - inboundNatRules?: InboundNatRule[]; -} - -/** - * Properties of a network interface. + * Properties for creating a schedule. */ -export interface NetworkInterfaceProperties { - /** - * The resource ID of the virtual network. - */ - virtualNetworkId?: string; +export interface ScheduleCreationParameter { /** - * The resource ID of the sub net. + * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Disabled'. */ - subnetId?: string; + status?: EnableStatus; /** - * The resource ID of the public IP address. + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). */ - publicIpAddressId?: string; + taskType?: string; /** - * The public IP address. + * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). */ - publicIpAddress?: string; + weekdays?: string[]; /** - * The private IP address. + * The time of the day the schedule will occur. */ - privateIpAddress?: string; + time?: string; /** - * The DNS name. + * The time of day the schedule will occur. */ - dnsName?: string; + time1?: string; /** - * The RdpAuthority property is a server DNS host name or IP address followed by the service port - * number for RDP (Remote Desktop Protocol). + * Minutes of the hour the schedule will run. */ - rdpAuthority?: string; + minute?: number; /** - * The SshAuthority property is a server DNS host name or IP address followed by the service port - * number for SSH. + * The time zone ID (e.g. Pacific Standard time). */ - sshAuthority?: string; + timeZoneId?: string; /** - * The configuration for sharing a public IP address across multiple virtual machines. + * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - sharedPublicIpAddressConfiguration?: SharedPublicIpAddressConfiguration; -} - -/** - * Properties for creating a schedule. - */ -export interface ScheduleCreationParameter { + status1?: EnableStatus; /** - * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', - * 'Disabled' + * Time in minutes before event at which notification will be sent. */ - status?: EnableStatus; + timeInMinutes?: number; /** - * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). + * The webhook URL to which the notification will be sent. */ - taskType?: string; + webhookUrl?: string; /** - * If the schedule will occur only some days of the week, specify the weekly recurrence. + * The email recipient to send notifications to (can be a list of semi-colon separated email + * addresses). */ - weeklyRecurrence?: WeekDetails; + emailRecipient?: string; /** - * If the schedule will occur once each day of the week, specify the daily recurrence. + * The locale to use when sending a notification (fallback for unsupported languages is EN). */ - dailyRecurrence?: DayDetails; + notificationLocale?: string; /** - * If the schedule will occur multiple times a day, specify the hourly recurrence. + * The creation date of the schedule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hourlyRecurrence?: HourDetails; + readonly createdDate?: Date; /** - * The time zone ID (e.g. Pacific Standard time). + * The resource ID to which the schedule belongs */ - timeZoneId?: string; + targetResourceId?: string; /** - * Notification settings. + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - notificationSettings?: NotificationSettings; + readonly provisioningState?: string; /** - * The resource ID to which the schedule belongs + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - targetResourceId?: string; + readonly uniqueIdentifier?: string; /** * The name of the virtual machine or environment */ @@ -1731,13 +1140,13 @@ export interface LabVirtualMachineCreationParameter { /** * The number of virtual machine instances to create. */ - bulkCreationParameters?: BulkCreationParameters; + instanceCount?: number; /** * The notes of the virtual machine. */ notes?: string; /** - * The object identifier of the owner of the virtual machine. + * The object identifier of the owner of the virtual machine. Default value: 'dynamicValue'. */ ownerObjectId?: string; /** @@ -1746,28 +1155,44 @@ export interface LabVirtualMachineCreationParameter { ownerUserPrincipalName?: string; /** * The object identifier of the creator of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - createdByUserId?: string; + readonly createdByUserId?: string; /** * The email address of creator of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - createdByUser?: string; + readonly createdByUser?: string; /** * The creation date of the virtual machine. */ createdDate?: Date; /** * The resource identifier (Microsoft.Compute) of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - computeId?: string; + readonly computeId?: string; /** * The custom image identifier of the virtual machine. */ customImageId?: string; + /** + * The shared gallery image version resource identifier of the virtual machine. + */ + galleryImageVersionId?: string; + /** + * The shared image resource identifier of the virtual machine. + */ + sharedImageId?: string; + /** + * The shared image version for the specified shared image Id. Will use latest if not specified. + */ + sharedImageVersion?: string; /** * The OS type of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osType?: string; + readonly osType?: string; /** * The size of the virtual machine. */ @@ -1790,8 +1215,9 @@ export interface LabVirtualMachineCreationParameter { isAuthenticationWithSshKey?: boolean; /** * The fully-qualified domain name of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - fqdn?: string; + readonly fqdn?: string; /** * The lab subnet name of the virtual machine. */ @@ -1801,7 +1227,8 @@ export interface LabVirtualMachineCreationParameter { */ labVirtualNetworkId?: string; /** - * Indicates whether the virtual machine is to be created without a public IP address. + * Indicates whether the virtual machine is to be created without a public IP address. Default + * value: false. */ disallowPublicIpAddress?: boolean; /** @@ -1809,387 +1236,354 @@ export interface LabVirtualMachineCreationParameter { */ artifacts?: ArtifactInstallProperties[]; /** - * The artifact deployment status for the virtual machine. + * The deployment status of the artifact. */ - artifactDeploymentStatus?: ArtifactDeploymentStatusProperties; + deploymentStatus?: string; /** - * The Microsoft Azure Marketplace image reference of the virtual machine. + * The total count of the artifacts that were successfully applied. */ - galleryImageReference?: GalleryImageReference; + artifactsApplied?: number; /** - * The id of the plan associated with the virtual machine image + * The total count of the artifacts that were tentatively applied. */ - planId?: string; + totalArtifacts?: number; /** - * The network interface properties. + * The offer of the gallery image. */ - networkInterface?: NetworkInterfaceProperties; + offer?: string; /** - * The expiration date for VM. + * The publisher of the gallery image. */ - expirationDate?: Date; + publisher?: string; /** - * Indicates whether another user can take ownership of the virtual machine + * The SKU of the gallery image. */ - allowClaim?: boolean; + sku?: string; /** - * Storage type to use for virtual machine (i.e. Standard, Premium). + * The OS type of the gallery image. */ - storageType?: string; + osType1?: string; /** - * Tells source of creation of lab virtual machine. Output property only. Possible values - * include: 'FromCustomImage', 'FromGalleryImage' + * The version of the gallery image. */ - virtualMachineCreationSource?: VirtualMachineCreationSource; + version?: string; /** - * The resource ID of the environment that contains this virtual machine, if any. + * The id of the plan associated with the virtual machine image */ - environmentId?: string; + planId?: string; /** - * New or existing data disks to attach to the virtual machine after creation + * Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite + * the size of the disk in a virtual machine image. */ - dataDiskParameters?: DataDiskProperties[]; + osDiskSizeGb?: number; /** - * Virtual Machine schedules to be created + * Gets the statuses of the virtual machine. */ - scheduleParameters?: ScheduleCreationParameter[]; + statuses?: ComputeVmInstanceViewStatus[]; /** - * Last known compute power state captured in DTL + * Gets the OS type of the virtual machine. */ - lastKnownPowerState?: string; + osType2?: string; /** - * The name of the virtual machine or environment + * Gets the size of the virtual machine. */ - name?: string; + vmSize?: string; /** - * The location of the new virtual machine or environment + * Gets the network interface ID of the virtual machine. */ - location?: string; + networkInterfaceId?: string; /** - * The tags of the resource. + * Gets OS disk blob uri for the virtual machine. */ - tags?: { [propertyName: string]: string }; -} - -/** - * Information about a VM from which a formula is to be created. - */ -export interface FormulaPropertiesFromVm { + osDiskId?: string; /** - * The identifier of the VM from which a formula is to be created. + * Gets data disks blob uri for the virtual machine. */ - labVmId?: string; -} - -/** - * A formula for creating a VM, specifying an image base and other parameters - */ -export interface Formula extends Resource { + dataDiskIds?: string[]; /** - * The description of the formula. + * Gets all data disks attached to the virtual machine. */ - description?: string; - /** - * The author of the formula. - */ - author?: string; - /** - * The OS type of the formula. - */ - osType?: string; + dataDisks?: ComputeDataDisk[]; /** - * The creation date of the formula. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource ID of the virtual network. */ - readonly creationDate?: Date; + virtualNetworkId?: string; /** - * The content of the formula. + * The resource ID of the sub net. */ - formulaContent?: LabVirtualMachineCreationParameter; + subnetId?: string; /** - * Information about a VM from which a formula is to be created. + * The resource ID of the public IP address. */ - vm?: FormulaPropertiesFromVm; + publicIpAddressId?: string; /** - * The provisioning status of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The public IP address. */ - readonly provisioningState?: string; + publicIpAddress?: string; /** - * The unique immutable identifier of a resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The private IP address. */ - readonly uniqueIdentifier?: string; -} - -/** - * The reference information for an Azure Marketplace image. - */ -export interface GalleryImageReferenceFragment { + privateIpAddress?: string; /** - * The offer of the gallery image. + * The DNS name. */ - offer?: string; + dnsName?: string; /** - * The publisher of the gallery image. + * The RdpAuthority property is a server DNS host name or IP address followed by the service port + * number for RDP (Remote Desktop Protocol). */ - publisher?: string; + rdpAuthority?: string; /** - * The SKU of the gallery image. + * The SshAuthority property is a server DNS host name or IP address followed by the service port + * number for SSH. */ - sku?: string; + sshAuthority?: string; /** - * The OS type of the gallery image. + * The incoming NAT rules */ - osType?: string; + inboundNatRules?: InboundNatRule[]; /** - * The version of the gallery image. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - version?: string; -} - -/** - * A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load - * balancer. - */ -export interface InboundNatRuleFragment { + readonly id?: string; /** - * The transport protocol for the endpoint. Possible values include: 'Tcp', 'Udp' + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - transportProtocol?: TransportProtocol; + readonly applicableScheduleName?: string; /** - * The external endpoint port of the inbound connection. Possible values range between 1 and - * 65535, inclusive. If unspecified, a value will be allocated automatically. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - frontendPort?: number; + readonly type?: string; /** - * The port to which the external traffic will be redirected. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - backendPort?: number; -} - -/** - * Properties of a virtual machine that determine how it is connected to a load balancer. - */ -export interface SharedPublicIpAddressConfigurationFragment { + readonly id1?: string; /** - * The incoming NAT rules + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - inboundNatRules?: InboundNatRuleFragment[]; -} - -/** - * Properties of a network interface. - */ -export interface NetworkInterfacePropertiesFragment { + readonly name1?: string; /** - * The resource ID of the virtual network. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - virtualNetworkId?: string; + readonly type1?: string; /** - * The resource ID of the sub net. + * Resource tags. */ - subnetId?: string; + scheduleTags?: { [propertyName: string]: string }; /** - * The resource ID of the public IP address. + * The geo-location where the resource lives */ - publicIpAddressId?: string; + scheduleLocation: string; /** - * The public IP address. + * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Disabled'. */ - publicIpAddress?: string; + status?: EnableStatus; /** - * The private IP address. + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). */ - privateIpAddress?: string; + taskType?: string; /** - * The DNS name. + * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). */ - dnsName?: string; + weekdays?: string[]; /** - * The RdpAuthority property is a server DNS host name or IP address followed by the service port - * number for RDP (Remote Desktop Protocol). + * The time of the day the schedule will occur. */ - rdpAuthority?: string; + time?: string; /** - * The SshAuthority property is a server DNS host name or IP address followed by the service port - * number for SSH. + * The time of day the schedule will occur. */ - sshAuthority?: string; + time1?: string; /** - * The configuration for sharing a public IP address across multiple virtual machines. + * Minutes of the hour the schedule will run. */ - sharedPublicIpAddressConfiguration?: SharedPublicIpAddressConfigurationFragment; -} - -/** - * Properties for creating a schedule. - */ -export interface ScheduleCreationParameterFragment { + minute?: number; /** - * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', - * 'Disabled' + * The time zone ID (e.g. Pacific Standard time). */ - status?: EnableStatus; + timeZoneId?: string; /** - * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). + * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - taskType?: string; + status1?: EnableStatus; /** - * If the schedule will occur only some days of the week, specify the weekly recurrence. + * Time in minutes before event at which notification will be sent. */ - weeklyRecurrence?: WeekDetailsFragment; + timeInMinutes?: number; /** - * If the schedule will occur once each day of the week, specify the daily recurrence. + * The webhook URL to which the notification will be sent. */ - dailyRecurrence?: DayDetailsFragment; + webhookUrl?: string; /** - * If the schedule will occur multiple times a day, specify the hourly recurrence. + * The email recipient to send notifications to (can be a list of semi-colon separated email + * addresses). */ - hourlyRecurrence?: HourDetailsFragment; + emailRecipient?: string; /** - * The time zone ID (e.g. Pacific Standard time). + * The locale to use when sending a notification (fallback for unsupported languages is EN). */ - timeZoneId?: string; + notificationLocale?: string; /** - * Notification settings. + * The creation date of the schedule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - notificationSettings?: NotificationSettingsFragment; + readonly createdDate1?: Date; /** * The resource ID to which the schedule belongs */ targetResourceId?: string; /** - * The name of the virtual machine or environment - */ - name?: string; - /** - * The location of the new virtual machine or environment + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - location?: string; + readonly provisioningState?: string; /** - * The tags of the resource. + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; -} - -/** - * Properties for creating a virtual machine. - */ -export interface LabVirtualMachineCreationParameterFragment { + readonly uniqueIdentifier?: string; /** - * The number of virtual machine instances to create. + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - bulkCreationParameters?: BulkCreationParametersFragment; + readonly systemData?: SystemData; /** - * The notes of the virtual machine. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - notes?: string; + readonly id2?: string; /** - * The object identifier of the owner of the virtual machine. + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ownerObjectId?: string; + readonly name2?: string; /** - * The user principal name of the virtual machine owner. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ownerUserPrincipalName?: string; + readonly type2?: string; /** - * The object identifier of the creator of the virtual machine. + * Resource tags. */ - createdByUserId?: string; + tags1?: { [propertyName: string]: string }; /** - * The email address of creator of the virtual machine. + * The geo-location where the resource lives */ - createdByUser?: string; + location1: string; /** - * The creation date of the virtual machine. + * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Disabled'. */ - createdDate?: Date; + status2?: EnableStatus; /** - * The resource identifier (Microsoft.Compute) of the virtual machine. + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). */ - computeId?: string; + taskType1?: string; /** - * The custom image identifier of the virtual machine. + * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). */ - customImageId?: string; + weekdays1?: string[]; /** - * The OS type of the virtual machine. + * The time of the day the schedule will occur. */ - osType?: string; + time2?: string; /** - * The size of the virtual machine. + * The time of day the schedule will occur. */ - size?: string; + time3?: string; /** - * The user name of the virtual machine. + * Minutes of the hour the schedule will run. */ - userName?: string; + minute1?: number; /** - * The password of the virtual machine administrator. + * The time zone ID (e.g. Pacific Standard time). */ - password?: string; + timeZoneId1?: string; /** - * The SSH key of the virtual machine administrator. + * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - sshKey?: string; + status3?: EnableStatus; /** - * Indicates whether this virtual machine uses an SSH key for authentication. + * Time in minutes before event at which notification will be sent. */ - isAuthenticationWithSshKey?: boolean; + timeInMinutes1?: number; /** - * The fully-qualified domain name of the virtual machine. + * The webhook URL to which the notification will be sent. */ - fqdn?: string; + webhookUrl1?: string; /** - * The lab subnet name of the virtual machine. + * The email recipient to send notifications to (can be a list of semi-colon separated email + * addresses). */ - labSubnetName?: string; + emailRecipient1?: string; /** - * The lab virtual network identifier of the virtual machine. + * The locale to use when sending a notification (fallback for unsupported languages is EN). */ - labVirtualNetworkId?: string; + notificationLocale1?: string; /** - * Indicates whether the virtual machine is to be created without a public IP address. + * The creation date of the schedule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - disallowPublicIpAddress?: boolean; + readonly createdDate2?: Date; /** - * The artifacts to be installed on the virtual machine. + * The resource ID to which the schedule belongs */ - artifacts?: ArtifactInstallPropertiesFragment[]; + targetResourceId1?: string; /** - * The artifact deployment status for the virtual machine. + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - artifactDeploymentStatus?: ArtifactDeploymentStatusPropertiesFragment; + readonly provisioningState1?: string; /** - * The Microsoft Azure Marketplace image reference of the virtual machine. + * 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 uniqueIdentifier1?: string; /** - * The id of the plan associated with the virtual machine image + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - planId?: string; + readonly systemData1?: SystemData; /** - * The network interface properties. + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - networkInterface?: NetworkInterfacePropertiesFragment; + readonly systemData2?: SystemData; /** * The expiration date for VM. */ expirationDate?: Date; /** - * Indicates whether another user can take ownership of the virtual machine + * Indicates whether another user can take ownership of the virtual machine. Default value: + * false. */ allowClaim?: boolean; /** - * Storage type to use for virtual machine (i.e. Standard, Premium). + * Storage type to use for virtual machine (i.e. Standard, Premium, StandardSSD). Possible values + * include: 'Standard', 'Premium', 'StandardSSD'. Default value: 'Standard'. */ - storageType?: string; + storageType?: StorageType; /** * Tells source of creation of lab virtual machine. Output property only. Possible values - * include: 'FromCustomImage', 'FromGalleryImage' + * include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - virtualMachineCreationSource?: VirtualMachineCreationSource; + readonly virtualMachineCreationSource?: VirtualMachineCreationSource; /** * The resource ID of the environment that contains this virtual machine, if any. */ @@ -2197,15 +1591,31 @@ export interface LabVirtualMachineCreationParameterFragment { /** * New or existing data disks to attach to the virtual machine after creation */ - dataDiskParameters?: DataDiskPropertiesFragment[]; + dataDiskParameters?: DataDiskProperties[]; /** * Virtual Machine schedules to be created */ - scheduleParameters?: ScheduleCreationParameterFragment[]; + scheduleParameters?: ScheduleCreationParameter[]; /** * Last known compute power state captured in DTL + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastKnownPowerState?: string; + /** + * Flag to determine if apply artifacts can be triggered at the time of fetching the document. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastKnownPowerState?: string; + readonly canApplyArtifacts?: boolean; + /** + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState2?: string; + /** + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly uniqueIdentifier2?: string; /** * The name of the virtual machine or environment */ @@ -2220,997 +1630,1102 @@ export interface LabVirtualMachineCreationParameterFragment { tags?: { [propertyName: string]: string }; } -/** - * Information about a VM from which a formula is to be created. - */ -export interface FormulaPropertiesFromVmFragment { - /** - * The identifier of the VM from which a formula is to be created. - */ - labVmId?: string; -} - /** * A formula for creating a VM, specifying an image base and other parameters */ -export interface FormulaFragment extends UpdateResource { +export interface Formula extends TrackedResource { /** * The description of the formula. */ description?: string; /** * The author of the formula. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - author?: string; + readonly author?: string; /** * The OS type of the formula. */ osType?: string; /** - * The content of the formula. + * The creation date of the formula. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - formulaContent?: LabVirtualMachineCreationParameterFragment; + readonly creationDate?: Date; /** - * Information about a VM from which a formula is to be created. + * The number of virtual machine instances to create. */ - vm?: FormulaPropertiesFromVmFragment; -} - -/** - * A gallery image. - */ -export interface GalleryImage extends Resource { + instanceCount?: number; /** - * The author of the gallery image. + * The notes of the virtual machine. */ - author?: string; + notes?: string; /** - * The creation date of the gallery image. + * The object identifier of the owner of the virtual machine. Default value: 'dynamicValue'. + */ + ownerObjectId?: string; + /** + * The user principal name of the virtual machine owner. + */ + ownerUserPrincipalName?: string; + /** + * The object identifier of the creator of the virtual machine. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly createdDate?: Date; + readonly createdByUserId?: string; /** - * The description of the gallery image. + * The email address of creator of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - description?: string; + readonly createdByUser?: string; /** - * The image reference of the gallery image. + * The creation date of the virtual machine. */ - imageReference?: GalleryImageReference; + createdDate?: Date; /** - * The icon of the gallery image. + * The resource identifier (Microsoft.Compute) of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - icon?: string; + readonly computeId?: string; /** - * Indicates whether this gallery image is enabled. + * The custom image identifier of the virtual machine. */ - enabled?: boolean; + customImageId?: string; /** - * The third party plan that applies to this image + * The shared gallery image version resource identifier of the virtual machine. */ - planId?: string; + galleryImageVersionId?: string; /** - * Indicates if the plan has been authorized for programmatic deployment. + * The shared image resource identifier of the virtual machine. */ - isPlanAuthorized?: boolean; -} - -/** - * Information about an artifact's parameter. - */ -export interface ParameterInfo { + sharedImageId?: string; /** - * The name of the artifact parameter. + * The shared image version for the specified shared image Id. Will use latest if not specified. */ - name?: string; + sharedImageVersion?: string; /** - * The value of the artifact parameter. + * The OS type of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - value?: string; -} - -/** - * Parameters for generating an ARM template for deploying artifacts. - */ -export interface GenerateArmTemplateRequest { + readonly osType1?: string; /** - * The resource name of the virtual machine. + * The size of the virtual machine. */ - virtualMachineName?: string; + size?: string; /** - * The parameters of the ARM template. + * The user name of the virtual machine. */ - parameters?: ParameterInfo[]; + userName?: string; /** - * The location of the virtual machine. + * The password of the virtual machine administrator. */ - location?: string; + password?: string; /** - * Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the - * default value. Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' + * The SSH key of the virtual machine administrator. */ - fileUploadOptions?: FileUploadOptions; -} - -/** - * Properties for generating an upload URI. - */ -export interface GenerateUploadUriParameter { + sshKey?: string; /** - * The blob name of the upload URI. + * Indicates whether this virtual machine uses an SSH key for authentication. */ - blobName?: string; -} - -/** - * Response body for generating an upload URI. - */ -export interface GenerateUploadUriResponse { + isAuthenticationWithSshKey?: boolean; /** - * The upload URI for the VHD. + * The fully-qualified domain name of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - uploadUri?: string; -} - -/** - * Properties of a managed identity - */ -export interface IdentityProperties { + readonly fqdn?: string; /** - * Managed identity. + * The lab subnet name of the virtual machine. */ - type?: string; + labSubnetName?: string; /** - * The principal id of resource identity. + * The lab virtual network identifier of the virtual machine. */ - principalId?: string; + labVirtualNetworkId?: string; /** - * The tenant identifier of resource. + * Indicates whether the virtual machine is to be created without a public IP address. Default + * value: false. */ - tenantId?: string; + disallowPublicIpAddress?: boolean; /** - * The client secret URL of the identity. + * The artifacts to be installed on the virtual machine. */ - clientSecretUrl?: string; -} - -/** - * This represents the payload required to import a virtual machine from a different lab into the - * current one - */ -export interface ImportLabVirtualMachineRequest { + artifacts?: ArtifactInstallProperties[]; /** - * The full resource ID of the virtual machine to be imported. + * The deployment status of the artifact. */ - sourceVirtualMachineResourceId?: string; + deploymentStatus?: string; /** - * The name of the virtual machine in the destination lab + * The total count of the artifacts that were successfully applied. */ - destinationVirtualMachineName?: string; -} - -/** - * Properties of a lab's announcement banner - */ -export interface LabAnnouncementProperties { + artifactsApplied?: number; /** - * The plain text title for the lab announcement + * The total count of the artifacts that were tentatively applied. */ - title?: string; + totalArtifacts?: number; /** - * The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will - * be shown. + * The offer of the gallery image. */ - markdown?: string; + offer?: string; /** - * Is the lab announcement active/enabled at this time?. Possible values include: 'Enabled', - * 'Disabled' + * The publisher of the gallery image. */ - enabled?: EnableStatus; + publisher?: string; /** - * The time at which the announcement expires (null for never) + * The SKU of the gallery image. */ - expirationDate?: Date; + sku?: string; /** - * Has this announcement expired? + * The OS type of the gallery image. */ - expired?: boolean; + osType2?: string; /** - * The provisioning status of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The version of the gallery image. */ - readonly provisioningState?: string; + version?: string; /** - * The unique immutable identifier of a resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The id of the plan associated with the virtual machine image */ - readonly uniqueIdentifier?: string; -} - -/** - * Properties of a lab's support banner - */ -export interface LabSupportProperties { + planId?: string; /** - * Is the lab support banner active/enabled at this time?. Possible values include: 'Enabled', - * 'Disabled' + * Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite + * the size of the disk in a virtual machine image. */ - enabled?: EnableStatus; + osDiskSizeGb?: number; /** - * The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will - * be shown. + * Gets the statuses of the virtual machine. */ - markdown?: string; -} - -/** - * A lab. - */ -export interface Lab extends Resource { + statuses?: ComputeVmInstanceViewStatus[]; /** - * The lab's default storage account. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Gets the OS type of the virtual machine. */ - readonly defaultStorageAccount?: string; + osType3?: string; /** - * The lab's default premium storage account. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Gets the size of the virtual machine. */ - readonly defaultPremiumStorageAccount?: string; + vmSize?: string; /** - * The lab's artifact storage account. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Gets the network interface ID of the virtual machine. */ - readonly artifactsStorageAccount?: string; + networkInterfaceId?: string; /** - * The lab's premium data disk storage account. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Gets OS disk blob uri for the virtual machine. */ - readonly premiumDataDiskStorageAccount?: string; + osDiskId?: string; /** - * The lab's Key vault. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Gets data disks blob uri for the virtual machine. */ - readonly vaultName?: string; + dataDiskIds?: string[]; /** - * Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. - * Possible values include: 'Standard', 'Premium' + * Gets all data disks attached to the virtual machine. */ - labStorageType?: StorageType; + dataDisks?: ComputeDataDisk[]; /** - * 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. + * The resource ID of the virtual network. */ - mandatoryArtifactsResourceIdsLinux?: string[]; + virtualNetworkId?: string; /** - * 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. + * The resource ID of the sub net. */ - mandatoryArtifactsResourceIdsWindows?: string[]; + subnetId?: string; /** - * The creation date of the lab. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource ID of the public IP address. */ - readonly createdDate?: Date; + publicIpAddressId?: string; /** - * 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' + * The public IP address. */ - premiumDataDisks?: PremiumDataDisk; + publicIpAddress?: string; /** - * The access rights to be granted to the user when provisioning an environment. Possible values - * include: 'Reader', 'Contributor' + * The private IP address. */ - environmentPermission?: EnvironmentPermission; + privateIpAddress?: string; + /** + * The DNS name. + */ + dnsName?: string; /** - * The properties of any lab announcement associated with this lab + * The RdpAuthority property is a server DNS host name or IP address followed by the service port + * number for RDP (Remote Desktop Protocol). */ - announcement?: LabAnnouncementProperties; + rdpAuthority?: string; /** - * The properties of any lab support message associated with this lab + * The SshAuthority property is a server DNS host name or IP address followed by the service port + * number for SSH. */ - support?: LabSupportProperties; + sshAuthority?: string; /** - * 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.** + * The incoming NAT rules */ - readonly vmCreationResourceGroup?: string; + inboundNatRules?: InboundNatRule[]; /** - * The public IP address for the lab's load balancer. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly publicIpId?: string; + readonly formulaId?: string; /** - * The load balancer used to for lab VMs that use shared IP address. + * The name of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly loadBalancerId?: string; + readonly formulaName?: string; /** - * The Network Security Group attached to the lab VMs Network interfaces to restrict open ports. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly networkSecurityGroupId?: string; + readonly formulaType?: string; /** - * Extended properties of the lab used for experimental features + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - extendedProperties?: { [propertyName: string]: string }; + readonly id1?: string; /** - * The provisioning status of the resource. + * The name of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: string; + readonly name1?: string; /** - * The unique immutable identifier of a resource (Guid). + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly uniqueIdentifier?: string; -} - -/** - * Properties of a lab's announcement banner - */ -export interface LabAnnouncementPropertiesFragment { + readonly type1?: string; /** - * The plain text title for the lab announcement + * Resource tags. */ - title?: string; + formulaTags?: { [propertyName: string]: string }; /** - * The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will - * be shown. + * The geo-location where the resource lives */ - markdown?: string; - /** - * Is the lab announcement active/enabled at this time?. Possible values include: 'Enabled', - * 'Disabled' - */ - enabled?: EnableStatus; + formulaLocation: string; /** - * The time at which the announcement expires (null for never) + * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Disabled'. */ - expirationDate?: Date; + status?: EnableStatus; /** - * Has this announcement expired? + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). */ - expired?: boolean; -} - -/** - * Properties of a cost target. - */ -export interface TargetCostProperties { + taskType?: string; /** - * Target cost status. Possible values include: 'Enabled', 'Disabled' + * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). */ - status?: TargetCostStatus; + weekdays?: string[]; /** - * Lab target cost + * The time of the day the schedule will occur. */ - target?: number; + time?: string; /** - * Cost thresholds. + * The time of day the schedule will occur. */ - costThresholds?: CostThresholdProperties[]; + time1?: string; /** - * Reporting cycle start date. + * Minutes of the hour the schedule will run. */ - cycleStartDateTime?: Date; + minute?: number; /** - * Reporting cycle end date. + * The time zone ID (e.g. Pacific Standard time). */ - cycleEndDateTime?: Date; + timeZoneId?: string; /** - * Reporting cycle type. Possible values include: 'CalendarMonth', 'Custom' + * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - cycleType?: ReportingCycleType; -} - -/** - * The properties of the cost summary. - */ -export interface LabCostSummaryProperties { + status1?: EnableStatus; /** - * The cost component of the cost item. + * Time in minutes before event at which notification will be sent. */ - estimatedLabCost?: number; -} - -/** - * The properties of a lab cost item. - */ -export interface LabCostDetailsProperties { + timeInMinutes?: number; /** - * The date of the cost item. + * The webhook URL to which the notification will be sent. */ - date?: Date; + webhookUrl?: string; /** - * The cost component of the cost item. + * The email recipient to send notifications to (can be a list of semi-colon separated email + * addresses). */ - cost?: number; + emailRecipient?: string; /** - * The type of the cost. Possible values include: 'Unavailable', 'Reported', 'Projected' + * The locale to use when sending a notification (fallback for unsupported languages is EN). */ - costType?: CostType; -} - -/** - * The properties of a resource cost item. - */ -export interface LabResourceCostProperties { + notificationLocale?: string; /** - * The name of the resource. + * The creation date of the schedule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourcename?: string; + readonly createdDate1?: Date; /** - * The unique identifier of the resource. + * The resource ID to which the schedule belongs */ - resourceUId?: string; + targetResourceId?: string; /** - * The cost component of the resource cost item. + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourceCost?: number; + readonly provisioningState?: string; /** - * The logical resource type (ex. virtualmachine, storageaccount) + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourceType?: string; + readonly uniqueIdentifier?: string; /** - * The owner of the resource (ex. janedoe@microsoft.com) + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourceOwner?: string; + readonly scheduleSystemData?: SystemData; /** - * The category of the resource (ex. Premium_LRS, Standard_DS1) + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourcePricingTier?: string; + readonly id2?: string; /** - * The status of the resource (ex. Active) + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourceStatus?: string; + readonly name2?: string; /** - * The ID of the resource + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourceId?: string; + readonly type2?: string; /** - * The ID of the external resource + * Resource tags. */ - externalResourceId?: string; -} - -/** - * A cost item. - */ -export interface LabCost extends Resource { + tags1?: { [propertyName: string]: string }; /** - * The target cost properties + * The geo-location where the resource lives */ - targetCost?: TargetCostProperties; + location1: string; /** - * The lab cost summary component of the cost data. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Disabled'. */ - readonly labCostSummary?: LabCostSummaryProperties; + status2?: EnableStatus; /** - * The lab cost details component of the cost data. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). */ - readonly labCostDetails?: LabCostDetailsProperties[]; + taskType1?: string; /** - * The resource cost component of the cost data. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). */ - readonly resourceCosts?: LabResourceCostProperties[]; + weekdays1?: string[]; /** - * The currency code of the cost. + * The time of the day the schedule will occur. */ - currencyCode?: string; + time2?: string; /** - * The start time of the cost data. + * The time of day the schedule will occur. */ - startDateTime?: Date; + time3?: string; /** - * The end time of the cost data. + * Minutes of the hour the schedule will run. */ - endDateTime?: Date; + minute1?: number; /** - * The creation date of the cost. + * The time zone ID (e.g. Pacific Standard time). */ - createdDate?: Date; + timeZoneId1?: string; /** - * The provisioning status of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - readonly provisioningState?: string; + status3?: EnableStatus; /** - * The unique immutable identifier of a resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Time in minutes before event at which notification will be sent. */ - readonly uniqueIdentifier?: string; -} - -/** - * Properties of a lab's support banner - */ -export interface LabSupportPropertiesFragment { + timeInMinutes1?: number; /** - * Is the lab support banner active/enabled at this time?. Possible values include: 'Enabled', - * 'Disabled' + * The webhook URL to which the notification will be sent. */ - enabled?: EnableStatus; + webhookUrl1?: string; /** - * The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will - * be shown. + * The email recipient to send notifications to (can be a list of semi-colon separated email + * addresses). */ - markdown?: string; -} - -/** - * A lab. - */ -export interface LabFragment extends UpdateResource { + emailRecipient1?: string; /** - * Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. - * Possible values include: 'Standard', 'Premium' + * The locale to use when sending a notification (fallback for unsupported languages is EN). */ - labStorageType?: StorageType; + notificationLocale1?: string; /** - * 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. + * The creation date of the schedule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - mandatoryArtifactsResourceIdsLinux?: string[]; + readonly createdDate2?: Date; /** - * 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. + * The resource ID to which the schedule belongs */ - mandatoryArtifactsResourceIdsWindows?: string[]; + targetResourceId1?: string; /** - * 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' + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - premiumDataDisks?: PremiumDataDisk; + readonly provisioningState1?: string; /** - * The access rights to be granted to the user when provisioning an environment. Possible values - * include: 'Reader', 'Contributor' + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - environmentPermission?: EnvironmentPermission; + readonly uniqueIdentifier1?: string; /** - * The properties of any lab announcement associated with this lab + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - announcement?: LabAnnouncementPropertiesFragment; + readonly systemData1?: SystemData; /** - * The properties of any lab support message associated with this lab + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - support?: LabSupportPropertiesFragment; + readonly systemData2?: SystemData; /** - * Extended properties of the lab used for experimental features + * The expiration date for VM. */ - extendedProperties?: { [propertyName: string]: string }; -} - -/** - * Properties of a VHD in the lab. - */ -export interface LabVhd { + expirationDate?: Date; /** - * The URI to the VHD. + * Indicates whether another user can take ownership of the virtual machine. Default value: + * false. */ - id?: string; -} - -/** - * A virtual machine. - */ -export interface LabVirtualMachine extends Resource { + allowClaim?: boolean; /** - * The notes of the virtual machine. + * Storage type to use for virtual machine (i.e. Standard, Premium, StandardSSD). Possible values + * include: 'Standard', 'Premium', 'StandardSSD'. Default value: 'Standard'. */ - notes?: string; + storageType?: StorageType; /** - * The object identifier of the owner of the virtual machine. + * Tells source of creation of lab virtual machine. Output property only. Possible values + * include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ownerObjectId?: string; + readonly virtualMachineCreationSource?: VirtualMachineCreationSource; /** - * The user principal name of the virtual machine owner. + * The resource ID of the environment that contains this virtual machine, if any. */ - ownerUserPrincipalName?: string; + environmentId?: string; /** - * The object identifier of the creator of the virtual machine. + * New or existing data disks to attach to the virtual machine after creation */ - createdByUserId?: string; + dataDiskParameters?: DataDiskProperties[]; /** - * The email address of creator of the virtual machine. + * Virtual Machine schedules to be created */ - createdByUser?: string; + scheduleParameters?: ScheduleCreationParameter[]; /** - * The creation date of the virtual machine. + * Last known compute power state captured in DTL + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - createdDate?: Date; + readonly lastKnownPowerState?: string; /** - * The resource identifier (Microsoft.Compute) of the virtual machine. + * Flag to determine if apply artifacts can be triggered at the time of fetching the document. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - computeId?: string; + readonly canApplyArtifacts?: boolean; /** - * The custom image identifier of the virtual machine. + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - customImageId?: string; + readonly provisioningState2?: string; /** - * The OS type of the virtual machine. + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osType?: string; + readonly uniqueIdentifier2?: string; /** - * The size of the virtual machine. + * The name of the virtual machine or environment */ - size?: string; + name3?: string; /** - * The user name of the virtual machine. + * The location of the new virtual machine or environment */ - userName?: string; + location2?: string; /** - * The password of the virtual machine administrator. + * The tags of the resource. */ - password?: string; + tags2?: { [propertyName: string]: string }; /** - * The SSH key of the virtual machine administrator. + * The identifier of the VM from which a formula is to be created. */ - sshKey?: string; + labVmId?: string; /** - * Indicates whether this virtual machine uses an SSH key for authentication. + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isAuthenticationWithSshKey?: boolean; + readonly provisioningState3?: string; /** - * The fully-qualified domain name of the virtual machine. + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - fqdn?: string; + readonly uniqueIdentifier3?: string; /** - * The lab subnet name of the virtual machine. + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - labSubnetName?: string; + readonly systemData?: SystemData; +} + +/** + * Patch + */ +export interface FormulaFragment extends Tags { +} + +/** + * A gallery image. + */ +export interface GalleryImage extends Resource { /** - * The lab virtual network identifier of the virtual machine. + * The author of the gallery image. */ - labVirtualNetworkId?: string; + author?: string; /** - * Indicates whether the virtual machine is to be created without a public IP address. + * The creation date of the gallery image. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - disallowPublicIpAddress?: boolean; + readonly createdDate?: Date; /** - * The artifacts to be installed on the virtual machine. + * The description of the gallery image. */ - artifacts?: ArtifactInstallProperties[]; + description?: string; /** - * The artifact deployment status for the virtual machine. + * The offer of the gallery image. */ - artifactDeploymentStatus?: ArtifactDeploymentStatusProperties; + offer?: string; /** - * The Microsoft Azure Marketplace image reference of the virtual machine. + * The publisher of the gallery image. */ - galleryImageReference?: GalleryImageReference; + publisher?: string; /** - * The id of the plan associated with the virtual machine image + * The SKU of the gallery image. */ - planId?: string; + sku?: string; /** - * The compute virtual machine properties. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The OS type of the gallery image. */ - readonly computeVm?: ComputeVmProperties; + osType?: string; /** - * The network interface properties. + * The version of the gallery image. */ - networkInterface?: NetworkInterfaceProperties; + version?: string; /** - * The applicable schedule for the virtual machine. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The icon of the gallery image. */ - readonly applicableSchedule?: ApplicableSchedule; + icon?: string; /** - * The expiration date for VM. + * Indicates whether this gallery image is enabled. */ - expirationDate?: Date; + enabled?: boolean; /** - * Indicates whether another user can take ownership of the virtual machine + * The third party plan that applies to this image */ - allowClaim?: boolean; + planId?: string; /** - * Storage type to use for virtual machine (i.e. Standard, Premium). + * Indicates if the plan has been authorized for programmatic deployment. */ - storageType?: string; + isPlanAuthorized?: boolean; /** - * Tells source of creation of lab virtual machine. Output property only. Possible values - * include: 'FromCustomImage', 'FromGalleryImage' + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - virtualMachineCreationSource?: VirtualMachineCreationSource; + readonly systemData?: SystemData; +} + +/** + * Information about an artifact's parameter. + */ +export interface ParameterInfo { /** - * The resource ID of the environment that contains this virtual machine, if any. + * The name of the artifact parameter. */ - environmentId?: string; + name?: string; /** - * New or existing data disks to attach to the virtual machine after creation + * The value of the artifact parameter. */ - dataDiskParameters?: DataDiskProperties[]; + value?: string; +} + +/** + * Parameters for generating an ARM template for deploying artifacts. + */ +export interface GenerateArmTemplateRequest { /** - * Virtual Machine schedules to be created + * The resource name of the virtual machine. */ - scheduleParameters?: ScheduleCreationParameter[]; + virtualMachineName?: string; /** - * Last known compute power state captured in DTL + * The parameters of the ARM template. */ - lastKnownPowerState?: string; + parameters?: ParameterInfo[]; /** - * The provisioning status of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The location of the virtual machine. */ - readonly provisioningState?: string; + location?: string; /** - * The unique immutable identifier of a resource (Guid). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the + * default value. Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' */ - readonly uniqueIdentifier?: string; + fileUploadOptions?: FileUploadOption; } /** - * A virtual machine. + * Properties for generating an upload URI. */ -export interface LabVirtualMachineFragment extends UpdateResource { +export interface GenerateUploadUriParameter { /** - * The notes of the virtual machine. + * The blob name of the upload URI. */ - notes?: string; + blobName?: string; +} + +/** + * Response body for generating an upload URI. + */ +export interface GenerateUploadUriResponse { /** - * The object identifier of the owner of the virtual machine. + * The upload URI for the VHD. */ - ownerObjectId?: string; + uploadUri?: string; +} + +/** + * Properties for a shared image version. + */ +export interface ImageVersionProperties { /** - * The user principal name of the virtual machine owner. + * Image version name */ - ownerUserPrincipalName?: string; + name?: string; +} + +/** + * This represents the payload required to import a virtual machine from a different lab into the + * current one + */ +export interface ImportLabVirtualMachineRequest { /** - * The object identifier of the creator of the virtual machine. + * The full resource ID of the virtual machine to be imported. */ - createdByUserId?: string; + sourceVirtualMachineResourceId?: string; /** - * The email address of creator of the virtual machine. + * The name of the virtual machine in the destination lab */ - createdByUser?: string; + destinationVirtualMachineName?: string; +} + +/** + * A lab. + */ +export interface Lab extends TrackedResource { /** - * The creation date of the virtual machine. + * The lab's default storage account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - createdDate?: Date; + readonly defaultStorageAccount?: string; /** - * The resource identifier (Microsoft.Compute) of the virtual machine. + * The lab's default premium storage account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - computeId?: string; + readonly defaultPremiumStorageAccount?: string; /** - * The custom image identifier of the virtual machine. + * The lab's artifact storage account. */ - customImageId?: string; + artifactsStorageAccount?: string; /** - * The OS type of the virtual machine. + * The lab's premium data disk storage account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osType?: string; + readonly premiumDataDiskStorageAccount?: string; /** - * The size of the virtual machine. + * The lab's Key vault. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - size?: string; + readonly vaultName?: string; /** - * The user name of the virtual machine. + * Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. + * Possible values include: 'Standard', 'Premium', 'StandardSSD'. Default value: 'Premium'. */ - userName?: string; + labStorageType?: StorageType; /** - * The password of the virtual machine administrator. + * 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. */ - password?: string; + mandatoryArtifactsResourceIdsLinux?: string[]; /** - * The SSH key of the virtual machine administrator. + * 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. */ - sshKey?: string; + mandatoryArtifactsResourceIdsWindows?: string[]; /** - * Indicates whether this virtual machine uses an SSH key for authentication. + * The creation date of the lab. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isAuthenticationWithSshKey?: boolean; + readonly createdDate?: Date; /** - * The fully-qualified domain name of the virtual machine. + * 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' */ - fqdn?: string; + premiumDataDisks?: PremiumDataDisk; /** - * The lab subnet name of the virtual machine. + * The access rights to be granted to the user when provisioning an environment. Possible values + * include: 'Reader', 'Contributor' */ - labSubnetName?: string; + environmentPermission?: EnvironmentPermission; /** - * The lab virtual network identifier of the virtual machine. + * The plain text title for the lab announcement */ - labVirtualNetworkId?: string; + title?: string; /** - * Indicates whether the virtual machine is to be created without a public IP address. + * The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will + * be shown. */ - disallowPublicIpAddress?: boolean; + markdown?: string; /** - * The artifacts to be installed on the virtual machine. + * Is the lab announcement active/enabled at this time?. Possible values include: 'Enabled', + * 'Disabled' */ - artifacts?: ArtifactInstallPropertiesFragment[]; + enabled?: EnableStatus; /** - * The artifact deployment status for the virtual machine. + * The time at which the announcement expires (null for never) */ - artifactDeploymentStatus?: ArtifactDeploymentStatusPropertiesFragment; + expirationDate?: Date; /** - * The Microsoft Azure Marketplace image reference of the virtual machine. + * Has this announcement expired? */ - galleryImageReference?: GalleryImageReferenceFragment; + expired?: boolean; /** - * The id of the plan associated with the virtual machine image + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - planId?: string; + readonly provisioningState?: string; /** - * The network interface properties. + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - networkInterface?: NetworkInterfacePropertiesFragment; + readonly uniqueIdentifier?: string; /** - * The expiration date for VM. + * Is the lab support banner active/enabled at this time?. Possible values include: 'Enabled', + * 'Disabled' */ - expirationDate?: Date; + enabled1?: EnableStatus; /** - * Indicates whether another user can take ownership of the virtual machine + * The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will + * be shown. */ - allowClaim?: boolean; + markdown1?: string; /** - * Storage type to use for virtual machine (i.e. Standard, Premium). + * The resource group ID in which all new lab virtual machines will be created. Ex: + * /subscriptions/subId/resourceGroups/rgName To let DevTest Labs manage resource group creation, + * set this value to null. */ - storageType?: string; + vmCreationResourceGroup?: string; /** - * Tells source of creation of lab virtual machine. Output property only. Possible values - * include: 'FromCustomImage', 'FromGalleryImage' + * 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.** */ - virtualMachineCreationSource?: VirtualMachineCreationSource; + readonly publicIpId?: string; /** - * The resource ID of the environment that contains this virtual machine, if any. + * 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.** */ - environmentId?: string; + readonly loadBalancerId?: string; /** - * New or existing data disks to attach to the virtual machine after creation + * 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.** */ - dataDiskParameters?: DataDiskPropertiesFragment[]; + readonly networkSecurityGroupId?: string; /** - * Virtual Machine schedules to be created + * Extended properties of the lab used for experimental features */ - scheduleParameters?: ScheduleCreationParameterFragment[]; + extendedProperties?: { [propertyName: string]: string }; /** - * Last known compute power state captured in DTL + * Is browser connect enabled for the lab. Possible values include: 'Enabled', 'Disabled' */ - lastKnownPowerState?: string; -} - -/** - * A notification. - */ -export interface NotificationChannel extends Resource { + browserConnect?: EnableStatus; /** - * The webhook URL to send notifications to. + * Is auto upgrade of CSE disabled for the lab? */ - webHookUrl?: string; + disableAutoUpgradeCseMinorVersion?: boolean; /** - * The email recipient to send notifications to (can be a list of semi-colon separated email - * addresses). + * List of identities which can be used for management of resources. */ - emailRecipient?: string; + managementIdentities?: { [propertyName: string]: any }; /** - * The locale to use when sending a notification (fallback for unsupported languages is EN). + * Indicates whether to create Lab resources (e.g. Storage accounts and Key Vaults) in network + * isolation. Possible values include: 'Enabled', 'Disabled' */ - notificationLocale?: string; + isolateLabResources?: EnableStatus; /** - * Description of notification. + * Gets or sets resourceId of the disk encryption set to use for enabling encryption at rest. */ - description?: string; + diskEncryptionSetId?: string; /** - * The list of event for which this notification is enabled. + * Gets or sets the type of key used to encrypt the data of the disk. Possible values include: + * 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey' */ - events?: Event[]; + labType?: EncryptionType; /** - * The creation date of the notification channel. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Default secret for creating virtual machines. */ - readonly createdDate?: Date; + defaultSecretName?: string; /** * The provisioning status of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: string; + readonly provisioningState1?: string; /** * 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; -} - -/** - * A notification. - */ -export interface NotificationChannelFragment extends UpdateResource { + readonly uniqueIdentifier1?: string; /** - * The webhook URL to send notifications to. + * Type of identity (SystemAssigned, UserAssigned, None). Possible values include: 'None', + * 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned' */ - webHookUrl?: string; + type1?: ManagedIdentityType; /** - * The email recipient to send notifications to (can be a list of semi-colon separated email - * addresses). + * The principal id of resource identity. */ - emailRecipient?: string; + principalId?: string; /** - * The locale to use when sending a notification (fallback for unsupported languages is EN). + * The tenant identifier of resource. */ - notificationLocale?: string; + tenantId?: string; /** - * Description of notification. + * The client secret URL of the identity. */ - description?: string; + clientSecretUrl?: string; /** - * The list of event for which this notification is enabled. + * If Type is 'UserAssigned': List of user assigned identities. + */ + userAssignedIdentities?: { [propertyName: string]: any }; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - events?: EventFragment[]; + readonly systemData?: SystemData; } /** - * Properties for generating a Notification. + * A cost item. */ -export interface NotifyParameters { +export interface LabCost extends Resource { /** - * The type of event (i.e. AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost' + * Target cost status. Possible values include: 'Enabled', 'Disabled' */ - eventName?: NotificationChannelEventType; + status?: TargetCostStatus; /** - * Properties for the notification in json format. + * Lab target cost */ - jsonPayload?: string; + target?: number; + /** + * Cost thresholds. + */ + costThresholds?: CostThresholdProperties[]; + /** + * Reporting cycle start date. + */ + cycleStartDateTime?: Date; + /** + * Reporting cycle end date. + */ + cycleEndDateTime?: Date; + /** + * Reporting cycle type. Possible values include: 'CalendarMonth', 'Custom' + */ + cycleType?: ReportingCycleType; + /** + * The cost component of the cost item. + */ + estimatedLabCost?: number; + /** + * The lab cost details component of the cost data. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labCostDetails?: LabCostDetailsProperties[]; + /** + * The resource cost component of the cost data. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceCosts?: LabResourceCostProperties[]; + /** + * The currency code of the cost. + */ + currencyCode?: string; + /** + * The start time of the cost data. + */ + startDateTime?: Date; + /** + * The end time of the cost data. + */ + endDateTime?: Date; + /** + * The creation date of the cost. + */ + createdDate?: Date; + /** + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * 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; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Patch + */ +export interface LabFragment extends Tags { } /** - * Error details for the operation in case of a failure. + * A shared secret in a lab. */ -export interface OperationError { +export interface LabSecret extends TrackedResource { /** - * The error code of the operation error. + * The value of the secret for secret creation. */ - code?: string; + value?: string; /** - * The error message of the operation error. + * The name of the entry in the lab KeyVault. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - message?: string; + readonly keyVaultEntry?: string; + /** + * Is the secret enabled for use with artifacts? + */ + enabledForArtifacts?: boolean; + /** + * Is the secret enabled for use with creation of VMs? + */ + enabledForVmCreation?: boolean; + /** + * Is the secret enabled for use with ARM environments? + */ + enabledForArmEnvironments?: boolean; + /** + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * 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; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Patch + */ +export interface LabSecretFragment extends Tags { +} + +/** + * Properties of a VHD in the lab. + */ +export interface LabVhd { + /** + * The URI to the VHD. + */ + id?: string; +} + +/** + * Contains a list of Lab Vhd and their properties + */ +export interface LabVhdList { + /** + * List of Lab Vhd and their properties + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: LabVhd[]; + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; } /** - * The object that describes the operations + * A notification. */ -export interface OperationMetadataDisplay { +export interface NotificationChannel extends TrackedResource { /** - * Friendly name of the resource provider + * The webhook URL to send notifications to. */ - provider?: string; + webHookUrl?: string; /** - * Resource type on which the operation is performed. + * The email recipient to send notifications to (can be a list of semi-colon separated email + * addresses). */ - resource?: string; + emailRecipient?: string; /** - * Operation type: read, write, delete, listKeys/action, etc. + * The locale to use when sending a notification (fallback for unsupported languages is EN). */ - operation?: string; + notificationLocale?: string; /** - * Friendly name of the operation + * Description of notification. */ description?: string; + /** + * The list of event for which this notification is enabled. + */ + events?: Event[]; + /** + * The creation date of the notification channel. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdDate?: Date; + /** + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * 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; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Patch + */ +export interface NotificationChannelFragment extends Tags { } /** - * The REST API operation supported by DevTestLab ResourceProvider. + * Properties for generating a Notification. */ -export interface OperationMetadata { +export interface NotifyParameters { /** - * Operation name: {provider}/{resource}/{operation} + * The type of event (i.e. AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost' */ - name?: string; + eventName?: NotificationChannelEventType; /** - * The object that describes the operations + * Properties for the notification in json format. */ - display?: OperationMetadataDisplay; + jsonPayload?: string; } /** @@ -3223,27 +2738,36 @@ export interface OperationResult { status?: string; /** * 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' + * 'Processing', 'EarlyHints', 'OK', 'Created', 'Accepted', 'NonAuthoritativeInformation', + * 'NoContent', 'ResetContent', 'PartialContent', 'MultiStatus', 'AlreadyReported', 'IMUsed', + * 'MultipleChoices', 'Ambiguous', 'MovedPermanently', 'Moved', 'Found', 'Redirect', 'SeeOther', + * 'RedirectMethod', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', + * 'RedirectKeepVerb', 'PermanentRedirect', 'BadRequest', 'Unauthorized', 'PaymentRequired', + * 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', 'PreconditionFailed', + * 'RequestEntityTooLarge', 'RequestUriTooLong', 'UnsupportedMediaType', + * 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'MisdirectedRequest', + * 'UnprocessableEntity', 'Locked', 'FailedDependency', 'UpgradeRequired', + * 'PreconditionRequired', 'TooManyRequests', 'RequestHeaderFieldsTooLarge', + * 'UnavailableForLegalReasons', 'InternalServerError', 'NotImplemented', 'BadGateway', + * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported', 'VariantAlsoNegotiates', + * 'InsufficientStorage', 'LoopDetected', 'NotExtended', 'NetworkAuthenticationRequired' */ statusCode?: HttpStatusCode; /** - * Error details for the operation in case of a failure. + * The error code of the operation error. + */ + code?: string; + /** + * The error message of the operation error. */ - error?: OperationError; + message?: string; } /** * A Policy. */ -export interface Policy extends Resource { +export interface Policy extends TrackedResource { /** * The description of the policy. */ @@ -3288,61 +2812,44 @@ export interface Policy extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly uniqueIdentifier?: string; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * A Policy. + * Patch */ -export interface PolicyFragment extends UpdateResource { - /** - * The description of the policy. - */ - description?: string; - /** - * The status of the policy. Possible values include: 'Enabled', 'Disabled' - */ - status?: PolicyStatus; - /** - * 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' - */ - factName?: PolicyFactName; - /** - * The fact data of the policy. - */ - factData?: string; - /** - * The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for - * AllowedValuesPolicy). - */ - threshold?: string; - /** - * The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values - * include: 'AllowedValuesPolicy', 'MaxValuePolicy' - */ - evaluatorType?: PolicyEvaluatorType; +export interface PolicyFragment extends Tags { } /** - * Properties of a network port. + * A PolicySet. */ -export interface Port { +export interface PolicySet extends Resource { /** - * Protocol type of the port. Possible values include: 'Tcp', 'Udp' + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - transportProtocol?: TransportProtocol; + readonly provisioningState?: string; /** - * Backend port of the target virtual machine. + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - backendPort?: number; + readonly uniqueIdentifier?: string; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** * Properties of a network port. */ -export interface PortFragment { +export interface Port { /** * Protocol type of the port. Possible values include: 'Tcp', 'Udp' */ @@ -3387,10 +2894,16 @@ export interface RetargetScheduleProperties { targetResourceId?: string; } +/** + * Patch + */ +export interface ScheduleFragment extends Tags { +} + /** * A secret. */ -export interface Secret extends Resource { +export interface Secret extends TrackedResource { /** * The value of the secret for secret creation. */ @@ -3405,22 +2918,23 @@ export interface Secret extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly uniqueIdentifier?: string; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * A secret. + * Patch */ -export interface SecretFragment extends UpdateResource { - /** - * The value of the secret for secret creation. - */ - value?: string; +export interface SecretFragment extends Tags { } /** * A Service Fabric. */ -export interface ServiceFabric extends Resource { +export interface ServiceFabric extends TrackedResource { /** * The backing service fabric resource's id */ @@ -3430,384 +2944,310 @@ export interface ServiceFabric extends Resource { */ environmentId?: string; /** - * The applicable schedule for the virtual machine. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly applicableSchedule?: ApplicableSchedule; + readonly serviceFabricId?: string; /** - * The provisioning status of the resource. + * The name of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: string; + readonly serviceFabricName?: string; /** - * The unique immutable identifier of a resource (Guid). + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly uniqueIdentifier?: string; -} - -/** - * A Service Fabric. - */ -export interface ServiceFabricFragment extends UpdateResource { - /** - * The backing service fabric resource's id - */ - externalServiceFabricId?: string; + readonly serviceFabricType?: string; /** - * The resource id of the environment under which the service fabric resource is present + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - environmentId?: string; -} - -/** - * A container for a managed identity to execute DevTest lab services. - */ -export interface ServiceRunner extends Resource { + readonly id1?: string; /** - * The identity of the resource. + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - identity?: IdentityProperties; -} - -/** - * 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 { + readonly name1?: string; /** - * The URL to skip auto-shutdown. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - skipUrl?: string; + readonly type1?: string; /** - * The URL to delay shutdown by 60 minutes. + * Resource tags. */ - delayUrl60?: string; + serviceFabricTags?: { [propertyName: string]: string }; /** - * The URL to delay shutdown by 2 hours. + * The geo-location where the resource lives */ - delayUrl120?: string; + serviceFabricLocation: string; /** - * The virtual machine to be shut down. + * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Disabled'. */ - vmName?: string; + status?: EnableStatus; /** - * The GUID for the virtual machine to be shut down. + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). */ - guid?: string; + taskType?: string; /** - * The owner of the virtual machine. + * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). */ - owner?: string; + weekdays?: string[]; /** - * The URL of the virtual machine. + * The time of the day the schedule will occur. */ - vmUrl?: string; + time?: string; /** - * Minutes remaining until shutdown + * The time of day the schedule will occur. */ - minutesUntilShutdown?: string; + time1?: string; /** - * The event for which a notification will be sent. + * Minutes of the hour the schedule will run. */ - eventType?: string; + minute?: number; /** - * The text for the notification. + * The time zone ID (e.g. Pacific Standard time). */ - text?: string; + timeZoneId?: string; /** - * The subscription ID for the schedule. + * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - subscriptionId?: string; + status1?: EnableStatus; /** - * The resource group name for the schedule. + * Time in minutes before event at which notification will be sent. */ - resourceGroupName?: string; + timeInMinutes?: number; /** - * The lab for the schedule. + * The webhook URL to which the notification will be sent. */ - labName?: string; -} - -/** - * Subnet information. - */ -export interface Subnet { + webhookUrl?: string; /** - * The resource ID of the subnet. + * The email recipient to send notifications to (can be a list of semi-colon separated email + * addresses). */ - resourceId?: string; + emailRecipient?: string; /** - * The name of the subnet as seen in the lab. + * The locale to use when sending a notification (fallback for unsupported languages is EN). */ - labSubnetName?: string; + notificationLocale?: string; /** - * The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)). - * Possible values include: 'Default', 'Deny', 'Allow' + * The creation date of the schedule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - allowPublicIp?: UsagePermissionType; -} - -/** - * Subnet information. - */ -export interface SubnetFragment { + readonly createdDate?: Date; /** - * The resource ID of the subnet. + * The resource ID to which the schedule belongs */ - resourceId?: string; + targetResourceId?: string; /** - * The name of the subnet as seen in the lab. + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - labSubnetName?: string; + readonly provisioningState?: string; /** - * The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)). - * Possible values include: 'Default', 'Deny', 'Allow' + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - allowPublicIp?: UsagePermissionType; -} - -/** - * Configuration for public IP address sharing. - */ -export interface SubnetSharedPublicIpAddressConfiguration { + readonly uniqueIdentifier?: string; /** - * Backend ports that virtual machines on this subnet are allowed to expose + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - allowedPorts?: Port[]; -} - -/** - * Property overrides on a subnet of a virtual network. - */ -export interface SubnetOverride { + readonly scheduleSystemData?: SystemData; /** - * The resource ID of the subnet. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourceId?: string; + readonly id2?: string; /** - * The name given to the subnet within the lab. + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - labSubnetName?: string; + readonly name2?: string; /** - * Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny). - * Possible values include: 'Default', 'Deny', 'Allow' + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - useInVmCreationPermission?: UsagePermissionType; + readonly type2?: string; /** - * Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. - * Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow' + * Resource tags. */ - usePublicIpAddressPermission?: UsagePermissionType; + tags1?: { [propertyName: string]: string }; /** - * Properties that virtual machines on this subnet will share. + * The geo-location where the resource lives */ - sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfiguration; + location1: string; /** - * The virtual network pool associated with this subnet. + * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Disabled'. */ - virtualNetworkPoolName?: string; -} - -/** - * Configuration for public IP address sharing. - */ -export interface SubnetSharedPublicIpAddressConfigurationFragment { + status2?: EnableStatus; /** - * Backend ports that virtual machines on this subnet are allowed to expose + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). */ - allowedPorts?: PortFragment[]; -} - -/** - * Property overrides on a subnet of a virtual network. - */ -export interface SubnetOverrideFragment { + taskType1?: string; /** - * The resource ID of the subnet. + * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). */ - resourceId?: string; + weekdays1?: string[]; /** - * The name given to the subnet within the lab. + * The time of the day the schedule will occur. */ - labSubnetName?: string; + time2?: string; /** - * Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny). - * Possible values include: 'Default', 'Deny', 'Allow' + * The time of day the schedule will occur. */ - useInVmCreationPermission?: UsagePermissionType; + time3?: string; /** - * Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. - * Allow, Deny). Possible values include: 'Default', 'Deny', 'Allow' + * Minutes of the hour the schedule will run. */ - usePublicIpAddressPermission?: UsagePermissionType; + minute1?: number; /** - * Properties that virtual machines on this subnet will share. + * The time zone ID (e.g. Pacific Standard time). */ - sharedPublicIpAddressConfiguration?: SubnetSharedPublicIpAddressConfigurationFragment; + timeZoneId1?: string; /** - * The virtual network pool associated with this subnet. + * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - virtualNetworkPoolName?: string; -} - -/** - * Identity attributes of a lab user. - */ -export interface UserIdentity { + status3?: EnableStatus; /** - * Set to the principal name / UPN of the client JWT making the request. + * Time in minutes before event at which notification will be sent. */ - principalName?: string; + timeInMinutes1?: number; /** - * Set to the principal Id of the client JWT making the request. Service principal will not have - * the principal Id. + * The webhook URL to which the notification will be sent. */ - principalId?: string; + webhookUrl1?: string; /** - * Set to the tenant ID of the client JWT making the request. + * The email recipient to send notifications to (can be a list of semi-colon separated email + * addresses). */ - tenantId?: string; + emailRecipient1?: string; /** - * 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. + * The locale to use when sending a notification (fallback for unsupported languages is EN). */ - objectId?: string; + notificationLocale1?: string; /** - * Set to the app Id of the client JWT making the request. + * The creation date of the schedule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - appId?: string; -} - -/** - * Properties of a user's secret store. - */ -export interface UserSecretStore { + readonly createdDate1?: Date; /** - * The URI of the user's Key vault. + * The resource ID to which the schedule belongs */ - keyVaultUri?: string; + targetResourceId1?: string; /** - * The ID of the user's Key vault. + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - keyVaultId?: string; -} - -/** - * Profile of a lab user. - */ -export interface User extends Resource { + readonly provisioningState1?: string; /** - * The identity of the user. + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - identity?: UserIdentity; + readonly uniqueIdentifier1?: string; /** - * The secret store of the user. + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - secretStore?: UserSecretStore; + readonly systemData1?: SystemData; /** - * The creation date of the user profile. + * The system metadata relating to this resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly createdDate?: Date; + readonly systemData2?: SystemData; /** * The provisioning status of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: string; + readonly provisioningState2?: string; /** * 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; + readonly uniqueIdentifier2?: string; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Patch + */ +export interface ServiceFabricFragment extends Tags { } /** - * Identity attributes of a lab user. + * A container for a managed identity to execute DevTest lab services. */ -export interface UserIdentityFragment { +export interface ServiceRunner extends TrackedResource { /** - * Set to the principal name / UPN of the client JWT making the request. + * The purpose of bringing the identity to the lab. Ex: To use during Environment creation or to + * deploy on the VMs. */ - principalName?: string; + identityUsageType?: string; /** - * Set to the principal Id of the client JWT making the request. Service principal will not have - * the principal Id. + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - principalId?: string; + readonly provisioningState?: string; /** - * Set to the tenant ID of the client JWT making the request. + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tenantId?: string; + readonly uniqueIdentifier?: string; /** - * 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. + * Type of identity (SystemAssigned, UserAssigned, None). Possible values include: 'None', + * 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned' */ - objectId?: string; + serviceRunnerType?: ManagedIdentityType; /** - * Set to the app Id of the client JWT making the request. + * The principal id of resource identity. */ - appId?: string; -} - -/** - * Properties of a user's secret store. - */ -export interface UserSecretStoreFragment { + principalId?: string; /** - * The URI of the user's Key vault. + * The tenant identifier of resource. */ - keyVaultUri?: string; + tenantId?: string; /** - * The ID of the user's Key vault. + * The client secret URL of the identity. */ - keyVaultId?: string; -} - -/** - * Profile of a lab user. - */ -export interface UserFragment extends UpdateResource { + clientSecretUrl?: string; /** - * The identity of the user. + * If Type is 'UserAssigned': List of user assigned identities. */ - identity?: UserIdentityFragment; + userAssignedIdentities?: { [propertyName: string]: any }; /** - * The secret store of the user. + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - secretStore?: UserSecretStoreFragment; + readonly systemData?: SystemData; } /** - * A virtual network. + * Properties of a shared gallery */ -export interface VirtualNetwork extends Resource { - /** - * The allowed subnets of the virtual network. - */ - allowedSubnets?: Subnet[]; - /** - * The description of the virtual network. - */ - description?: string; - /** - * The Microsoft.Network resource identifier of the virtual network. - */ - externalProviderResourceId?: string; - /** - * The external subnet properties. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly externalSubnets?: ExternalSubnet[]; +export interface SharedGallery extends TrackedResource { /** - * The subnet overrides of the virtual network. + * The shared image gallery resource Id */ - subnetOverrides?: SubnetOverride[]; + galleryId?: string; /** - * The creation date of the virtual network. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Enables all images in the gallery to be available in the lab for VM creation. This will + * override the EnableState on shared images. Possible values include: 'Disabled', 'Enabled' */ - readonly createdDate?: Date; + allowAllImages?: EnableState; /** * The provisioning status of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -3818,1172 +3258,2883 @@ export interface VirtualNetwork extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly uniqueIdentifier?: string; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * A virtual network. + * Patch */ -export interface VirtualNetworkFragment extends UpdateResource { - /** - * The allowed subnets of the virtual network. - */ - allowedSubnets?: SubnetFragment[]; - /** - * The description of the virtual network. - */ - description?: string; - /** - * The Microsoft.Network resource identifier of the virtual network. - */ - externalProviderResourceId?: string; - /** - * The subnet overrides of the virtual network. - */ - subnetOverrides?: SubnetOverrideFragment[]; +export interface SharedGalleryFragment extends Tags { } /** - * Optional Parameters. + * Properties of a shared image */ -export interface LabsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface SharedImage extends TrackedResource { /** - * Specify the $expand query. Example: 'properties($select=defaultStorageAccount)' + * Shared Image definition name in shared image gallery */ - expand?: string; + definitionName?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The operating system of the image. Possible values include: 'Windows', 'Linux' */ - filter?: string; + osType?: OsType; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The type of image in the gallery (generalized or specialized). Possible values include: + * 'Generalized', 'Specialized' */ - top?: number; + imageType?: ImageType; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * Whether or not the image is enabled. Possible values include: 'Disabled', 'Enabled' */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface LabsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + enableState?: EnableState; /** - * Specify the $expand query. Example: 'properties($select=defaultStorageAccount)' + * Display name of the image */ - expand?: string; + displayName?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * List of image versions in definition */ - filter?: string; + versions?: ImageVersionProperties[]; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * 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; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * 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; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * Optional Parameters. + * Patch */ -export interface LabsGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Specify the $expand query. Example: 'properties($select=defaultStorageAccount)' - */ - expand?: string; +export interface SharedImageFragment extends Tags { } /** - * Optional Parameters. + * Subnet information. */ -export interface GlobalSchedulesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { - /** - * Specify the $expand query. Example: 'properties($select=status)' - */ - expand?: string; +export interface Subnet { /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The resource ID of the subnet. */ - filter?: string; + resourceId?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The name of the subnet as seen in the lab. */ - top?: number; + labSubnetName?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * 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; } /** - * Optional Parameters. + * Property overrides on a subnet of a virtual network. */ -export interface GlobalSchedulesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface SubnetOverride { /** - * Specify the $expand query. Example: 'properties($select=status)' + * The resource ID of the subnet. */ - expand?: string; + resourceId?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The name given to the subnet within the lab. */ - filter?: string; + labSubnetName?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * 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; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * 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; -} - -/** - * Optional Parameters. - */ -export interface GlobalSchedulesGetOptionalParams extends msRest.RequestOptionsBase { + usePublicIpAddressPermission?: UsagePermissionType; /** - * Specify the $expand query. Example: 'properties($select=status)' + * Backend ports that virtual machines on this subnet are allowed to expose */ - expand?: string; + allowedPorts?: Port[]; + /** + * The virtual network pool associated with this subnet. + */ + virtualNetworkPoolName?: string; } /** - * Optional Parameters. + * Profile of a lab user. */ -export interface ArtifactSourcesListOptionalParams extends msRest.RequestOptionsBase { +export interface User extends TrackedResource { /** - * Specify the $expand query. Example: 'properties($select=displayName)' + * Set to the principal name / UPN of the client JWT making the request. */ - expand?: string; + principalName?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * Set to the principal Id of the client JWT making the request. Service principal will not have + * the principal Id. */ - filter?: string; + principalId?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * Set to the tenant ID of the client JWT making the request. */ - top?: number; + tenantId?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * 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; -} - -/** - * Optional Parameters. - */ -export interface ArtifactSourcesGetOptionalParams extends msRest.RequestOptionsBase { + objectId?: string; /** - * Specify the $expand query. Example: 'properties($select=displayName)' + * Set to the app Id of the client JWT making the request. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface ArmTemplatesListOptionalParams extends msRest.RequestOptionsBase { + appId?: string; /** - * Specify the $expand query. Example: 'properties($select=displayName)' + * The URI of the user's Key vault. */ - expand?: string; + keyVaultUri?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The ID of the user's Key vault. */ - filter?: string; + keyVaultId?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * 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; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * 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; + /** + * 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; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * Optional Parameters. + * Patch */ -export interface ArmTemplatesGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Specify the $expand query. Example: 'properties($select=displayName)' - */ - expand?: string; +export interface UserFragment extends Tags { } /** - * Optional Parameters. + * A virtual machine. */ -export interface ArtifactsListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualMachine extends TrackedResource { /** - * Specify the $expand query. Example: 'properties($select=title)' + * The notes of the virtual machine. */ - expand?: string; + notes?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The object identifier of the owner of the virtual machine. Default value: 'dynamicValue'. */ - filter?: string; + ownerObjectId?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The user principal name of the virtual machine owner. */ - top?: number; + ownerUserPrincipalName?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The object identifier of the creator of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface ArtifactsGetOptionalParams extends msRest.RequestOptionsBase { + readonly createdByUserId?: string; /** - * Specify the $expand query. Example: 'properties($select=title)' + * The email address of creator of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface CostsGetOptionalParams extends msRest.RequestOptionsBase { + readonly createdByUser?: string; /** - * Specify the $expand query. Example: 'properties($expand=labCostDetails)' + * The creation date of the virtual machine. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface CustomImagesListOptionalParams extends msRest.RequestOptionsBase { + createdDate?: Date; /** - * Specify the $expand query. Example: 'properties($select=vm)' + * The resource identifier (Microsoft.Compute) of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; + readonly computeId?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The custom image identifier of the virtual machine. */ - filter?: string; + customImageId?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The shared gallery image version resource identifier of the virtual machine. */ - top?: number; + galleryImageVersionId?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The shared image resource identifier of the virtual machine. */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface CustomImagesGetOptionalParams extends msRest.RequestOptionsBase { + sharedImageId?: string; /** - * Specify the $expand query. Example: 'properties($select=vm)' + * The shared image version for the specified shared image Id. Will use latest if not specified. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface FormulasListOptionalParams extends msRest.RequestOptionsBase { + sharedImageVersion?: string; /** - * Specify the $expand query. Example: 'properties($select=description)' + * The OS type of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; + readonly osType?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The size of the virtual machine. */ - filter?: string; + size?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The user name of the virtual machine. */ - top?: number; + userName?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The password of the virtual machine administrator. */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface FormulasGetOptionalParams extends msRest.RequestOptionsBase { + password?: string; /** - * Specify the $expand query. Example: 'properties($select=description)' + * The SSH key of the virtual machine administrator. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface GalleryImagesListOptionalParams extends msRest.RequestOptionsBase { + sshKey?: string; /** - * Specify the $expand query. Example: 'properties($select=author)' + * Indicates whether this virtual machine uses an SSH key for authentication. */ - expand?: string; + isAuthenticationWithSshKey?: boolean; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') - */ - filter?: string; - /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The fully-qualified domain name of the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - top?: number; + readonly fqdn?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The lab subnet name of the virtual machine. */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface NotificationChannelsListOptionalParams extends msRest.RequestOptionsBase { + labSubnetName?: string; /** - * Specify the $expand query. Example: 'properties($select=webHookUrl)' + * The lab virtual network identifier of the virtual machine. */ - expand?: string; + labVirtualNetworkId?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * Indicates whether the virtual machine is to be created without a public IP address. Default + * value: false. */ - filter?: string; + disallowPublicIpAddress?: boolean; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The artifacts to be installed on the virtual machine. */ - top?: number; + artifacts?: ArtifactInstallProperties[]; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The deployment status of the artifact. */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface NotificationChannelsGetOptionalParams extends msRest.RequestOptionsBase { + deploymentStatus?: string; /** - * Specify the $expand query. Example: 'properties($select=webHookUrl)' + * The total count of the artifacts that were successfully applied. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface PoliciesListOptionalParams extends msRest.RequestOptionsBase { + artifactsApplied?: number; /** - * Specify the $expand query. Example: 'properties($select=description)' + * The total count of the artifacts that were tentatively applied. */ - expand?: string; + totalArtifacts?: number; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The offer of the gallery image. */ - filter?: string; + offer?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The publisher of the gallery image. */ - top?: number; + publisher?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The SKU of the gallery image. */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface PoliciesGetOptionalParams extends msRest.RequestOptionsBase { + sku?: string; /** - * Specify the $expand query. Example: 'properties($select=description)' + * The OS type of the gallery image. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface SchedulesListOptionalParams extends msRest.RequestOptionsBase { + osType1?: string; /** - * Specify the $expand query. Example: 'properties($select=status)' + * The version of the gallery image. */ - expand?: string; + version?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The id of the plan associated with the virtual machine image */ - filter?: string; + planId?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite + * the size of the disk in a virtual machine image. */ - top?: number; + osDiskSizeGb?: number; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * Gets the statuses of the virtual machine. */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface SchedulesGetOptionalParams extends msRest.RequestOptionsBase { + statuses?: ComputeVmInstanceViewStatus[]; /** - * Specify the $expand query. Example: 'properties($select=status)' + * Gets the OS type of the virtual machine. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface ServiceRunnersListOptionalParams extends msRest.RequestOptionsBase { + osType2?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * Gets the size of the virtual machine. */ - filter?: string; + vmSize?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * Gets the network interface ID of the virtual machine. */ - top?: number; + networkInterfaceId?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * Gets OS disk blob uri for the virtual machine. */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface UsersListOptionalParams extends msRest.RequestOptionsBase { + osDiskId?: string; /** - * Specify the $expand query. Example: 'properties($select=identity)' + * Gets data disks blob uri for the virtual machine. */ - expand?: string; + dataDiskIds?: string[]; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * Gets all data disks attached to the virtual machine. */ - filter?: string; + dataDisks?: ComputeDataDisk[]; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The resource ID of the virtual network. */ - top?: number; + virtualNetworkId?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The resource ID of the sub net. */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface UsersGetOptionalParams extends msRest.RequestOptionsBase { + subnetId?: string; /** - * Specify the $expand query. Example: 'properties($select=identity)' + * The resource ID of the public IP address. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface DisksListOptionalParams extends msRest.RequestOptionsBase { + publicIpAddressId?: string; /** - * Specify the $expand query. Example: 'properties($select=diskType)' + * The public IP address. */ - expand?: string; + publicIpAddress?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The private IP address. */ - filter?: string; + privateIpAddress?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The DNS name. */ - top?: number; + dnsName?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The RdpAuthority property is a server DNS host name or IP address followed by the service port + * number for RDP (Remote Desktop Protocol). */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface DisksGetOptionalParams extends msRest.RequestOptionsBase { + rdpAuthority?: string; /** - * Specify the $expand query. Example: 'properties($select=diskType)' + * The SshAuthority property is a server DNS host name or IP address followed by the service port + * number for SSH. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface EnvironmentsListOptionalParams extends msRest.RequestOptionsBase { + sshAuthority?: string; /** - * Specify the $expand query. Example: 'properties($select=deploymentProperties)' + * The incoming NAT rules */ - expand?: string; + inboundNatRules?: InboundNatRule[]; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly virtualMachineId?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - top?: number; + readonly virtualMachineName?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface EnvironmentsGetOptionalParams extends msRest.RequestOptionsBase { + readonly virtualMachineType?: string; /** - * Specify the $expand query. Example: 'properties($select=deploymentProperties)' + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface SecretsListOptionalParams extends msRest.RequestOptionsBase { + readonly id1?: string; /** - * Specify the $expand query. Example: 'properties($select=value)' + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; + readonly name1?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly type1?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * Resource tags. */ - top?: number; + virtualMachineTags?: { [propertyName: string]: string }; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The geo-location where the resource lives */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface SecretsGetOptionalParams extends msRest.RequestOptionsBase { + virtualMachineLocation: string; /** - * Specify the $expand query. Example: 'properties($select=value)' + * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Disabled'. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface ServiceFabricsListOptionalParams extends msRest.RequestOptionsBase { + status?: EnableStatus; /** - * Specify the $expand query. Example: 'properties($expand=applicableSchedule)' + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). */ - expand?: string; + taskType?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). */ - filter?: string; + weekdays?: string[]; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The time of the day the schedule will occur. */ - top?: number; + time?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The time of day the schedule will occur. */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface ServiceFabricsGetOptionalParams extends msRest.RequestOptionsBase { + time1?: string; /** - * Specify the $expand query. Example: 'properties($expand=applicableSchedule)' + * Minutes of the hour the schedule will run. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface ServiceFabricSchedulesListOptionalParams extends msRest.RequestOptionsBase { + minute?: number; /** - * Specify the $expand query. Example: 'properties($select=status)' + * The time zone ID (e.g. Pacific Standard time). */ - expand?: string; + timeZoneId?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - filter?: string; + status1?: EnableStatus; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * Time in minutes before event at which notification will be sent. */ - top?: number; + timeInMinutes?: number; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The webhook URL to which the notification will be sent. */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface ServiceFabricSchedulesGetOptionalParams extends msRest.RequestOptionsBase { + webhookUrl?: string; /** - * Specify the $expand query. Example: 'properties($select=status)' + * The email recipient to send notifications to (can be a list of semi-colon separated email + * addresses). */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface VirtualMachinesListOptionalParams extends msRest.RequestOptionsBase { + emailRecipient?: string; /** - * Specify the $expand query. Example: - * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + * The locale to use when sending a notification (fallback for unsupported languages is EN). */ - expand?: string; + notificationLocale?: string; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The creation date of the schedule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly createdDate1?: Date; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The resource ID to which the schedule belongs */ - top?: number; + targetResourceId?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - orderby?: string; -} - -/** - * Optional Parameters. - */ -export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { + readonly provisioningState?: string; /** - * Specify the $expand query. Example: - * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface VirtualMachineSchedulesListOptionalParams extends msRest.RequestOptionsBase { + readonly uniqueIdentifier?: string; /** - * Specify the $expand query. Example: 'properties($select=status)' + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; + readonly scheduleSystemData?: SystemData; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly id2?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - top?: number; + readonly name2?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - orderby?: string; + readonly type2?: string; + /** + * Resource tags. + */ + tags1?: { [propertyName: string]: string }; + /** + * The geo-location where the resource lives + */ + location1: string; + /** + * The status of the schedule (i.e. Enabled, Disabled). Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Disabled'. + */ + status2?: EnableStatus; + /** + * The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart). + */ + taskType1?: string; + /** + * The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.). + */ + weekdays1?: string[]; + /** + * The time of the day the schedule will occur. + */ + time2?: string; + /** + * The time of day the schedule will occur. + */ + time3?: string; + /** + * Minutes of the hour the schedule will run. + */ + minute1?: number; + /** + * The time zone ID (e.g. Pacific Standard time). + */ + timeZoneId1?: string; + /** + * If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. + */ + status3?: EnableStatus; + /** + * Time in minutes before event at which notification will be sent. + */ + timeInMinutes1?: number; + /** + * The webhook URL to which the notification will be sent. + */ + webhookUrl1?: string; + /** + * The email recipient to send notifications to (can be a list of semi-colon separated email + * addresses). + */ + emailRecipient1?: string; + /** + * The locale to use when sending a notification (fallback for unsupported languages is EN). + */ + notificationLocale1?: string; + /** + * The creation date of the schedule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdDate2?: Date; + /** + * The resource ID to which the schedule belongs + */ + targetResourceId1?: string; + /** + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState1?: string; + /** + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly uniqueIdentifier1?: string; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData1?: SystemData; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData2?: SystemData; + /** + * The expiration date for VM. + */ + expirationDate?: Date; + /** + * Indicates whether another user can take ownership of the virtual machine. Default value: + * false. + */ + allowClaim?: boolean; + /** + * Storage type to use for virtual machine (i.e. Standard, Premium, StandardSSD). Possible values + * include: 'Standard', 'Premium', 'StandardSSD'. Default value: 'Standard'. + */ + storageType?: StorageType; + /** + * Tells source of creation of lab virtual machine. Output property only. Possible values + * include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachineCreationSource?: VirtualMachineCreationSource; + /** + * The resource ID of the environment that contains this virtual machine, if any. + */ + environmentId?: string; + /** + * New or existing data disks to attach to the virtual machine after creation + */ + dataDiskParameters?: DataDiskProperties[]; + /** + * Virtual Machine schedules to be created + */ + scheduleParameters?: ScheduleCreationParameter[]; + /** + * Last known compute power state captured in DTL + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastKnownPowerState?: string; + /** + * Flag to determine if apply artifacts can be triggered at the time of fetching the document. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly canApplyArtifacts?: boolean; + /** + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState2?: string; + /** + * The unique immutable identifier of a resource (Guid). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly uniqueIdentifier2?: string; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * Optional Parameters. + * Patch */ -export interface VirtualMachineSchedulesGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Specify the $expand query. Example: 'properties($select=status)' - */ - expand?: string; +export interface VirtualMachineFragment extends Tags { } /** - * Optional Parameters. + * A virtual network. */ -export interface VirtualNetworksListOptionalParams extends msRest.RequestOptionsBase { +export interface VirtualNetwork extends TrackedResource { /** - * Specify the $expand query. Example: 'properties($expand=externalSubnets)' + * The allowed subnets of the virtual network. */ - expand?: string; + allowedSubnets?: Subnet[]; /** - * The filter to apply to the operation. Example: '$filter=contains(name,'myName') + * The description of the virtual network. */ - filter?: string; + description?: string; /** - * The maximum number of resources to return from the operation. Example: '$top=10' + * The Microsoft.Network resource identifier of the virtual network. */ - top?: number; + externalProviderResourceId?: string; /** - * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + * The external subnet properties. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - orderby?: string; + readonly externalSubnets?: ExternalSubnet[]; + /** + * The subnet overrides of the virtual network. + */ + subnetOverrides?: SubnetOverride[]; + /** + * 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; + /** + * The provisioning status of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * 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; + /** + * The system metadata relating to this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * Optional Parameters. + * Patch */ -export interface VirtualNetworksGetOptionalParams extends msRest.RequestOptionsBase { - /** - * Specify the $expand query. Example: 'properties($expand=externalSubnets)' - */ - expand?: string; +export interface VirtualNetworkFragment extends Tags { } /** - * An interface representing DevTestLabsClientOptions. + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource */ -export interface DevTestLabsClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface ProxyResource extends Resource { } /** - * @interface - * Result of the request to list REST API operations - * @extends Array + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource */ -export interface ProviderOperationResult extends Array { +export interface AzureEntityResource extends Resource { /** - * URL to get the next set of operation list results if there are any. + * Resource Etag. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly etag?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * The resource management error additional info. */ -export interface LabList extends Array { +export interface ErrorAdditionalInfo { /** - * Link for next set of results. + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; } /** - * @interface - * The response of a list operation. - * @extends Array + * The error detail. */ -export interface LabVhdList extends Array { +export interface ErrorDetail { + /** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; /** - * Link for next set of results. + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly message?: string; + /** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; } /** - * @interface - * The response of a list operation. - * @extends Array + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). + * @summary Error response */ -export interface ScheduleList extends Array { +export interface ErrorResponse { /** - * Link for next set of results. + * The error object. */ - nextLink?: string; + error?: ErrorDetail; } /** - * @interface - * The response of a list operation. - * @extends Array + * Localized display information for this particular operation. */ -export interface ArtifactSourceList extends Array { +export interface OperationDisplay { /** - * Link for next set of results. + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring + * Insights" or "Microsoft Compute". + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly provider?: string; + /** + * The localized friendly name of the resource type related to this operation. E.g. "Virtual + * Machines" or "Job Schedule Collections". + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resource?: string; + /** + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create + * or Update Virtual Machine", "Restart Virtual Machine". + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operation?: string; + /** + * The short, localized friendly description of the operation; suitable for tool tips and + * detailed views. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Details of a REST API operation, returned from the Resource Provider Operations API + * @summary REST API Operation */ -export interface ArmTemplateList extends Array { +export interface Operation { + /** + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Whether the operation applies to data-plane. This is "true" for data-plane operations and + * "false" for ARM/control-plane operations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isDataAction?: boolean; /** - * Link for next set of results. + * Localized display information for this particular operation. */ - nextLink?: string; + display?: OperationDisplay; + /** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit + * logs UX. Default value is "user,system". Possible values include: 'user', 'system', + * 'user,system' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly origin?: Origin; + /** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * Possible values include: 'Internal' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly actionType?: ActionType; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface ArtifactList extends Array { +export interface LabsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface CustomImageList extends Array { +export interface LabsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface FormulaList extends Array { +export interface LabsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface GalleryImageList extends Array { +export interface LabsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface NotificationChannelList extends Array { +export interface GlobalSchedulesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface PolicyList extends Array { +export interface GlobalSchedulesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface ServiceRunnerList extends Array { +export interface GlobalSchedulesListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface UserList extends Array { +export interface GlobalSchedulesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface DiskList extends Array { +export interface ArtifactSourcesListOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface DtlEnvironmentList extends Array { +export interface ArtifactSourcesListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface SecretList extends Array { +export interface ArmTemplatesListOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface ServiceFabricList extends Array { +export interface ArmTemplatesListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface LabVirtualMachineList extends Array { +export interface ArtifactsListOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * @interface - * The response of a list operation. - * @extends Array + * Optional Parameters. */ -export interface VirtualNetworkList extends Array { +export interface ArtifactsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Link for next set of results. + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' */ - nextLink?: string; + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; } /** - * Defines values for EnableStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type EnableStatus = 'Enabled' | 'Disabled'; - -/** - * Defines values for SourceControlType. - * Possible values include: 'VsoGit', 'GitHub' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type SourceControlType = 'VsoGit' | 'GitHub'; +export interface CostsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: 'properties($expand=labCostDetails)' + */ + expand?: string; +} /** - * Defines values for StorageType. - * Possible values include: 'Standard', 'Premium' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type StorageType = 'Standard' | 'Premium'; - -/** - * Defines values for CostThresholdStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type CostThresholdStatus = 'Enabled' | 'Disabled'; +export interface CustomImagesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for WindowsOsState. - * Possible values include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type WindowsOsState = 'NonSysprepped' | 'SysprepRequested' | 'SysprepApplied'; +export interface CustomImagesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * 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' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type LinuxOsState = 'NonDeprovisioned' | 'DeprovisionRequested' | 'DeprovisionApplied'; +export interface FormulasListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for CustomImageOsType. - * Possible values include: 'Windows', 'Linux', 'None' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type CustomImageOsType = 'Windows' | 'Linux' | 'None'; +export interface FormulasListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for HostCachingOptions. - * Possible values include: 'None', 'ReadOnly', 'ReadWrite' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type HostCachingOptions = 'None' | 'ReadOnly' | 'ReadWrite'; +export interface GalleryImagesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for NotificationChannelEventType. - * Possible values include: 'AutoShutdown', 'Cost' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type NotificationChannelEventType = 'AutoShutdown' | 'Cost'; +export interface GalleryImagesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for TransportProtocol. - * Possible values include: 'Tcp', 'Udp' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type TransportProtocol = 'Tcp' | 'Udp'; +export interface NotificationChannelsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for VirtualMachineCreationSource. - * Possible values include: 'FromCustomImage', 'FromGalleryImage' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type VirtualMachineCreationSource = 'FromCustomImage' | 'FromGalleryImage'; +export interface NotificationChannelsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for FileUploadOptions. - * Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type FileUploadOptions = 'UploadFilesAndGenerateSasTokens' | 'None'; +export interface PolicySetsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for PremiumDataDisk. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type PremiumDataDisk = 'Disabled' | 'Enabled'; +export interface PolicySetsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for EnvironmentPermission. - * Possible values include: 'Reader', 'Contributor' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type EnvironmentPermission = 'Reader' | 'Contributor'; +export interface PoliciesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for TargetCostStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type TargetCostStatus = 'Enabled' | 'Disabled'; +export interface PoliciesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for ReportingCycleType. - * Possible values include: 'CalendarMonth', 'Custom' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type ReportingCycleType = 'CalendarMonth' | 'Custom'; +export interface SchedulesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} /** - * Defines values for CostType. - * Possible values include: 'Unavailable', 'Reported', 'Projected' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type CostType = 'Unavailable' | 'Reported' | 'Projected'; +export interface SchedulesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * 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' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type HttpStatusCode = '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'; - -/** - * Defines values for PolicyStatus. - * Possible values include: 'Enabled', 'Disabled' +export interface LabSecretsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface LabSecretsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface ServiceRunnersListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface ServiceRunnersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleriesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface SharedGalleriesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface SharedImagesListOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: 'properties($expand=versions)' + */ + expand?: string; + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface SharedImagesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: 'properties($expand=versions)' + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface SharedImagesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: 'properties($expand=versions)' + */ + expand?: string; + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface UsersListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface UsersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface DisksListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface DisksListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface EnvironmentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface EnvironmentsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface SecretsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface SecretsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface ServiceFabricsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: 'properties($expand=applicableSchedule)' + */ + expand?: string; + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface ServiceFabricsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: 'properties($expand=applicableSchedule)' + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ServiceFabricsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: 'properties($expand=applicableSchedule)' + */ + expand?: string; + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface ServiceFabricSchedulesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface ServiceFabricSchedulesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachinesListOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: + * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + */ + expand?: string; + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: + * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachinesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: + * 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + */ + expand?: string; + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineSchedulesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineSchedulesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualNetworksListOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: 'properties($expand=externalSubnets)' + */ + expand?: string; + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualNetworksGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: 'properties($expand=externalSubnets)' + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualNetworksListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify the $expand query. Example: 'properties($expand=externalSubnets)' + */ + expand?: string; + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface BastionHostsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface BastionHostsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply to the operation. Example: '$filter=contains(name,'myName')' + */ + filter?: string; + /** + * The maximum number of resources to return from the operation. Example: '$top=10' + */ + top?: number; + /** + * The ordering expression for the results, using OData notation. Example: '$orderby=name desc' + */ + orderby?: string; +} + +/** + * An interface representing DevTestLabsClientOptions. + */ +export interface DevTestLabsClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * A list of REST API operations supported by an Azure Resource Provider. It contains an URL link + * to get the next set of results. + * @extends Array + */ +export interface OperationListResult extends Array { + /** + * 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 + * Contains a list of labs and their properties + * @extends Array + */ +export interface LabList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of schedules and their properties + * @extends Array + */ +export interface ScheduleList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of artifactSources and their properties + * @extends Array + */ +export interface ArtifactSourceList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of armTemplates and their properties + * @extends Array + */ +export interface ArmTemplateList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of artifacts and their properties + * @extends Array + */ +export interface ArtifactList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of customImages and their properties + * @extends Array + */ +export interface CustomImageList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of formulas and their properties + * @extends Array + */ +export interface FormulaList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of galleryImages and their properties + * @extends Array + */ +export interface GalleryImageList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of notificationChannels and their properties + * @extends Array + */ +export interface NotificationChannelList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of policySets and their properties + * @extends Array + */ +export interface PolicySetList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of policies and their properties + * @extends Array + */ +export interface PolicyList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of secrets and their properties + * @extends Array + */ +export interface LabSecretList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of serviceRunners and their properties + * @extends Array + */ +export interface ServiceRunnerList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of sharedGalleries and their properties + * @extends Array + */ +export interface SharedGalleryList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of sharedImages and their properties + * @extends Array + */ +export interface SharedImageList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of users and their properties + * @extends Array + */ +export interface UserList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of disks and their properties + * @extends Array + */ +export interface DiskList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of environments and their properties + * @extends Array + */ +export interface EnvironmentList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of secrets and their properties + * @extends Array + */ +export interface SecretList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of serviceFabrics and their properties + * @extends Array + */ +export interface ServiceFabricList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of virtualMachines and their properties + * @extends Array + */ +export interface VirtualMachineList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of virtualNetworks and their properties + * @extends Array + */ +export interface VirtualNetworkList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * @interface + * Contains a list of bastionHosts and their properties + * @extends Array + */ +export interface BastionHostList extends Array { + /** + * URL to get the next set of operation list results if there are any + */ + nextLink?: string; +} + +/** + * Defines values for EnableStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type EnableStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for SourceControlType. + * Possible values include: 'VsoGit', 'GitHub', 'StorageAccount' + * @readonly + * @enum {string} + */ +export type SourceControlType = 'VsoGit' | 'GitHub' | 'StorageAccount'; + +/** + * Defines values for StorageType. + * Possible values include: 'Standard', 'Premium', 'StandardSSD' + * @readonly + * @enum {string} + */ +export type StorageType = 'Standard' | 'Premium' | 'StandardSSD'; + +/** + * Defines values for TargetCostStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type TargetCostStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for CostThresholdStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type CostThresholdStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for ReportingCycleType. + * Possible values include: 'CalendarMonth', 'Custom' + * @readonly + * @enum {string} + */ +export type ReportingCycleType = 'CalendarMonth' | 'Custom'; + +/** + * Defines values for CostType. + * Possible values include: 'Unavailable', 'Reported', 'Projected' + * @readonly + * @enum {string} + */ +export type CostType = 'Unavailable' | 'Reported' | 'Projected'; + +/** + * Defines values for WindowsOsState. + * Possible values include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' + * @readonly + * @enum {string} + */ +export type WindowsOsState = 'NonSysprepped' | 'SysprepRequested' | 'SysprepApplied'; + +/** + * Defines values for LinuxOsState. + * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested', 'DeprovisionApplied' + * @readonly + * @enum {string} + */ +export type LinuxOsState = 'NonDeprovisioned' | 'DeprovisionRequested' | 'DeprovisionApplied'; + +/** + * Defines values for CustomImageOsType. + * Possible values include: 'Windows', 'Linux', 'None' + * @readonly + * @enum {string} + */ +export type CustomImageOsType = 'Windows' | 'Linux' | 'None'; + +/** + * Defines values for HostCachingOption. + * Possible values include: 'None', 'ReadOnly', 'ReadWrite' + * @readonly + * @enum {string} + */ +export type HostCachingOption = 'None' | 'ReadOnly' | 'ReadWrite'; + +/** + * Defines values for EncryptionType. + * Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey' + * @readonly + * @enum {string} + */ +export type EncryptionType = 'EncryptionAtRestWithPlatformKey' | 'EncryptionAtRestWithCustomerKey'; + +/** + * Defines values for NotificationChannelEventType. + * Possible values include: 'AutoShutdown', 'Cost' + * @readonly + * @enum {string} + */ +export type NotificationChannelEventType = 'AutoShutdown' | 'Cost'; + +/** + * Defines values for TransportProtocol. + * Possible values include: 'Tcp', 'Udp' + * @readonly + * @enum {string} + */ +export type TransportProtocol = 'Tcp' | 'Udp'; + +/** + * Defines values for VirtualMachineCreationSource. + * Possible values include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' + * @readonly + * @enum {string} + */ +export type VirtualMachineCreationSource = 'FromCustomImage' | 'FromGalleryImage' | 'FromSharedGalleryImage'; + +/** + * Defines values for FileUploadOption. + * Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' + * @readonly + * @enum {string} + */ +export type FileUploadOption = 'UploadFilesAndGenerateSasTokens' | 'None'; + +/** + * Defines values for ManagedIdentityType. + * Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned' + * @readonly + * @enum {string} + */ +export type ManagedIdentityType = 'None' | 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned'; + +/** + * Defines values for PremiumDataDisk. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type PremiumDataDisk = 'Disabled' | 'Enabled'; + +/** + * Defines values for EnvironmentPermission. + * Possible values include: 'Reader', 'Contributor' + * @readonly + * @enum {string} + */ +export type EnvironmentPermission = 'Reader' | 'Contributor'; + +/** + * Defines values for HttpStatusCode. + * Possible values include: 'Continue', 'SwitchingProtocols', 'Processing', 'EarlyHints', 'OK', + * 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + * 'PartialContent', 'MultiStatus', 'AlreadyReported', 'IMUsed', 'MultipleChoices', 'Ambiguous', + * 'MovedPermanently', 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', + * 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', 'PermanentRedirect', + * 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', 'MethodNotAllowed', + * 'NotAcceptable', 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone', + * 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', + * 'MisdirectedRequest', 'UnprocessableEntity', 'Locked', 'FailedDependency', 'UpgradeRequired', + * 'PreconditionRequired', 'TooManyRequests', 'RequestHeaderFieldsTooLarge', + * 'UnavailableForLegalReasons', 'InternalServerError', 'NotImplemented', 'BadGateway', + * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported', 'VariantAlsoNegotiates', + * 'InsufficientStorage', 'LoopDetected', 'NotExtended', 'NetworkAuthenticationRequired' + * @readonly + * @enum {string} + */ +export type HttpStatusCode = 'Continue' | 'SwitchingProtocols' | 'Processing' | 'EarlyHints' | 'OK' | 'Created' | 'Accepted' | 'NonAuthoritativeInformation' | 'NoContent' | 'ResetContent' | 'PartialContent' | 'MultiStatus' | 'AlreadyReported' | 'IMUsed' | 'MultipleChoices' | 'Ambiguous' | 'MovedPermanently' | 'Moved' | 'Found' | 'Redirect' | 'SeeOther' | 'RedirectMethod' | 'NotModified' | 'UseProxy' | 'Unused' | 'TemporaryRedirect' | 'RedirectKeepVerb' | 'PermanentRedirect' | 'BadRequest' | 'Unauthorized' | 'PaymentRequired' | 'Forbidden' | 'NotFound' | 'MethodNotAllowed' | 'NotAcceptable' | 'ProxyAuthenticationRequired' | 'RequestTimeout' | 'Conflict' | 'Gone' | 'LengthRequired' | 'PreconditionFailed' | 'RequestEntityTooLarge' | 'RequestUriTooLong' | 'UnsupportedMediaType' | 'RequestedRangeNotSatisfiable' | 'ExpectationFailed' | 'MisdirectedRequest' | 'UnprocessableEntity' | 'Locked' | 'FailedDependency' | 'UpgradeRequired' | 'PreconditionRequired' | 'TooManyRequests' | 'RequestHeaderFieldsTooLarge' | 'UnavailableForLegalReasons' | 'InternalServerError' | 'NotImplemented' | 'BadGateway' | 'ServiceUnavailable' | 'GatewayTimeout' | 'HttpVersionNotSupported' | 'VariantAlsoNegotiates' | 'InsufficientStorage' | 'LoopDetected' | 'NotExtended' | 'NetworkAuthenticationRequired'; + +/** + * Defines values for PolicyStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PolicyStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for PolicyFactName. + * Possible values include: 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', + * 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', 'UserOwnedLabVmCountInSubnet', + * 'LabTargetCost', 'EnvironmentTemplate', 'ScheduleEditPermission' + * @readonly + * @enum {string} + */ +export type PolicyFactName = 'UserOwnedLabVmCount' | 'UserOwnedLabPremiumVmCount' | 'LabVmCount' | 'LabPremiumVmCount' | 'LabVmSize' | 'GalleryImage' | 'UserOwnedLabVmCountInSubnet' | 'LabTargetCost' | 'EnvironmentTemplate' | 'ScheduleEditPermission'; + +/** + * Defines values for PolicyEvaluatorType. + * Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy' + * @readonly + * @enum {string} + */ +export type PolicyEvaluatorType = 'AllowedValuesPolicy' | 'MaxValuePolicy'; + +/** + * Defines values for EnableState. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type EnableState = 'Disabled' | 'Enabled'; + +/** + * Defines values for OsType. + * Possible values include: 'Windows', 'Linux' + * @readonly + * @enum {string} + */ +export type OsType = 'Windows' | 'Linux'; + +/** + * Defines values for ImageType. + * Possible values include: 'Generalized', 'Specialized' + * @readonly + * @enum {string} + */ +export type ImageType = 'Generalized' | 'Specialized'; + +/** + * Defines values for UsagePermissionType. + * Possible values include: 'Default', 'Deny', 'Allow' + * @readonly + * @enum {string} + */ +export type UsagePermissionType = 'Default' | 'Deny' | 'Allow'; + +/** + * Defines values for Origin. + * Possible values include: 'user', 'system', 'user,system' + * @readonly + * @enum {string} + */ +export type Origin = 'user' | 'system' | 'user,system'; + +/** + * Defines values for ActionType. + * Possible values include: 'Internal' * @readonly * @enum {string} */ -export type PolicyStatus = 'Enabled' | 'Disabled'; +export type ActionType = 'Internal'; + +/** + * Contains response data for the list operation. + */ +export type ProviderOperationsListResponse = OperationListResult & { + /** + * 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: OperationListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ProviderOperationsListNextResponse = OperationListResult & { + /** + * 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: OperationListResult; + }; +}; + +/** + * 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; + }; +}; /** - * Defines values for PolicyFactName. - * Possible values include: 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', - * 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', 'UserOwnedLabVmCountInSubnet', - * 'LabTargetCost', 'EnvironmentTemplate', 'ScheduleEditPermission' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type PolicyFactName = 'UserOwnedLabVmCount' | 'UserOwnedLabPremiumVmCount' | 'LabVmCount' | 'LabPremiumVmCount' | 'LabVmSize' | 'GalleryImage' | 'UserOwnedLabVmCountInSubnet' | 'LabTargetCost' | 'EnvironmentTemplate' | 'ScheduleEditPermission'; +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; + }; +}; /** - * Defines values for PolicyEvaluatorType. - * Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy' - * @readonly - * @enum {string} + * 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 listBySubscription operation. + */ +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; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +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 get operation. + */ +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; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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; + }; +}; + +/** + * Contains response data for the update operation. */ -export type PolicyEvaluatorType = 'AllowedValuesPolicy' | 'MaxValuePolicy'; +export type GlobalSchedulesUpdateResponse = 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; + }; +}; /** - * Defines values for UsagePermissionType. - * Possible values include: 'Default', 'Deny', 'Allow' - * @readonly - * @enum {string} + * Contains response data for the listBySubscriptionNext operation. */ -export type UsagePermissionType = 'Default' | 'Deny' | 'Allow'; +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 list operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ProviderOperationsListResponse = ProviderOperationResult & { +export type GlobalSchedulesListByResourceGroupNextResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -4996,14 +6147,14 @@ export type ProviderOperationsListResponse = ProviderOperationResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ProviderOperationResult; + parsedBody: ScheduleList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type ProviderOperationsListNextResponse = ProviderOperationResult & { +export type ArtifactSourcesListResponse = ArtifactSourceList & { /** * The underlying HTTP response. */ @@ -5016,14 +6167,14 @@ export type ProviderOperationsListNextResponse = ProviderOperationResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ProviderOperationResult; + parsedBody: ArtifactSourceList; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the get operation. */ -export type LabsListBySubscriptionResponse = LabList & { +export type ArtifactSourcesGetResponse = ArtifactSource & { /** * The underlying HTTP response. */ @@ -5036,14 +6187,14 @@ export type LabsListBySubscriptionResponse = LabList & { /** * The response body as parsed JSON or XML */ - parsedBody: LabList; + parsedBody: ArtifactSource; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the createOrUpdate operation. */ -export type LabsListByResourceGroupResponse = LabList & { +export type ArtifactSourcesCreateOrUpdateResponse = ArtifactSource & { /** * The underlying HTTP response. */ @@ -5056,14 +6207,14 @@ export type LabsListByResourceGroupResponse = LabList & { /** * The response body as parsed JSON or XML */ - parsedBody: LabList; + parsedBody: ArtifactSource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type LabsGetResponse = Lab & { +export type ArtifactSourcesUpdateResponse = ArtifactSource & { /** * The underlying HTTP response. */ @@ -5076,14 +6227,14 @@ export type LabsGetResponse = Lab & { /** * The response body as parsed JSON or XML */ - parsedBody: Lab; + parsedBody: ArtifactSource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type LabsCreateOrUpdateResponse = Lab & { +export type ArtifactSourcesListNextResponse = ArtifactSourceList & { /** * The underlying HTTP response. */ @@ -5096,14 +6247,14 @@ export type LabsCreateOrUpdateResponse = Lab & { /** * The response body as parsed JSON or XML */ - parsedBody: Lab; + parsedBody: ArtifactSourceList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type LabsUpdateResponse = Lab & { +export type ArmTemplatesListResponse = ArmTemplateList & { /** * The underlying HTTP response. */ @@ -5116,14 +6267,14 @@ export type LabsUpdateResponse = Lab & { /** * The response body as parsed JSON or XML */ - parsedBody: Lab; + parsedBody: ArmTemplateList; }; }; /** - * Contains response data for the generateUploadUri operation. + * Contains response data for the get operation. */ -export type LabsGenerateUploadUriResponse = GenerateUploadUriResponse & { +export type ArmTemplatesGetResponse = ArmTemplate & { /** * The underlying HTTP response. */ @@ -5136,14 +6287,14 @@ export type LabsGenerateUploadUriResponse = GenerateUploadUriResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: GenerateUploadUriResponse; + parsedBody: ArmTemplate; }; }; /** - * Contains response data for the listVhds operation. + * Contains response data for the listNext operation. */ -export type LabsListVhdsResponse = LabVhdList & { +export type ArmTemplatesListNextResponse = ArmTemplateList & { /** * The underlying HTTP response. */ @@ -5156,14 +6307,14 @@ export type LabsListVhdsResponse = LabVhdList & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVhdList; + parsedBody: ArmTemplateList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the list operation. */ -export type LabsBeginCreateOrUpdateResponse = Lab & { +export type ArtifactsListResponse = ArtifactList & { /** * The underlying HTTP response. */ @@ -5176,14 +6327,14 @@ export type LabsBeginCreateOrUpdateResponse = Lab & { /** * The response body as parsed JSON or XML */ - parsedBody: Lab; + parsedBody: ArtifactList; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the get operation. */ -export type LabsListBySubscriptionNextResponse = LabList & { +export type ArtifactsGetResponse = Artifact & { /** * The underlying HTTP response. */ @@ -5196,14 +6347,14 @@ export type LabsListBySubscriptionNextResponse = LabList & { /** * The response body as parsed JSON or XML */ - parsedBody: LabList; + parsedBody: Artifact; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the generateArmTemplate operation. */ -export type LabsListByResourceGroupNextResponse = LabList & { +export type ArtifactsGenerateArmTemplateResponse = ArmTemplateInfo & { /** * The underlying HTTP response. */ @@ -5216,14 +6367,14 @@ export type LabsListByResourceGroupNextResponse = LabList & { /** * The response body as parsed JSON or XML */ - parsedBody: LabList; + parsedBody: ArmTemplateInfo; }; }; /** - * Contains response data for the listVhdsNext operation. + * Contains response data for the listNext operation. */ -export type LabsListVhdsNextResponse = LabVhdList & { +export type ArtifactsListNextResponse = ArtifactList & { /** * The underlying HTTP response. */ @@ -5236,14 +6387,14 @@ export type LabsListVhdsNextResponse = LabVhdList & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVhdList; + parsedBody: ArtifactList; }; }; /** * Contains response data for the get operation. */ -export type OperationsGetResponse = OperationResult & { +export type CostsGetResponse = LabCost & { /** * The underlying HTTP response. */ @@ -5256,14 +6407,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 = ScheduleList & { +export type CostsCreateOrUpdateResponse = LabCost & { /** * The underlying HTTP response. */ @@ -5276,14 +6427,14 @@ export type GlobalSchedulesListBySubscriptionResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: LabCost; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type GlobalSchedulesListByResourceGroupResponse = ScheduleList & { +export type CustomImagesListResponse = CustomImageList & { /** * The underlying HTTP response. */ @@ -5296,14 +6447,14 @@ export type GlobalSchedulesListByResourceGroupResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: CustomImageList; }; }; /** * Contains response data for the get operation. */ -export type GlobalSchedulesGetResponse = Schedule & { +export type CustomImagesGetResponse = CustomImage & { /** * The underlying HTTP response. */ @@ -5316,14 +6467,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. */ @@ -5336,14 +6487,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. */ @@ -5356,14 +6507,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 = ScheduleList & { +export type CustomImagesBeginCreateOrUpdateResponse = CustomImage & { /** * The underlying HTTP response. */ @@ -5376,14 +6527,14 @@ export type GlobalSchedulesListBySubscriptionNextResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: CustomImage; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listNext operation. */ -export type GlobalSchedulesListByResourceGroupNextResponse = ScheduleList & { +export type CustomImagesListNextResponse = CustomImageList & { /** * The underlying HTTP response. */ @@ -5396,14 +6547,14 @@ export type GlobalSchedulesListByResourceGroupNextResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: CustomImageList; }; }; /** * Contains response data for the list operation. */ -export type ArtifactSourcesListResponse = ArtifactSourceList & { +export type FormulasListResponse = FormulaList & { /** * The underlying HTTP response. */ @@ -5416,14 +6567,14 @@ export type ArtifactSourcesListResponse = ArtifactSourceList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactSourceList; + parsedBody: FormulaList; }; }; /** * Contains response data for the get operation. */ -export type ArtifactSourcesGetResponse = ArtifactSource & { +export type FormulasGetResponse = Formula & { /** * The underlying HTTP response. */ @@ -5436,14 +6587,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. */ @@ -5456,14 +6607,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. */ @@ -5476,14 +6627,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 = ArtifactSourceList & { +export type FormulasBeginCreateOrUpdateResponse = Formula & { /** * The underlying HTTP response. */ @@ -5496,14 +6647,14 @@ export type ArtifactSourcesListNextResponse = ArtifactSourceList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactSourceList; + parsedBody: Formula; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type ArmTemplatesListResponse = ArmTemplateList & { +export type FormulasListNextResponse = FormulaList & { /** * The underlying HTTP response. */ @@ -5516,14 +6667,14 @@ export type ArmTemplatesListResponse = ArmTemplateList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArmTemplateList; + 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. */ @@ -5536,14 +6687,14 @@ export type ArmTemplatesGetResponse = ArmTemplate & { /** * The response body as parsed JSON or XML */ - parsedBody: ArmTemplate; + parsedBody: GalleryImageList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type ArmTemplatesListNextResponse = ArmTemplateList & { +export type GalleryImagesGetResponse = GalleryImage & { /** * The underlying HTTP response. */ @@ -5556,14 +6707,14 @@ export type ArmTemplatesListNextResponse = ArmTemplateList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArmTemplateList; + parsedBody: GalleryImage; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type ArtifactsListResponse = ArtifactList & { +export type GalleryImagesListNextResponse = GalleryImageList & { /** * The underlying HTTP response. */ @@ -5576,14 +6727,14 @@ export type ArtifactsListResponse = ArtifactList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactList; + parsedBody: GalleryImageList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type ArtifactsGetResponse = Artifact & { +export type NotificationChannelsListResponse = NotificationChannelList & { /** * The underlying HTTP response. */ @@ -5596,14 +6747,14 @@ export type ArtifactsGetResponse = Artifact & { /** * The response body as parsed JSON or XML */ - parsedBody: Artifact; + parsedBody: NotificationChannelList; }; }; /** - * Contains response data for the generateArmTemplate operation. + * Contains response data for the get operation. */ -export type ArtifactsGenerateArmTemplateResponse = ArmTemplateInfo & { +export type NotificationChannelsGetResponse = NotificationChannel & { /** * The underlying HTTP response. */ @@ -5616,14 +6767,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 createOrUpdate operation. */ -export type ArtifactsListNextResponse = ArtifactList & { +export type NotificationChannelsCreateOrUpdateResponse = NotificationChannel & { /** * The underlying HTTP response. */ @@ -5636,14 +6787,14 @@ export type ArtifactsListNextResponse = ArtifactList & { /** * The response body as parsed JSON or XML */ - parsedBody: ArtifactList; + parsedBody: NotificationChannel; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type CostsGetResponse = LabCost & { +export type NotificationChannelsUpdateResponse = NotificationChannel & { /** * The underlying HTTP response. */ @@ -5656,14 +6807,14 @@ export type CostsGetResponse = LabCost & { /** * The response body as parsed JSON or XML */ - parsedBody: LabCost; + parsedBody: NotificationChannel; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type CostsCreateOrUpdateResponse = LabCost & { +export type NotificationChannelsListNextResponse = NotificationChannelList & { /** * The underlying HTTP response. */ @@ -5676,14 +6827,14 @@ export type CostsCreateOrUpdateResponse = LabCost & { /** * The response body as parsed JSON or XML */ - parsedBody: LabCost; + parsedBody: NotificationChannelList; }; }; /** * Contains response data for the list operation. */ -export type CustomImagesListResponse = CustomImageList & { +export type PolicySetsListResponse = PolicySetList & { /** * The underlying HTTP response. */ @@ -5696,14 +6847,14 @@ export type CustomImagesListResponse = CustomImageList & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImageList; + parsedBody: PolicySetList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the evaluatePolicies operation. */ -export type CustomImagesGetResponse = CustomImage & { +export type PolicySetsEvaluatePoliciesResponse = EvaluatePoliciesResponse & { /** * The underlying HTTP response. */ @@ -5716,14 +6867,14 @@ export type CustomImagesGetResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: EvaluatePoliciesResponse; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type CustomImagesCreateOrUpdateResponse = CustomImage & { +export type PolicySetsListNextResponse = PolicySetList & { /** * The underlying HTTP response. */ @@ -5736,14 +6887,14 @@ export type CustomImagesCreateOrUpdateResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: PolicySetList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type CustomImagesUpdateResponse = CustomImage & { +export type PoliciesListResponse = PolicyList & { /** * The underlying HTTP response. */ @@ -5756,14 +6907,14 @@ export type CustomImagesUpdateResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: PolicyList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type CustomImagesBeginCreateOrUpdateResponse = CustomImage & { +export type PoliciesGetResponse = Policy & { /** * The underlying HTTP response. */ @@ -5776,14 +6927,14 @@ export type CustomImagesBeginCreateOrUpdateResponse = CustomImage & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImage; + parsedBody: Policy; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type CustomImagesListNextResponse = CustomImageList & { +export type PoliciesCreateOrUpdateResponse = Policy & { /** * The underlying HTTP response. */ @@ -5796,14 +6947,14 @@ export type CustomImagesListNextResponse = CustomImageList & { /** * The response body as parsed JSON or XML */ - parsedBody: CustomImageList; + parsedBody: Policy; }; }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type FormulasListResponse = FormulaList & { +export type PoliciesUpdateResponse = Policy & { /** * The underlying HTTP response. */ @@ -5816,14 +6967,14 @@ export type FormulasListResponse = FormulaList & { /** * The response body as parsed JSON or XML */ - parsedBody: FormulaList; + parsedBody: Policy; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type FormulasGetResponse = Formula & { +export type PoliciesListNextResponse = PolicyList & { /** * The underlying HTTP response. */ @@ -5836,14 +6987,14 @@ export type FormulasGetResponse = Formula & { /** * The response body as parsed JSON or XML */ - parsedBody: Formula; + parsedBody: PolicyList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type FormulasCreateOrUpdateResponse = Formula & { +export type SchedulesListResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -5856,14 +7007,14 @@ export type FormulasCreateOrUpdateResponse = Formula & { /** * The response body as parsed JSON or XML */ - parsedBody: Formula; + parsedBody: ScheduleList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type FormulasUpdateResponse = Formula & { +export type SchedulesGetResponse = Schedule & { /** * The underlying HTTP response. */ @@ -5876,14 +7027,14 @@ export type FormulasUpdateResponse = 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 createOrUpdate operation. */ -export type FormulasBeginCreateOrUpdateResponse = Formula & { +export type SchedulesCreateOrUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -5896,14 +7047,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 update operation. */ -export type FormulasListNextResponse = FormulaList & { +export type SchedulesUpdateResponse = Schedule & { /** * The underlying HTTP response. */ @@ -5916,14 +7067,14 @@ export type FormulasListNextResponse = FormulaList & { /** * The response body as parsed JSON or XML */ - parsedBody: FormulaList; + parsedBody: Schedule; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listApplicable operation. */ -export type GalleryImagesListResponse = GalleryImageList & { +export type SchedulesListApplicableResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -5936,14 +7087,14 @@ export type GalleryImagesListResponse = GalleryImageList & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageList; + parsedBody: ScheduleList; }; }; /** * Contains response data for the listNext operation. */ -export type GalleryImagesListNextResponse = GalleryImageList & { +export type SchedulesListNextResponse = ScheduleList & { /** * The underlying HTTP response. */ @@ -5956,14 +7107,14 @@ export type GalleryImagesListNextResponse = GalleryImageList & { /** * The response body as parsed JSON or XML */ - parsedBody: GalleryImageList; + parsedBody: ScheduleList; }; }; /** * Contains response data for the list operation. */ -export type NotificationChannelsListResponse = NotificationChannelList & { +export type LabSecretsListResponse = LabSecretList & { /** * The underlying HTTP response. */ @@ -5976,14 +7127,14 @@ export type NotificationChannelsListResponse = NotificationChannelList & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannelList; + parsedBody: LabSecretList; }; }; /** * Contains response data for the get operation. */ -export type NotificationChannelsGetResponse = NotificationChannel & { +export type LabSecretsGetResponse = LabSecret & { /** * The underlying HTTP response. */ @@ -5996,14 +7147,14 @@ export type NotificationChannelsGetResponse = NotificationChannel & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannel; + parsedBody: LabSecret; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type NotificationChannelsCreateOrUpdateResponse = NotificationChannel & { +export type LabSecretsCreateOrUpdateResponse = LabSecret & { /** * The underlying HTTP response. */ @@ -6016,14 +7167,14 @@ export type NotificationChannelsCreateOrUpdateResponse = NotificationChannel & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannel; + parsedBody: LabSecret; }; }; /** * Contains response data for the update operation. */ -export type NotificationChannelsUpdateResponse = NotificationChannel & { +export type LabSecretsUpdateResponse = LabSecret & { /** * The underlying HTTP response. */ @@ -6036,14 +7187,14 @@ export type NotificationChannelsUpdateResponse = NotificationChannel & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannel; + parsedBody: LabSecret; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type NotificationChannelsListNextResponse = NotificationChannelList & { +export type LabSecretsBeginCreateOrUpdateResponse = LabSecret & { /** * The underlying HTTP response. */ @@ -6056,14 +7207,14 @@ export type NotificationChannelsListNextResponse = NotificationChannelList & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationChannelList; + parsedBody: LabSecret; }; }; /** - * Contains response data for the evaluatePolicies operation. + * Contains response data for the listNext operation. */ -export type PolicySetsEvaluatePoliciesResponse = EvaluatePoliciesResponse & { +export type LabSecretsListNextResponse = LabSecretList & { /** * The underlying HTTP response. */ @@ -6076,14 +7227,14 @@ export type PolicySetsEvaluatePoliciesResponse = EvaluatePoliciesResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: EvaluatePoliciesResponse; + parsedBody: LabSecretList; }; }; /** * Contains response data for the list operation. */ -export type PoliciesListResponse = PolicyList & { +export type ServiceRunnersListResponse = ServiceRunnerList & { /** * The underlying HTTP response. */ @@ -6096,14 +7247,14 @@ export type PoliciesListResponse = PolicyList & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyList; + parsedBody: ServiceRunnerList; }; }; /** * Contains response data for the get operation. */ -export type PoliciesGetResponse = Policy & { +export type ServiceRunnersGetResponse = ServiceRunner & { /** * The underlying HTTP response. */ @@ -6116,14 +7267,14 @@ export type PoliciesGetResponse = Policy & { /** * The response body as parsed JSON or XML */ - parsedBody: Policy; + parsedBody: ServiceRunner; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type PoliciesCreateOrUpdateResponse = Policy & { +export type ServiceRunnersCreateOrUpdateResponse = ServiceRunner & { /** * The underlying HTTP response. */ @@ -6136,14 +7287,14 @@ export type PoliciesCreateOrUpdateResponse = Policy & { /** * The response body as parsed JSON or XML */ - parsedBody: Policy; + parsedBody: ServiceRunner; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type PoliciesUpdateResponse = Policy & { +export type ServiceRunnersBeginCreateOrUpdateResponse = ServiceRunner & { /** * The underlying HTTP response. */ @@ -6156,14 +7307,14 @@ export type PoliciesUpdateResponse = Policy & { /** * The response body as parsed JSON or XML */ - parsedBody: Policy; + parsedBody: ServiceRunner; }; }; /** * Contains response data for the listNext operation. */ -export type PoliciesListNextResponse = PolicyList & { +export type ServiceRunnersListNextResponse = ServiceRunnerList & { /** * The underlying HTTP response. */ @@ -6176,14 +7327,14 @@ export type PoliciesListNextResponse = PolicyList & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyList; + parsedBody: ServiceRunnerList; }; }; /** * Contains response data for the list operation. */ -export type SchedulesListResponse = ScheduleList & { +export type SharedGalleriesListResponse = SharedGalleryList & { /** * The underlying HTTP response. */ @@ -6196,14 +7347,14 @@ export type SchedulesListResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: SharedGalleryList; }; }; /** * Contains response data for the get operation. */ -export type SchedulesGetResponse = Schedule & { +export type SharedGalleriesGetResponse = SharedGallery & { /** * The underlying HTTP response. */ @@ -6216,14 +7367,14 @@ export type SchedulesGetResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: SharedGallery; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type SchedulesCreateOrUpdateResponse = Schedule & { +export type SharedGalleriesCreateOrUpdateResponse = SharedGallery & { /** * The underlying HTTP response. */ @@ -6236,34 +7387,14 @@ export type SchedulesCreateOrUpdateResponse = Schedule & { /** * The response body as parsed JSON or XML */ - parsedBody: Schedule; + parsedBody: SharedGallery; }; }; /** * Contains response data for the update operation. */ -export type SchedulesUpdateResponse = 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; - }; -}; - -/** - * Contains response data for the listApplicable operation. - */ -export type SchedulesListApplicableResponse = ScheduleList & { +export type SharedGalleriesUpdateResponse = SharedGallery & { /** * The underlying HTTP response. */ @@ -6276,14 +7407,14 @@ export type SchedulesListApplicableResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: SharedGallery; }; }; /** * Contains response data for the listNext operation. */ -export type SchedulesListNextResponse = ScheduleList & { +export type SharedGalleriesListNextResponse = SharedGalleryList & { /** * The underlying HTTP response. */ @@ -6296,14 +7427,14 @@ export type SchedulesListNextResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: SharedGalleryList; }; }; /** - * Contains response data for the listApplicableNext operation. + * Contains response data for the list operation. */ -export type SchedulesListApplicableNextResponse = ScheduleList & { +export type SharedImagesListResponse = SharedImageList & { /** * The underlying HTTP response. */ @@ -6316,14 +7447,14 @@ export type SchedulesListApplicableNextResponse = ScheduleList & { /** * The response body as parsed JSON or XML */ - parsedBody: ScheduleList; + parsedBody: SharedImageList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type ServiceRunnersListResponse = ServiceRunnerList & { +export type SharedImagesGetResponse = SharedImage & { /** * The underlying HTTP response. */ @@ -6336,14 +7467,14 @@ export type ServiceRunnersListResponse = ServiceRunnerList & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceRunnerList; + parsedBody: SharedImage; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ServiceRunnersGetResponse = ServiceRunner & { +export type SharedImagesCreateOrUpdateResponse = SharedImage & { /** * The underlying HTTP response. */ @@ -6356,14 +7487,14 @@ export type ServiceRunnersGetResponse = ServiceRunner & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceRunner; + parsedBody: SharedImage; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type ServiceRunnersCreateOrUpdateResponse = ServiceRunner & { +export type SharedImagesUpdateResponse = SharedImage & { /** * The underlying HTTP response. */ @@ -6376,14 +7507,14 @@ export type ServiceRunnersCreateOrUpdateResponse = ServiceRunner & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceRunner; + parsedBody: SharedImage; }; }; /** * Contains response data for the listNext operation. */ -export type ServiceRunnersListNextResponse = ServiceRunnerList & { +export type SharedImagesListNextResponse = SharedImageList & { /** * The underlying HTTP response. */ @@ -6396,7 +7527,7 @@ export type ServiceRunnersListNextResponse = ServiceRunnerList & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceRunnerList; + parsedBody: SharedImageList; }; }; @@ -6643,7 +7774,7 @@ export type DisksListNextResponse = DiskList & { /** * Contains response data for the list operation. */ -export type EnvironmentsListResponse = DtlEnvironmentList & { +export type EnvironmentsListResponse = EnvironmentList & { /** * The underlying HTTP response. */ @@ -6656,14 +7787,14 @@ export type EnvironmentsListResponse = DtlEnvironmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironmentList; + parsedBody: EnvironmentList; }; }; /** * Contains response data for the get operation. */ -export type EnvironmentsGetResponse = DtlEnvironment & { +export type EnvironmentsGetResponse = Environment & { /** * The underlying HTTP response. */ @@ -6676,14 +7807,14 @@ export type EnvironmentsGetResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: Environment; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type EnvironmentsCreateOrUpdateResponse = DtlEnvironment & { +export type EnvironmentsCreateOrUpdateResponse = Environment & { /** * The underlying HTTP response. */ @@ -6696,14 +7827,14 @@ export type EnvironmentsCreateOrUpdateResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: Environment; }; }; /** * Contains response data for the update operation. */ -export type EnvironmentsUpdateResponse = DtlEnvironment & { +export type EnvironmentsUpdateResponse = Environment & { /** * The underlying HTTP response. */ @@ -6716,14 +7847,14 @@ export type EnvironmentsUpdateResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: Environment; }; }; /** * Contains response data for the beginCreateOrUpdate operation. */ -export type EnvironmentsBeginCreateOrUpdateResponse = DtlEnvironment & { +export type EnvironmentsBeginCreateOrUpdateResponse = Environment & { /** * The underlying HTTP response. */ @@ -6736,14 +7867,14 @@ export type EnvironmentsBeginCreateOrUpdateResponse = DtlEnvironment & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironment; + parsedBody: Environment; }; }; /** * Contains response data for the listNext operation. */ -export type EnvironmentsListNextResponse = DtlEnvironmentList & { +export type EnvironmentsListNextResponse = EnvironmentList & { /** * The underlying HTTP response. */ @@ -6756,7 +7887,7 @@ export type EnvironmentsListNextResponse = DtlEnvironmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: DtlEnvironmentList; + parsedBody: EnvironmentList; }; }; @@ -7123,7 +8254,7 @@ export type ServiceFabricSchedulesListNextResponse = ScheduleList & { /** * Contains response data for the list operation. */ -export type VirtualMachinesListResponse = LabVirtualMachineList & { +export type VirtualMachinesListResponse = VirtualMachineList & { /** * The underlying HTTP response. */ @@ -7136,14 +8267,14 @@ export type VirtualMachinesListResponse = LabVirtualMachineList & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVirtualMachineList; + parsedBody: VirtualMachineList; }; }; /** * Contains response data for the get operation. */ -export type VirtualMachinesGetResponse = LabVirtualMachine & { +export type VirtualMachinesGetResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -7156,14 +8287,14 @@ export type VirtualMachinesGetResponse = LabVirtualMachine & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVirtualMachine; + parsedBody: VirtualMachine; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type VirtualMachinesCreateOrUpdateResponse = LabVirtualMachine & { +export type VirtualMachinesCreateOrUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -7176,14 +8307,14 @@ export type VirtualMachinesCreateOrUpdateResponse = LabVirtualMachine & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVirtualMachine; + parsedBody: VirtualMachine; }; }; /** * Contains response data for the update operation. */ -export type VirtualMachinesUpdateResponse = LabVirtualMachine & { +export type VirtualMachinesUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -7196,7 +8327,7 @@ export type VirtualMachinesUpdateResponse = LabVirtualMachine & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVirtualMachine; + parsedBody: VirtualMachine; }; }; @@ -7243,7 +8374,7 @@ export type VirtualMachinesListApplicableSchedulesResponse = ApplicableSchedule /** * Contains response data for the beginCreateOrUpdate operation. */ -export type VirtualMachinesBeginCreateOrUpdateResponse = LabVirtualMachine & { +export type VirtualMachinesBeginCreateOrUpdateResponse = VirtualMachine & { /** * The underlying HTTP response. */ @@ -7256,14 +8387,14 @@ export type VirtualMachinesBeginCreateOrUpdateResponse = LabVirtualMachine & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVirtualMachine; + parsedBody: VirtualMachine; }; }; /** * Contains response data for the listNext operation. */ -export type VirtualMachinesListNextResponse = LabVirtualMachineList & { +export type VirtualMachinesListNextResponse = VirtualMachineList & { /** * The underlying HTTP response. */ @@ -7276,7 +8407,7 @@ export type VirtualMachinesListNextResponse = LabVirtualMachineList & { /** * The response body as parsed JSON or XML */ - parsedBody: LabVirtualMachineList; + parsedBody: VirtualMachineList; }; }; @@ -7499,3 +8630,143 @@ export type VirtualNetworksListNextResponse = VirtualNetworkList & { parsedBody: VirtualNetworkList; }; }; + +/** + * Contains response data for the list operation. + */ +export type BastionHostsListResponse = BastionHostList & { + /** + * 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: BastionHostList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type BastionHostsGetResponse = BastionHost & { + /** + * 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: BastionHost; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type BastionHostsCreateOrUpdateResponse = BastionHost & { + /** + * 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: BastionHost; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type BastionHostsUpdateResponse = BastionHost & { + /** + * 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: BastionHost; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type BastionHostsBeginCreateOrUpdateResponse = BastionHost & { + /** + * 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: BastionHost; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type BastionHostsListNextResponse = BastionHostList & { + /** + * 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: BastionHostList; + }; +}; + +/** + * 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; + }; +}; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/labSecretsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/labSecretsMappers.ts new file mode 100644 index 000000000000..561923be0b4a --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/labSecretsMappers.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApplicableSchedule, + ApplicableScheduleProperties, + ArmTemplate, + ArmTemplateParameterProperties, + Artifact, + ArtifactInstallProperties, + ArtifactParameterProperties, + ArtifactSource, + ArtifactSourceFragment, + AzureEntityResource, + BaseResource, + BastionHost, + BastionHostFragment, + ComputeDataDisk, + ComputeVmInstanceViewStatus, + Cost, + CostThresholdProperties, + CustomImage, + CustomImageFragment, + DataDiskProperties, + DataDiskStorageTypeInfo, + DayDetails, + Disk, + DiskFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Event, + ExternalSubnet, + Formula, + FormulaFragment, + GalleryImage, + HourDetails, + ImageVersionProperties, + InboundNatRule, + Lab, + LabCost, + LabCostDetailsProperties, + LabFragment, + LabResourceCostProperties, + LabSecret, + LabSecretFragment, + LabSecretList, + NotificationChannel, + NotificationChannelFragment, + NotificationSettings, + ParametersValueFileInfo, + Policy, + PolicyFragment, + PolicySet, + Port, + ProxyResource, + Resource, + Schedule, + ScheduleCreationParameter, + ScheduleFragment, + ScheduleProperties, + Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, + ServiceRunner, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, + Subnet, + SubnetOverride, + SystemData, + Tags, + TrackedResource, + User, + UserFragment, + VirtualMachine, + VirtualMachineFragment, + VirtualNetwork, + VirtualNetworkFragment, + WeekDetails +} from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/labsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/labsMappers.ts index 9f61197f5851..a061d6906818 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/labsMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/labsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,129 +8,90 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExportResourceUsageParameters, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, GenerateUploadUriParameter, GenerateUploadUriResponse, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, ImportLabVirtualMachineRequest, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabList, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, + LabSecret, + LabSecretFragment, LabVhd, LabVhdList, - LabVirtualMachine, LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/mappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/mappers.ts index b59f71d75da2..cb839f66baec 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/mappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,99 +12,46 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const WeekDetails: msRest.CompositeMapper = { - serializedName: "WeekDetails", +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", type: { name: "Composite", - className: "WeekDetails", + className: "SystemData", modelProperties: { - weekdays: { - serializedName: "weekdays", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - time: { - serializedName: "time", - type: { - name: "String" - } - } - } - } -}; - -export const DayDetails: msRest.CompositeMapper = { - serializedName: "DayDetails", - type: { - name: "Composite", - className: "DayDetails", - modelProperties: { - time: { - serializedName: "time", + createdBy: { + serializedName: "createdBy", type: { name: "String" } - } - } - } -}; - -export const HourDetails: msRest.CompositeMapper = { - serializedName: "HourDetails", - type: { - name: "Composite", - className: "HourDetails", - modelProperties: { - minute: { - serializedName: "minute", - type: { - name: "Number" - } - } - } - } -}; - -export const NotificationSettings: msRest.CompositeMapper = { - serializedName: "NotificationSettings", - type: { - name: "Composite", - className: "NotificationSettings", - modelProperties: { - status: { - serializedName: "status", + }, + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - timeInMinutes: { - serializedName: "timeInMinutes", + createdAt: { + serializedName: "createdAt", type: { - name: "Number" + name: "DateTime" } }, - webhookUrl: { - serializedName: "webhookUrl", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - emailRecipient: { - serializedName: "emailRecipient", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - notificationLocale: { - serializedName: "notificationLocale", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "String" + name: "DateTime" } } } @@ -137,13 +84,18 @@ export const Resource: msRest.CompositeMapper = { type: { name: "String" } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, tags: { serializedName: "tags", type: { @@ -154,6 +106,13 @@ export const Resource: msRest.CompositeMapper = { } } } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } } } } @@ -165,78 +124,21 @@ export const Schedule: msRest.CompositeMapper = { name: "Composite", className: "Schedule", modelProperties: { - ...Resource.type.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", + ...TrackedResource.type.modelProperties, + properties: { + required: true, + serializedName: "properties", type: { name: "Composite", - className: "NotificationSettings" - } - }, - createdDate: { - readOnly: true, - serializedName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - targetResourceId: { - serializedName: "properties.targetResourceId", - type: { - name: "String" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" + className: "ScheduleProperties" } }, - uniqueIdentifier: { + systemData: { readOnly: true, - serializedName: "properties.uniqueIdentifier", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } @@ -250,43 +152,40 @@ export const ApplicableSchedule: msRest.CompositeMapper = { className: "ApplicableSchedule", modelProperties: { ...Resource.type.modelProperties, - labVmsShutdown: { - serializedName: "properties.labVmsShutdown", + properties: { + required: true, + serializedName: "properties", type: { name: "Composite", - className: "Schedule" + className: "ApplicableScheduleProperties" } }, - labVmsStartup: { - serializedName: "properties.labVmsStartup", + systemData: { + readOnly: true, + serializedName: "systemData", type: { name: "Composite", - className: "Schedule" + className: "SystemData" } } } } }; -export const WeekDetailsFragment: msRest.CompositeMapper = { - serializedName: "WeekDetailsFragment", +export const ArtifactParameterProperties: msRest.CompositeMapper = { + serializedName: "ArtifactParameterProperties", type: { name: "Composite", - className: "WeekDetailsFragment", + className: "ArtifactParameterProperties", modelProperties: { - weekdays: { - serializedName: "weekdays", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - time: { - serializedName: "time", + value: { + serializedName: "value", type: { name: "String" } @@ -295,91 +194,78 @@ export const WeekDetailsFragment: msRest.CompositeMapper = { } }; -export const DayDetailsFragment: msRest.CompositeMapper = { - serializedName: "DayDetailsFragment", +export const ArtifactInstallProperties: msRest.CompositeMapper = { + serializedName: "ArtifactInstallProperties", type: { name: "Composite", - className: "DayDetailsFragment", + className: "ArtifactInstallProperties", modelProperties: { - time: { - serializedName: "time", + artifactId: { + serializedName: "artifactId", type: { name: "String" } - } - } - } -}; - -export const HourDetailsFragment: msRest.CompositeMapper = { - serializedName: "HourDetailsFragment", - type: { - name: "Composite", - className: "HourDetailsFragment", - modelProperties: { - minute: { - serializedName: "minute", - type: { - name: "Number" - } - } - } - } -}; - -export const NotificationSettingsFragment: msRest.CompositeMapper = { - serializedName: "NotificationSettingsFragment", - type: { - name: "Composite", - className: "NotificationSettingsFragment", - modelProperties: { - status: { - serializedName: "status", + }, + artifactTitle: { + serializedName: "artifactTitle", type: { name: "String" } }, - timeInMinutes: { - serializedName: "timeInMinutes", + parameters: { + serializedName: "parameters", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArtifactParameterProperties" + } + } } }, - webhookUrl: { - serializedName: "webhookUrl", + status: { + serializedName: "status", type: { name: "String" } }, - emailRecipient: { - serializedName: "emailRecipient", + deploymentStatusMessage: { + serializedName: "deploymentStatusMessage", type: { name: "String" } }, - notificationLocale: { - serializedName: "notificationLocale", + vmExtensionStatusMessage: { + serializedName: "vmExtensionStatusMessage", type: { name: "String" } + }, + installTime: { + serializedName: "installTime", + type: { + name: "DateTime" + } } } } }; -export const UpdateResource: msRest.CompositeMapper = { - serializedName: "UpdateResource", +export const ApplyArtifactsRequest: msRest.CompositeMapper = { + serializedName: "ApplyArtifactsRequest", type: { name: "Composite", - className: "UpdateResource", + className: "ApplyArtifactsRequest", modelProperties: { - tags: { - serializedName: "tags", + artifacts: { + serializedName: "artifacts", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "ArtifactInstallProperties" } } } @@ -388,230 +274,40 @@ export const UpdateResource: msRest.CompositeMapper = { } }; -export const ScheduleFragment: msRest.CompositeMapper = { - serializedName: "ScheduleFragment", +export const ParametersValueFileInfo: msRest.CompositeMapper = { + serializedName: "ParametersValueFileInfo", type: { name: "Composite", - className: "ScheduleFragment", + className: "ParametersValueFileInfo", modelProperties: { - ...UpdateResource.type.modelProperties, - status: { - serializedName: "properties.status", + fileName: { + serializedName: "fileName", type: { name: "String" } }, - taskType: { - serializedName: "properties.taskType", + parametersValueInfo: { + serializedName: "parametersValueInfo", type: { - name: "String" + name: "Object" } - }, - weeklyRecurrence: { - serializedName: "properties.weeklyRecurrence", + } + } + } +}; + +export const ArmTemplate: msRest.CompositeMapper = { + serializedName: "ArmTemplate", + type: { + name: "Composite", + className: "ArmTemplate", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + readOnly: true, + serializedName: "properties.displayName", 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" - } - } - } - } -}; - -export const ApplicableScheduleFragment: msRest.CompositeMapper = { - serializedName: "ApplicableScheduleFragment", - type: { - name: "Composite", - className: "ApplicableScheduleFragment", - modelProperties: { - ...UpdateResource.type.modelProperties, - labVmsShutdown: { - serializedName: "properties.labVmsShutdown", - type: { - name: "Composite", - className: "ScheduleFragment" - } - }, - labVmsStartup: { - serializedName: "properties.labVmsStartup", - type: { - name: "Composite", - className: "ScheduleFragment" - } - } - } - } -}; - -export const ArtifactParameterProperties: msRest.CompositeMapper = { - serializedName: "ArtifactParameterProperties", - type: { - name: "Composite", - className: "ArtifactParameterProperties", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const ArtifactInstallProperties: msRest.CompositeMapper = { - serializedName: "ArtifactInstallProperties", - type: { - name: "Composite", - className: "ArtifactInstallProperties", - modelProperties: { - artifactId: { - serializedName: "artifactId", - type: { - name: "String" - } - }, - artifactTitle: { - serializedName: "artifactTitle", - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ArtifactParameterProperties" - } - } - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - deploymentStatusMessage: { - serializedName: "deploymentStatusMessage", - type: { - name: "String" - } - }, - vmExtensionStatusMessage: { - serializedName: "vmExtensionStatusMessage", - type: { - name: "String" - } - }, - installTime: { - serializedName: "installTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ApplyArtifactsRequest: msRest.CompositeMapper = { - serializedName: "ApplyArtifactsRequest", - type: { - name: "Composite", - className: "ApplyArtifactsRequest", - modelProperties: { - artifacts: { - serializedName: "artifacts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ArtifactInstallProperties" - } - } - } - } - } - } -}; - -export const ParametersValueFileInfo: msRest.CompositeMapper = { - serializedName: "ParametersValueFileInfo", - type: { - name: "Composite", - className: "ParametersValueFileInfo", - modelProperties: { - fileName: { - serializedName: "fileName", - type: { - name: "String" - } - }, - parametersValueInfo: { - serializedName: "parametersValueInfo", - type: { - name: "Object" - } - } - } - } -}; - -export const ArmTemplate: msRest.CompositeMapper = { - serializedName: "ArmTemplate", - type: { - name: "Composite", - className: "ArmTemplate", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", - type: { - name: "String" + name: "String" } }, description: { @@ -668,6 +364,14 @@ export const ArmTemplate: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -717,28 +421,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: { @@ -801,188 +483,60 @@ export const Artifact: msRest.CompositeMapper = { type: { name: "DateTime" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } }; -export const ArtifactDeploymentStatusProperties: msRest.CompositeMapper = { - serializedName: "ArtifactDeploymentStatusProperties", +export const ArtifactSource: msRest.CompositeMapper = { + serializedName: "ArtifactSource", type: { name: "Composite", - className: "ArtifactDeploymentStatusProperties", + className: "ArtifactSource", modelProperties: { - deploymentStatus: { - serializedName: "deploymentStatus", + ...TrackedResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", type: { name: "String" } }, - artifactsApplied: { - serializedName: "artifactsApplied", + uri: { + serializedName: "properties.uri", type: { - name: "Number" + name: "String" } }, - totalArtifacts: { - serializedName: "totalArtifacts", + sourceType: { + serializedName: "properties.sourceType", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const ArtifactDeploymentStatusPropertiesFragment: msRest.CompositeMapper = { - serializedName: "ArtifactDeploymentStatusPropertiesFragment", - type: { - name: "Composite", - className: "ArtifactDeploymentStatusPropertiesFragment", - modelProperties: { - deploymentStatus: { - serializedName: "deploymentStatus", + }, + folderPath: { + serializedName: "properties.folderPath", type: { name: "String" } }, - artifactsApplied: { - serializedName: "artifactsApplied", + armTemplateFolderPath: { + serializedName: "properties.armTemplateFolderPath", type: { - name: "Number" + name: "String" } }, - totalArtifacts: { - serializedName: "totalArtifacts", + branchRef: { + serializedName: "properties.branchRef", type: { - name: "Number" - } - } - } - } -}; - -export const ArtifactParameterPropertiesFragment: msRest.CompositeMapper = { - serializedName: "ArtifactParameterPropertiesFragment", - type: { - name: "Composite", - className: "ArtifactParameterPropertiesFragment", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const ArtifactInstallPropertiesFragment: msRest.CompositeMapper = { - serializedName: "ArtifactInstallPropertiesFragment", - type: { - name: "Composite", - className: "ArtifactInstallPropertiesFragment", - modelProperties: { - artifactId: { - serializedName: "artifactId", - type: { - name: "String" - } - }, - artifactTitle: { - serializedName: "artifactTitle", - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ArtifactParameterPropertiesFragment" - } - } - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - deploymentStatusMessage: { - serializedName: "deploymentStatusMessage", - type: { - name: "String" - } - }, - vmExtensionStatusMessage: { - serializedName: "vmExtensionStatusMessage", - type: { - name: "String" - } - }, - installTime: { - serializedName: "installTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ArtifactSource: msRest.CompositeMapper = { - serializedName: "ArtifactSource", - type: { - name: "Composite", - className: "ArtifactSource", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - uri: { - serializedName: "properties.uri", - type: { - name: "String" - } - }, - sourceType: { - serializedName: "properties.sourceType", - type: { - name: "String" - } - }, - folderPath: { - serializedName: "properties.folderPath", - type: { - name: "String" - } - }, - armTemplateFolderPath: { - serializedName: "properties.armTemplateFolderPath", - type: { - name: "String" - } - }, - branchRef: { - serializedName: "properties.branchRef", - type: { - name: "String" + name: "String" } }, securityToken: { @@ -1017,70 +571,51 @@ export const ArtifactSource: msRest.CompositeMapper = { type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } }; -export const ArtifactSourceFragment: msRest.CompositeMapper = { - serializedName: "ArtifactSourceFragment", +export const Tags: msRest.CompositeMapper = { + serializedName: "Tags", type: { name: "Composite", - className: "ArtifactSourceFragment", + className: "Tags", modelProperties: { - ...UpdateResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - uri: { - serializedName: "properties.uri", - type: { - name: "String" - } - }, - sourceType: { - serializedName: "properties.sourceType", - type: { - name: "String" - } - }, - folderPath: { - serializedName: "properties.folderPath", - type: { - name: "String" - } - }, - armTemplateFolderPath: { - serializedName: "properties.armTemplateFolderPath", - type: { - name: "String" - } - }, - branchRef: { - serializedName: "properties.branchRef", - type: { - name: "String" - } - }, - securityToken: { - serializedName: "properties.securityToken", - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; +export const ArtifactSourceFragment: msRest.CompositeMapper = { + serializedName: "ArtifactSourceFragment", + type: { + name: "Composite", + className: "ArtifactSourceFragment", + modelProperties: { + ...Tags.type.modelProperties + } + } +}; + export const AttachDiskProperties: msRest.CompositeMapper = { serializedName: "AttachDiskProperties", type: { @@ -1097,90 +632,60 @@ export const AttachDiskProperties: msRest.CompositeMapper = { } }; -export const AttachNewDataDiskOptions: msRest.CompositeMapper = { - serializedName: "AttachNewDataDiskOptions", +export const BastionHost: msRest.CompositeMapper = { + serializedName: "BastionHost", type: { name: "Composite", - className: "AttachNewDataDiskOptions", + className: "BastionHost", modelProperties: { - diskSizeGiB: { - serializedName: "diskSizeGiB", - type: { - name: "Number" - } - }, - diskName: { - serializedName: "diskName", + ...TrackedResource.type.modelProperties, + externalBastionHostId: { + readOnly: true, + serializedName: "properties.externalBastionHostId", type: { name: "String" } }, - diskType: { - serializedName: "diskType", + ipAddressId: { + readOnly: true, + serializedName: "properties.ipAddressId", type: { name: "String" } - } - } - } -}; - -export const AttachNewDataDiskOptionsFragment: msRest.CompositeMapper = { - serializedName: "AttachNewDataDiskOptionsFragment", - type: { - name: "Composite", - className: "AttachNewDataDiskOptionsFragment", - modelProperties: { - diskSizeGiB: { - serializedName: "diskSizeGiB", - type: { - name: "Number" - } }, - diskName: { - serializedName: "diskName", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - diskType: { - serializedName: "diskType", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", type: { name: "String" } - } - } - } -}; - -export const BulkCreationParameters: msRest.CompositeMapper = { - serializedName: "BulkCreationParameters", - type: { - name: "Composite", - className: "BulkCreationParameters", - modelProperties: { - instanceCount: { - serializedName: "instanceCount", + }, + systemData: { + readOnly: true, + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" } } } } }; -export const BulkCreationParametersFragment: msRest.CompositeMapper = { - serializedName: "BulkCreationParametersFragment", +export const BastionHostFragment: msRest.CompositeMapper = { + serializedName: "BastionHostFragment", type: { name: "Composite", - className: "BulkCreationParametersFragment", + className: "BastionHostFragment", modelProperties: { - instanceCount: { - serializedName: "instanceCount", - type: { - name: "Number" - } - } + ...Tags.type.modelProperties } } }; @@ -1219,60 +724,66 @@ export const ComputeDataDisk: msRest.CompositeMapper = { } }; -export const ComputeDataDiskFragment: msRest.CompositeMapper = { - serializedName: "ComputeDataDiskFragment", +export const ComputeVmInstanceViewStatus: msRest.CompositeMapper = { + serializedName: "ComputeVmInstanceViewStatus", type: { name: "Composite", - className: "ComputeDataDiskFragment", + className: "ComputeVmInstanceViewStatus", modelProperties: { - name: { - serializedName: "name", + code: { + serializedName: "code", type: { name: "String" } }, - diskUri: { - serializedName: "diskUri", + displayStatus: { + serializedName: "displayStatus", type: { name: "String" } }, - managedDiskId: { - serializedName: "managedDiskId", + message: { + serializedName: "message", type: { name: "String" } - }, - diskSizeGiB: { - serializedName: "diskSizeGiB", - type: { - name: "Number" - } } } } }; -export const ComputeVmInstanceViewStatus: msRest.CompositeMapper = { - serializedName: "ComputeVmInstanceViewStatus", - type: { +export const CostThresholdProperties: msRest.CompositeMapper = { + serializedName: "CostThresholdProperties", + type: { name: "Composite", - className: "ComputeVmInstanceViewStatus", + className: "CostThresholdProperties", modelProperties: { - code: { - serializedName: "code", + thresholdId: { + serializedName: "thresholdId", type: { name: "String" } }, - displayStatus: { - serializedName: "displayStatus", + thresholdValue: { + serializedName: "percentageThreshold.thresholdValue", + type: { + name: "Number" + } + }, + displayOnChart: { + serializedName: "displayOnChart", type: { name: "String" } }, - message: { - serializedName: "message", + sendNotificationWhenExceeded: { + serializedName: "sendNotificationWhenExceeded", + type: { + name: "String" + } + }, + notificationSent: { + serializedName: "notificationSent", type: { name: "String" } @@ -1281,26 +792,26 @@ export const ComputeVmInstanceViewStatus: msRest.CompositeMapper = { } }; -export const ComputeVmInstanceViewStatusFragment: msRest.CompositeMapper = { - serializedName: "ComputeVmInstanceViewStatusFragment", +export const LabCostDetailsProperties: msRest.CompositeMapper = { + serializedName: "LabCostDetailsProperties", type: { name: "Composite", - className: "ComputeVmInstanceViewStatusFragment", + className: "LabCostDetailsProperties", modelProperties: { - code: { - serializedName: "code", + date: { + serializedName: "date", type: { - name: "String" + name: "DateTime" } }, - displayStatus: { - serializedName: "displayStatus", + cost: { + serializedName: "cost", type: { - name: "String" + name: "Number" } }, - message: { - serializedName: "message", + costType: { + serializedName: "costType", type: { name: "String" } @@ -1309,225 +820,215 @@ export const ComputeVmInstanceViewStatusFragment: msRest.CompositeMapper = { } }; -export const ComputeVmProperties: msRest.CompositeMapper = { - serializedName: "ComputeVmProperties", +export const LabResourceCostProperties: msRest.CompositeMapper = { + serializedName: "LabResourceCostProperties", type: { name: "Composite", - className: "ComputeVmProperties", + className: "LabResourceCostProperties", modelProperties: { - statuses: { - serializedName: "statuses", + resourcename: { + serializedName: "resourcename", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeVmInstanceViewStatus" - } - } + name: "String" } }, - osType: { - serializedName: "osType", + resourceUId: { + serializedName: "resourceUId", type: { name: "String" } }, - vmSize: { - serializedName: "vmSize", + resourceCost: { + serializedName: "resourceCost", + type: { + name: "Number" + } + }, + resourceType: { + serializedName: "resourceType", type: { name: "String" } }, - networkInterfaceId: { - serializedName: "networkInterfaceId", + resourceOwner: { + serializedName: "resourceOwner", type: { name: "String" } }, - osDiskId: { - serializedName: "osDiskId", + resourcePricingTier: { + serializedName: "resourcePricingTier", type: { name: "String" } }, - dataDiskIds: { - serializedName: "dataDiskIds", + resourceStatus: { + serializedName: "resourceStatus", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - dataDisks: { - serializedName: "dataDisks", + resourceId: { + serializedName: "resourceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeDataDisk" - } - } + name: "String" + } + }, + externalResourceId: { + serializedName: "externalResourceId", + type: { + name: "String" } } } } }; -export const ComputeVmPropertiesFragment: msRest.CompositeMapper = { - serializedName: "ComputeVmPropertiesFragment", +export const Cost: msRest.CompositeMapper = { + serializedName: "Cost", type: { name: "Composite", - className: "ComputeVmPropertiesFragment", + className: "Cost", modelProperties: { - statuses: { - serializedName: "statuses", + ...Resource.type.modelProperties, + status: { + serializedName: "properties.targetCost.status", + type: { + name: "String" + } + }, + target: { + serializedName: "properties.targetCost.target", + type: { + name: "Number" + } + }, + costThresholds: { + serializedName: "properties.targetCost.costThresholds", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeVmInstanceViewStatusFragment" + className: "CostThresholdProperties" } } } }, - osType: { - serializedName: "osType", + cycleStartDateTime: { + serializedName: "properties.targetCost.cycleStartDateTime", type: { - name: "String" + name: "DateTime" } }, - vmSize: { - serializedName: "vmSize", + cycleEndDateTime: { + serializedName: "properties.targetCost.cycleEndDateTime", type: { - name: "String" + name: "DateTime" } }, - networkInterfaceId: { - serializedName: "networkInterfaceId", + cycleType: { + serializedName: "properties.targetCost.cycleType", type: { name: "String" } }, - osDiskId: { - serializedName: "osDiskId", + estimatedLabCost: { + serializedName: "properties.labCostSummary.estimatedLabCost", type: { - name: "String" + name: "Number" } }, - dataDiskIds: { - serializedName: "dataDiskIds", + labCostDetails: { + readOnly: true, + serializedName: "properties.labCostDetails", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "LabCostDetailsProperties" } } } }, - dataDisks: { - serializedName: "dataDisks", + resourceCosts: { + readOnly: true, + serializedName: "properties.resourceCosts", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeDataDiskFragment" + className: "LabResourceCostProperties" } } } - } - } - } -}; - -export const PercentageCostThresholdProperties: msRest.CompositeMapper = { - serializedName: "PercentageCostThresholdProperties", - type: { - name: "Composite", - className: "PercentageCostThresholdProperties", - modelProperties: { - thresholdValue: { - serializedName: "thresholdValue", + }, + currencyCode: { + serializedName: "properties.currencyCode", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const CostThresholdProperties: msRest.CompositeMapper = { - serializedName: "CostThresholdProperties", - type: { - name: "Composite", - className: "CostThresholdProperties", - modelProperties: { - thresholdId: { - serializedName: "thresholdId", + }, + startDateTime: { + serializedName: "properties.startDateTime", type: { - name: "String" + name: "DateTime" } }, - percentageThreshold: { - serializedName: "percentageThreshold", + endDateTime: { + serializedName: "properties.endDateTime", type: { - name: "Composite", - className: "PercentageCostThresholdProperties" + name: "DateTime" } }, - displayOnChart: { - serializedName: "displayOnChart", + createdDate: { + serializedName: "properties.createdDate", type: { - name: "String" + name: "DateTime" } }, - sendNotificationWhenExceeded: { - serializedName: "sendNotificationWhenExceeded", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - notificationSent: { - serializedName: "notificationSent", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } }; -export const WindowsOsInfo: msRest.CompositeMapper = { - serializedName: "WindowsOsInfo", +export const DataDiskStorageTypeInfo: msRest.CompositeMapper = { + serializedName: "DataDiskStorageTypeInfo", type: { name: "Composite", - className: "WindowsOsInfo", + className: "DataDiskStorageTypeInfo", modelProperties: { - windowsOsState: { - serializedName: "windowsOsState", + lun: { + serializedName: "lun", type: { name: "String" } - } - } - } -}; - -export const LinuxOsInfo: msRest.CompositeMapper = { - serializedName: "LinuxOsInfo", - type: { - name: "Composite", - className: "LinuxOsInfo", - modelProperties: { - linuxOsState: { - serializedName: "linuxOsState", + }, + storageType: { + serializedName: "storageType", type: { name: "String" } @@ -1536,138 +1037,52 @@ export const LinuxOsInfo: msRest.CompositeMapper = { } }; -export const CustomImagePropertiesFromVm: msRest.CompositeMapper = { - serializedName: "CustomImagePropertiesFromVm", +export const CustomImage: msRest.CompositeMapper = { + serializedName: "CustomImage", type: { name: "Composite", - className: "CustomImagePropertiesFromVm", + className: "CustomImage", modelProperties: { + ...TrackedResource.type.modelProperties, sourceVmId: { - serializedName: "sourceVmId", + serializedName: "properties.vm.sourceVmId", type: { name: "String" } }, - windowsOsInfo: { - serializedName: "windowsOsInfo", + windowsOsState: { + serializedName: "properties.vm.windowsOsInfo.windowsOsState", type: { - name: "Composite", - className: "WindowsOsInfo" + name: "String" } }, - linuxOsInfo: { - serializedName: "linuxOsInfo", + linuxOsState: { + serializedName: "properties.vm.linuxOsInfo.linuxOsState", type: { - name: "Composite", - className: "LinuxOsInfo" + name: "String" } - } - } - } -}; - -export const CustomImagePropertiesCustom: msRest.CompositeMapper = { - serializedName: "CustomImagePropertiesCustom", - type: { - name: "Composite", - className: "CustomImagePropertiesCustom", - modelProperties: { + }, imageName: { - serializedName: "imageName", + serializedName: "properties.vhd.imageName", type: { name: "String" } }, sysPrep: { - serializedName: "sysPrep", + serializedName: "properties.vhd.sysPrep", type: { name: "Boolean" } }, osType: { required: true, - serializedName: "osType", + serializedName: "properties.vhd.osType", type: { name: "String" } - } - } - } -}; - -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: { - name: "Composite", - className: "CustomImage", - modelProperties: { - ...Resource.type.modelProperties, - vm: { - serializedName: "properties.vm", - type: { - name: "Composite", - className: "CustomImagePropertiesFromVm" - } - }, - vhd: { - serializedName: "properties.vhd", - type: { - name: "Composite", - className: "CustomImagePropertiesCustom" - } - }, - description: { - serializedName: "properties.description", + }, + description: { + serializedName: "properties.description", type: { name: "String" } @@ -1709,171 +1124,50 @@ export const CustomImage: msRest.CompositeMapper = { } } }, - customImagePlan: { - serializedName: "properties.customImagePlan", - type: { - name: "Composite", - className: "CustomImagePropertiesFromPlan" - } - }, - isPlanAuthorized: { - serializedName: "properties.isPlanAuthorized", - type: { - name: "Boolean" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + customImageId: { + serializedName: "properties.customImagePlan.id", type: { name: "String" } }, - uniqueIdentifier: { - readOnly: true, - serializedName: "properties.uniqueIdentifier", - type: { - name: "String" - } - } - } - } -}; - -export const WindowsOsInfoFragment: msRest.CompositeMapper = { - serializedName: "WindowsOsInfoFragment", - type: { - name: "Composite", - className: "WindowsOsInfoFragment", - modelProperties: { - windowsOsState: { - serializedName: "windowsOsState", - type: { - name: "String" - } - } - } - } -}; - -export const LinuxOsInfoFragment: msRest.CompositeMapper = { - serializedName: "LinuxOsInfoFragment", - type: { - name: "Composite", - className: "LinuxOsInfoFragment", - modelProperties: { - linuxOsState: { - serializedName: "linuxOsState", - type: { - name: "String" - } - } - } - } -}; - -export const CustomImagePropertiesFromVmFragment: msRest.CompositeMapper = { - serializedName: "CustomImagePropertiesFromVmFragment", - type: { - name: "Composite", - className: "CustomImagePropertiesFromVmFragment", - modelProperties: { - sourceVmId: { - serializedName: "sourceVmId", + publisher: { + serializedName: "properties.customImagePlan.publisher", 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", - type: { - name: "Composite", - className: "CustomImagePropertiesCustomFragment", - modelProperties: { - imageName: { - serializedName: "imageName", + offer: { + serializedName: "properties.customImagePlan.offer", type: { name: "String" } }, - sysPrep: { - serializedName: "sysPrep", + isPlanAuthorized: { + serializedName: "properties.isPlanAuthorized", 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", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - publisher: { - serializedName: "publisher", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", type: { name: "String" } }, - offer: { - serializedName: "offer", + systemData: { + readOnly: true, + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } @@ -1886,70 +1180,7 @@ export const CustomImageFragment: msRest.CompositeMapper = { 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" - } - } + ...Tags.type.modelProperties } } }; @@ -1960,41 +1191,23 @@ export const DataDiskProperties: msRest.CompositeMapper = { name: "Composite", className: "DataDiskProperties", modelProperties: { - attachNewDataDiskOptions: { - serializedName: "attachNewDataDiskOptions", + diskSizeGiB: { + serializedName: "attachNewDataDiskOptions.diskSizeGiB", type: { - name: "Composite", - className: "AttachNewDataDiskOptions" + name: "Number" } }, - existingLabDiskId: { - serializedName: "existingLabDiskId", + diskName: { + serializedName: "attachNewDataDiskOptions.diskName", type: { name: "String" } }, - hostCaching: { - serializedName: "hostCaching", + diskType: { + serializedName: "attachNewDataDiskOptions.diskType", 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", @@ -2050,7 +1263,7 @@ export const Disk: msRest.CompositeMapper = { name: "Composite", className: "Disk", modelProperties: { - ...Resource.type.modelProperties, + ...TrackedResource.type.modelProperties, diskType: { serializedName: "properties.diskType", type: { @@ -2081,6 +1294,12 @@ export const Disk: msRest.CompositeMapper = { name: "String" } }, + storageAccountId: { + serializedName: "properties.storageAccountId", + type: { + name: "String" + } + }, createdDate: { readOnly: true, serializedName: "properties.createdDate", @@ -2113,6 +1332,14 @@ export const Disk: msRest.CompositeMapper = { type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -2124,67 +1351,26 @@ export const DiskFragment: msRest.CompositeMapper = { 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" - } - } + ...Tags.type.modelProperties } } }; -export const EnvironmentDeploymentProperties: msRest.CompositeMapper = { - serializedName: "EnvironmentDeploymentProperties", +export const Environment: msRest.CompositeMapper = { + serializedName: "Environment", type: { name: "Composite", - className: "EnvironmentDeploymentProperties", + className: "Environment", modelProperties: { + ...TrackedResource.type.modelProperties, armTemplateId: { - serializedName: "armTemplateId", + serializedName: "properties.deploymentProperties.armTemplateId", type: { name: "String" } }, parameters: { - serializedName: "parameters", + serializedName: "properties.deploymentProperties.parameters", type: { name: "Sequence", element: { @@ -2194,24 +1380,6 @@ export const EnvironmentDeploymentProperties: msRest.CompositeMapper = { } } } - } - } - } -}; - -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", @@ -2246,59 +1414,26 @@ export const DtlEnvironment: msRest.CompositeMapper = { 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", + systemData: { + readOnly: true, + serializedName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ArmTemplateParameterPropertiesFragment" - } - } + name: "Composite", + className: "SystemData" } } } } }; -export const DtlEnvironmentFragment: msRest.CompositeMapper = { - serializedName: "DtlEnvironmentFragment", +export const EnvironmentFragment: msRest.CompositeMapper = { + serializedName: "EnvironmentFragment", type: { name: "Composite", - className: "DtlEnvironmentFragment", + className: "EnvironmentFragment", modelProperties: { - ...UpdateResource.type.modelProperties, - deploymentProperties: { - serializedName: "properties.deploymentProperties", - type: { - name: "Composite", - className: "EnvironmentDeploymentPropertiesFragment" - } - }, - armTemplateDisplayName: { - serializedName: "properties.armTemplateDisplayName", - type: { - name: "String" - } - } + ...Tags.type.modelProperties } } }; @@ -2447,22 +1582,6 @@ export const Event: msRest.CompositeMapper = { } }; -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: { @@ -2507,68 +1626,6 @@ export const ExternalSubnet: msRest.CompositeMapper = { } }; -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: { @@ -2597,147 +1654,114 @@ export const InboundNatRule: msRest.CompositeMapper = { } }; -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", +export const ScheduleCreationParameter: msRest.CompositeMapper = { + serializedName: "ScheduleCreationParameter", type: { name: "Composite", - className: "NetworkInterfaceProperties", + className: "ScheduleCreationParameter", modelProperties: { - virtualNetworkId: { - serializedName: "virtualNetworkId", + status: { + serializedName: "properties.status", + defaultValue: 'Disabled', type: { name: "String" } }, - subnetId: { - serializedName: "subnetId", + taskType: { + serializedName: "properties.taskType", type: { name: "String" } }, - publicIpAddressId: { - serializedName: "publicIpAddressId", + weekdays: { + serializedName: "properties.weeklyRecurrence.weekdays", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - publicIpAddress: { - serializedName: "publicIpAddress", + time: { + serializedName: "properties.weeklyRecurrence.time", type: { name: "String" } }, - privateIpAddress: { - serializedName: "privateIpAddress", + time1: { + serializedName: "properties.dailyRecurrence.time", type: { name: "String" } }, - dnsName: { - serializedName: "dnsName", + minute: { + serializedName: "properties.hourlyRecurrence.minute", type: { - name: "String" + name: "Number" } }, - rdpAuthority: { - serializedName: "rdpAuthority", + timeZoneId: { + serializedName: "properties.timeZoneId", type: { name: "String" } }, - sshAuthority: { - serializedName: "sshAuthority", + status1: { + serializedName: "properties.notificationSettings.status", + defaultValue: 'Disabled', 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", + timeInMinutes: { + serializedName: "properties.notificationSettings.timeInMinutes", type: { - name: "String" + name: "Number" } }, - taskType: { - serializedName: "properties.taskType", + webhookUrl: { + serializedName: "properties.notificationSettings.webhookUrl", type: { name: "String" } }, - weeklyRecurrence: { - serializedName: "properties.weeklyRecurrence", + emailRecipient: { + serializedName: "properties.notificationSettings.emailRecipient", type: { - name: "Composite", - className: "WeekDetails" + name: "String" } }, - dailyRecurrence: { - serializedName: "properties.dailyRecurrence", + notificationLocale: { + serializedName: "properties.notificationSettings.notificationLocale", type: { - name: "Composite", - className: "DayDetails" + name: "String" } }, - hourlyRecurrence: { - serializedName: "properties.hourlyRecurrence", + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", type: { - name: "Composite", - className: "HourDetails" + name: "DateTime" } }, - timeZoneId: { - serializedName: "properties.timeZoneId", + targetResourceId: { + serializedName: "properties.targetResourceId", type: { name: "String" } }, - notificationSettings: { - serializedName: "properties.notificationSettings", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { - name: "Composite", - className: "NotificationSettings" + name: "String" } }, - targetResourceId: { - serializedName: "properties.targetResourceId", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", type: { name: "String" } @@ -2775,11 +1799,10 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { name: "Composite", className: "LabVirtualMachineCreationParameter", modelProperties: { - bulkCreationParameters: { - serializedName: "properties.bulkCreationParameters", + instanceCount: { + serializedName: "properties.bulkCreationParameters.instanceCount", type: { - name: "Composite", - className: "BulkCreationParameters" + name: "Number" } }, notes: { @@ -2790,6 +1813,7 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { }, ownerObjectId: { serializedName: "properties.ownerObjectId", + defaultValue: 'dynamicValue', type: { name: "String" } @@ -2801,12 +1825,14 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { } }, createdByUserId: { + readOnly: true, serializedName: "properties.createdByUserId", type: { name: "String" } }, createdByUser: { + readOnly: true, serializedName: "properties.createdByUser", type: { name: "String" @@ -2819,6 +1845,7 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { } }, computeId: { + readOnly: true, serializedName: "properties.computeId", type: { name: "String" @@ -2830,25 +1857,44 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { name: "String" } }, - osType: { - serializedName: "properties.osType", + galleryImageVersionId: { + serializedName: "properties.galleryImageVersionId", type: { name: "String" } }, - size: { - serializedName: "properties.size", + sharedImageId: { + serializedName: "properties.sharedImageId", type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + sharedImageVersion: { + serializedName: "properties.sharedImageVersion", type: { name: "String" } }, - password: { + osType: { + readOnly: true, + 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" @@ -2867,6 +1913,7 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { } }, fqdn: { + readOnly: true, serializedName: "properties.fqdn", type: { name: "String" @@ -2886,6 +1933,7 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { }, disallowPublicIpAddress: { serializedName: "properties.disallowPublicIpAddress", + defaultValue: false, type: { name: "Boolean" } @@ -2902,427 +1950,382 @@ export const LabVirtualMachineCreationParameter: msRest.CompositeMapper = { } } }, - artifactDeploymentStatus: { - serializedName: "properties.artifactDeploymentStatus", + deploymentStatus: { + serializedName: "properties.artifactDeploymentStatus.deploymentStatus", type: { - name: "Composite", - className: "ArtifactDeploymentStatusProperties" + name: "String" } }, - galleryImageReference: { - serializedName: "properties.galleryImageReference", + artifactsApplied: { + serializedName: "properties.artifactDeploymentStatus.artifactsApplied", type: { - name: "Composite", - className: "GalleryImageReference" + name: "Number" } }, - planId: { - serializedName: "properties.planId", + totalArtifacts: { + serializedName: "properties.artifactDeploymentStatus.totalArtifacts", type: { - name: "String" + name: "Number" } }, - networkInterface: { - serializedName: "properties.networkInterface", + offer: { + serializedName: "properties.galleryImageReference.offer", type: { - name: "Composite", - className: "NetworkInterfaceProperties" + name: "String" } }, - expirationDate: { - serializedName: "properties.expirationDate", + publisher: { + serializedName: "properties.galleryImageReference.publisher", type: { - name: "DateTime" + name: "String" } }, - allowClaim: { - serializedName: "properties.allowClaim", + sku: { + serializedName: "properties.galleryImageReference.sku", type: { - name: "Boolean" + name: "String" } }, - storageType: { - serializedName: "properties.storageType", + osType1: { + serializedName: "properties.galleryImageReference.osType", type: { name: "String" } }, - virtualMachineCreationSource: { - serializedName: "properties.virtualMachineCreationSource", + version: { + serializedName: "properties.galleryImageReference.version", type: { name: "String" } }, - environmentId: { - serializedName: "properties.environmentId", + planId: { + serializedName: "properties.planId", type: { name: "String" } }, - dataDiskParameters: { - serializedName: "properties.dataDiskParameters", + osDiskSizeGb: { + serializedName: "properties.osDiskSizeGb", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDiskProperties" - } - } + name: "Number" } }, - scheduleParameters: { - serializedName: "properties.scheduleParameters", + statuses: { + serializedName: "properties.computeVm.statuses", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ScheduleCreationParameter" + className: "ComputeVmInstanceViewStatus" } } } }, - lastKnownPowerState: { - serializedName: "properties.lastKnownPowerState", + osType2: { + serializedName: "properties.computeVm.osType", type: { name: "String" } }, - name: { - serializedName: "name", + vmSize: { + serializedName: "properties.computeVm.vmSize", type: { name: "String" } }, - location: { - serializedName: "location", + networkInterfaceId: { + serializedName: "properties.computeVm.networkInterfaceId", type: { name: "String" } }, - tags: { - serializedName: "tags", + osDiskId: { + serializedName: "properties.computeVm.osDiskId", type: { - name: "Dictionary", - value: { + name: "String" + } + }, + dataDiskIds: { + serializedName: "properties.computeVm.dataDiskIds", + type: { + name: "Sequence", + element: { type: { name: "String" } } } - } - } - } -}; - -export const FormulaPropertiesFromVm: msRest.CompositeMapper = { - serializedName: "FormulaPropertiesFromVm", - type: { - name: "Composite", - className: "FormulaPropertiesFromVm", - modelProperties: { - labVmId: { - serializedName: "labVmId", + }, + dataDisks: { + serializedName: "properties.computeVm.dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeDataDisk" + } + } + } + }, + virtualNetworkId: { + serializedName: "properties.networkInterface.virtualNetworkId", type: { name: "String" } - } - } - } -}; - -export const Formula: msRest.CompositeMapper = { - serializedName: "Formula", - type: { - name: "Composite", - className: "Formula", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + }, + subnetId: { + serializedName: "properties.networkInterface.subnetId", type: { name: "String" } }, - author: { - serializedName: "properties.author", + publicIpAddressId: { + serializedName: "properties.networkInterface.publicIpAddressId", type: { name: "String" } }, - osType: { - serializedName: "properties.osType", + publicIpAddress: { + serializedName: "properties.networkInterface.publicIpAddress", type: { name: "String" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", + privateIpAddress: { + serializedName: "properties.networkInterface.privateIpAddress", type: { - name: "DateTime" + name: "String" } }, - formulaContent: { - serializedName: "properties.formulaContent", + dnsName: { + serializedName: "properties.networkInterface.dnsName", type: { - name: "Composite", - className: "LabVirtualMachineCreationParameter" + name: "String" } }, - vm: { - serializedName: "properties.vm", + rdpAuthority: { + serializedName: "properties.networkInterface.rdpAuthority", type: { - name: "Composite", - className: "FormulaPropertiesFromVm" + name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + sshAuthority: { + serializedName: "properties.networkInterface.sshAuthority", type: { name: "String" } }, - uniqueIdentifier: { + inboundNatRules: { + serializedName: "properties.networkInterface.sharedPublicIpAddressConfiguration.inboundNatRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundNatRule" + } + } + } + }, + id: { readOnly: true, - serializedName: "properties.uniqueIdentifier", + serializedName: "properties.applicableSchedule.id", type: { name: "String" } - } - } - } -}; - -export const GalleryImageReferenceFragment: msRest.CompositeMapper = { - serializedName: "GalleryImageReferenceFragment", - type: { - name: "Composite", - className: "GalleryImageReferenceFragment", - modelProperties: { - offer: { - serializedName: "offer", + }, + applicableScheduleName: { + readOnly: true, + serializedName: "properties.applicableSchedule.name", type: { name: "String" } }, - publisher: { - serializedName: "publisher", + type: { + readOnly: true, + serializedName: "properties.applicableSchedule.type", type: { name: "String" } }, - sku: { - serializedName: "sku", + id1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.id", type: { name: "String" } }, - osType: { - serializedName: "osType", + name1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.name", type: { name: "String" } }, - version: { - serializedName: "version", + type1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.type", type: { name: "String" } - } - } - } -}; - -export const InboundNatRuleFragment: msRest.CompositeMapper = { - serializedName: "InboundNatRuleFragment", - type: { - name: "Composite", - className: "InboundNatRuleFragment", - modelProperties: { - transportProtocol: { - serializedName: "transportProtocol", + }, + scheduleTags: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + scheduleLocation: { + required: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.location", type: { name: "String" } }, - frontendPort: { - serializedName: "frontendPort", + status: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.status", + defaultValue: 'Disabled', type: { - name: "Number" + name: "String" } }, - backendPort: { - serializedName: "backendPort", + taskType: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.taskType", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const SharedPublicIpAddressConfigurationFragment: msRest.CompositeMapper = { - serializedName: "SharedPublicIpAddressConfigurationFragment", - type: { - name: "Composite", - className: "SharedPublicIpAddressConfigurationFragment", - modelProperties: { - inboundNatRules: { - serializedName: "inboundNatRules", + }, + weekdays: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.weeklyRecurrence.weekdays", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "InboundNatRuleFragment" + name: "String" } } } - } - } - } -}; - -export const NetworkInterfacePropertiesFragment: msRest.CompositeMapper = { - serializedName: "NetworkInterfacePropertiesFragment", - type: { - name: "Composite", - className: "NetworkInterfacePropertiesFragment", - modelProperties: { - virtualNetworkId: { - serializedName: "virtualNetworkId", + }, + time: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.weeklyRecurrence.time", type: { name: "String" } }, - subnetId: { - serializedName: "subnetId", + time1: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.dailyRecurrence.time", type: { name: "String" } }, - publicIpAddressId: { - serializedName: "publicIpAddressId", + minute: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.hourlyRecurrence.minute", type: { - name: "String" + name: "Number" } }, - publicIpAddress: { - serializedName: "publicIpAddress", + timeZoneId: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.timeZoneId", type: { name: "String" } }, - privateIpAddress: { - serializedName: "privateIpAddress", + status1: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.status", + defaultValue: 'Disabled', type: { name: "String" } }, - dnsName: { - serializedName: "dnsName", + timeInMinutes: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.timeInMinutes", type: { - name: "String" + name: "Number" } }, - rdpAuthority: { - serializedName: "rdpAuthority", + webhookUrl: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.webhookUrl", type: { name: "String" } }, - sshAuthority: { - serializedName: "sshAuthority", + emailRecipient: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.emailRecipient", type: { name: "String" } }, - sharedPublicIpAddressConfiguration: { - 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", + notificationLocale: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.notificationLocale", type: { name: "String" } }, - weeklyRecurrence: { - serializedName: "properties.weeklyRecurrence", + createdDate1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.createdDate", type: { - name: "Composite", - className: "WeekDetailsFragment" + name: "DateTime" } }, - dailyRecurrence: { - serializedName: "properties.dailyRecurrence", + targetResourceId: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.targetResourceId", type: { - name: "Composite", - className: "DayDetailsFragment" + name: "String" } }, - hourlyRecurrence: { - serializedName: "properties.hourlyRecurrence", + provisioningState: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.provisioningState", type: { - name: "Composite", - className: "HourDetailsFragment" + name: "String" } }, - timeZoneId: { - serializedName: "properties.timeZoneId", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.uniqueIdentifier", type: { name: "String" } }, - notificationSettings: { - serializedName: "properties.notificationSettings", + systemData: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.systemData", type: { name: "Composite", - className: "NotificationSettingsFragment" + className: "SystemData" } }, - targetResourceId: { - serializedName: "properties.targetResourceId", + id2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.id", type: { name: "String" } }, - name: { - serializedName: "name", + name2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.name", type: { name: "String" } }, - location: { - serializedName: "location", + type2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.type", type: { name: "String" } }, - tags: { - serializedName: "tags", + tags1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.tags", type: { name: "Dictionary", value: { @@ -3331,169 +2334,134 @@ export const ScheduleCreationParameterFragment: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper = { - serializedName: "LabVirtualMachineCreationParameterFragment", - type: { - name: "Composite", - className: "LabVirtualMachineCreationParameterFragment", - modelProperties: { - bulkCreationParameters: { - serializedName: "properties.bulkCreationParameters", - type: { - name: "Composite", - className: "BulkCreationParametersFragment" - } }, - notes: { - serializedName: "properties.notes", + location1: { + required: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.location", type: { name: "String" } }, - ownerObjectId: { - serializedName: "properties.ownerObjectId", + status2: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.status", + defaultValue: 'Disabled', type: { name: "String" } }, - ownerUserPrincipalName: { - serializedName: "properties.ownerUserPrincipalName", + taskType1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.taskType", type: { name: "String" } }, - createdByUserId: { - serializedName: "properties.createdByUserId", + weekdays1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.weeklyRecurrence.weekdays", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - createdByUser: { - serializedName: "properties.createdByUser", + time2: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.weeklyRecurrence.time", type: { name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", + time3: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.dailyRecurrence.time", type: { - name: "DateTime" + name: "String" } }, - computeId: { - serializedName: "properties.computeId", + minute1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.hourlyRecurrence.minute", type: { - name: "String" + name: "Number" } }, - customImageId: { - serializedName: "properties.customImageId", + timeZoneId1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.timeZoneId", type: { name: "String" } }, - osType: { - serializedName: "properties.osType", + status3: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.status", + defaultValue: 'Disabled', type: { name: "String" } }, - size: { - serializedName: "properties.size", + timeInMinutes1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.timeInMinutes", type: { - name: "String" + name: "Number" } }, - userName: { - serializedName: "properties.userName", + webhookUrl1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.webhookUrl", type: { name: "String" } }, - password: { - serializedName: "properties.password", + emailRecipient1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.emailRecipient", type: { name: "String" } }, - sshKey: { - serializedName: "properties.sshKey", + notificationLocale1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.notificationLocale", type: { name: "String" } }, - isAuthenticationWithSshKey: { - serializedName: "properties.isAuthenticationWithSshKey", + createdDate2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.createdDate", type: { - name: "Boolean" + name: "DateTime" } }, - fqdn: { - serializedName: "properties.fqdn", + targetResourceId1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.targetResourceId", type: { name: "String" } }, - labSubnetName: { - serializedName: "properties.labSubnetName", + provisioningState1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.provisioningState", type: { name: "String" } }, - labVirtualNetworkId: { - serializedName: "properties.labVirtualNetworkId", + uniqueIdentifier1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.uniqueIdentifier", type: { name: "String" } }, - disallowPublicIpAddress: { - serializedName: "properties.disallowPublicIpAddress", - type: { - name: "Boolean" - } - }, - artifacts: { - serializedName: "properties.artifacts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ArtifactInstallPropertiesFragment" - } - } - } - }, - artifactDeploymentStatus: { - serializedName: "properties.artifactDeploymentStatus", - type: { - name: "Composite", - className: "ArtifactDeploymentStatusPropertiesFragment" - } - }, - galleryImageReference: { - serializedName: "properties.galleryImageReference", + systemData1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.systemData", type: { name: "Composite", - className: "GalleryImageReferenceFragment" - } - }, - planId: { - serializedName: "properties.planId", - type: { - name: "String" + className: "SystemData" } }, - networkInterface: { - serializedName: "properties.networkInterface", + systemData2: { + readOnly: true, + serializedName: "properties.applicableSchedule.systemData", type: { name: "Composite", - className: "NetworkInterfacePropertiesFragment" + className: "SystemData" } }, expirationDate: { @@ -3504,17 +2472,20 @@ export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper }, allowClaim: { serializedName: "properties.allowClaim", + defaultValue: false, type: { name: "Boolean" } }, storageType: { serializedName: "properties.storageType", + defaultValue: 'Standard', type: { name: "String" } }, virtualMachineCreationSource: { + readOnly: true, serializedName: "properties.virtualMachineCreationSource", type: { name: "String" @@ -3533,7 +2504,7 @@ export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper element: { type: { name: "Composite", - className: "DataDiskPropertiesFragment" + className: "DataDiskProperties" } } } @@ -3545,17 +2516,39 @@ export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper element: { type: { name: "Composite", - className: "ScheduleCreationParameterFragment" + className: "ScheduleCreationParameter" } } } }, lastKnownPowerState: { + readOnly: true, serializedName: "properties.lastKnownPowerState", type: { name: "String" } }, + canApplyArtifacts: { + readOnly: true, + serializedName: "properties.canApplyArtifacts", + type: { + name: "Boolean" + } + }, + provisioningState2: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier2: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + }, name: { serializedName: "name", type: { @@ -3583,29 +2576,13 @@ export const LabVirtualMachineCreationParameterFragment: msRest.CompositeMapper } }; -export const FormulaPropertiesFromVmFragment: msRest.CompositeMapper = { - serializedName: "FormulaPropertiesFromVmFragment", - type: { - name: "Composite", - className: "FormulaPropertiesFromVmFragment", - modelProperties: { - labVmId: { - serializedName: "labVmId", - type: { - name: "String" - } - } - } - } -}; - -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, + ...TrackedResource.type.modelProperties, description: { serializedName: "properties.description", type: { @@ -3613,6 +2590,7 @@ export const FormulaFragment: msRest.CompositeMapper = { } }, author: { + readOnly: true, serializedName: "properties.author", type: { name: "String" @@ -3624,361 +2602,262 @@ export const FormulaFragment: msRest.CompositeMapper = { name: "String" } }, - formulaContent: { - serializedName: "properties.formulaContent", + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", type: { - name: "Composite", - className: "LabVirtualMachineCreationParameterFragment" + name: "DateTime" } }, - vm: { - serializedName: "properties.vm", + instanceCount: { + serializedName: "properties.formulaContent.properties.bulkCreationParameters.instanceCount", type: { - name: "Composite", - className: "FormulaPropertiesFromVmFragment" + name: "Number" } - } - } - } -}; - -export const GalleryImage: msRest.CompositeMapper = { - serializedName: "GalleryImage", - type: { - name: "Composite", - className: "GalleryImage", - modelProperties: { - ...Resource.type.modelProperties, - author: { - serializedName: "properties.author", + }, + notes: { + serializedName: "properties.formulaContent.properties.notes", type: { name: "String" } }, - createdDate: { + ownerObjectId: { + serializedName: "properties.formulaContent.properties.ownerObjectId", + defaultValue: 'dynamicValue', + type: { + name: "String" + } + }, + ownerUserPrincipalName: { + serializedName: "properties.formulaContent.properties.ownerUserPrincipalName", + type: { + name: "String" + } + }, + createdByUserId: { readOnly: true, - serializedName: "properties.createdDate", + serializedName: "properties.formulaContent.properties.createdByUserId", type: { - name: "DateTime" + name: "String" } }, - description: { - serializedName: "properties.description", + createdByUser: { + readOnly: true, + serializedName: "properties.formulaContent.properties.createdByUser", type: { name: "String" } }, - imageReference: { - serializedName: "properties.imageReference", + createdDate: { + serializedName: "properties.formulaContent.properties.createdDate", type: { - name: "Composite", - className: "GalleryImageReference" + name: "DateTime" } }, - icon: { - serializedName: "properties.icon", + computeId: { + readOnly: true, + serializedName: "properties.formulaContent.properties.computeId", type: { name: "String" } }, - enabled: { - serializedName: "properties.enabled", + customImageId: { + serializedName: "properties.formulaContent.properties.customImageId", type: { - name: "Boolean" + name: "String" } }, - planId: { - serializedName: "properties.planId", + galleryImageVersionId: { + serializedName: "properties.formulaContent.properties.galleryImageVersionId", type: { name: "String" } }, - isPlanAuthorized: { - serializedName: "properties.isPlanAuthorized", + sharedImageId: { + serializedName: "properties.formulaContent.properties.sharedImageId", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const ParameterInfo: msRest.CompositeMapper = { - serializedName: "ParameterInfo", - type: { - name: "Composite", - className: "ParameterInfo", - modelProperties: { - name: { - serializedName: "name", + }, + sharedImageVersion: { + serializedName: "properties.formulaContent.properties.sharedImageVersion", type: { name: "String" } }, - value: { - serializedName: "value", + osType1: { + readOnly: true, + serializedName: "properties.formulaContent.properties.osType", type: { name: "String" } - } - } - } -}; - -export const GenerateArmTemplateRequest: msRest.CompositeMapper = { - serializedName: "GenerateArmTemplateRequest", - type: { - name: "Composite", - className: "GenerateArmTemplateRequest", - modelProperties: { - virtualMachineName: { - serializedName: "virtualMachineName", - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ParameterInfo" - } - } - } }, - location: { - serializedName: "location", + size: { + serializedName: "properties.formulaContent.properties.size", type: { name: "String" } }, - fileUploadOptions: { - serializedName: "fileUploadOptions", + userName: { + serializedName: "properties.formulaContent.properties.userName", type: { name: "String" } - } - } - } -}; - -export const GenerateUploadUriParameter: msRest.CompositeMapper = { - serializedName: "GenerateUploadUriParameter", - type: { - name: "Composite", - className: "GenerateUploadUriParameter", - modelProperties: { - blobName: { - serializedName: "blobName", + }, + password: { + serializedName: "properties.formulaContent.properties.password", type: { name: "String" } - } - } - } -}; - -export const GenerateUploadUriResponse: msRest.CompositeMapper = { - serializedName: "GenerateUploadUriResponse", - type: { - name: "Composite", - className: "GenerateUploadUriResponse", - modelProperties: { - uploadUri: { - serializedName: "uploadUri", + }, + sshKey: { + serializedName: "properties.formulaContent.properties.sshKey", type: { name: "String" } - } - } - } -}; - -export const IdentityProperties: msRest.CompositeMapper = { - serializedName: "IdentityProperties", - type: { - name: "Composite", - className: "IdentityProperties", - modelProperties: { - type: { - serializedName: "type", + }, + isAuthenticationWithSshKey: { + serializedName: "properties.formulaContent.properties.isAuthenticationWithSshKey", type: { - name: "String" + name: "Boolean" } }, - principalId: { - serializedName: "principalId", + fqdn: { + readOnly: true, + serializedName: "properties.formulaContent.properties.fqdn", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + labSubnetName: { + serializedName: "properties.formulaContent.properties.labSubnetName", type: { name: "String" } }, - clientSecretUrl: { - serializedName: "clientSecretUrl", + labVirtualNetworkId: { + serializedName: "properties.formulaContent.properties.labVirtualNetworkId", type: { name: "String" } - } - } - } -}; - -export const ImportLabVirtualMachineRequest: msRest.CompositeMapper = { - serializedName: "ImportLabVirtualMachineRequest", - type: { - name: "Composite", - className: "ImportLabVirtualMachineRequest", - modelProperties: { - sourceVirtualMachineResourceId: { - serializedName: "sourceVirtualMachineResourceId", + }, + disallowPublicIpAddress: { + serializedName: "properties.formulaContent.properties.disallowPublicIpAddress", + defaultValue: false, type: { - name: "String" + name: "Boolean" } }, - destinationVirtualMachineName: { - serializedName: "destinationVirtualMachineName", + artifacts: { + serializedName: "properties.formulaContent.properties.artifacts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArtifactInstallProperties" + } + } } - } - } - } -}; - -export const LabAnnouncementProperties: msRest.CompositeMapper = { - serializedName: "LabAnnouncementProperties", - type: { - name: "Composite", - className: "LabAnnouncementProperties", - modelProperties: { - title: { - serializedName: "title", + }, + deploymentStatus: { + serializedName: "properties.formulaContent.properties.artifactDeploymentStatus.deploymentStatus", type: { name: "String" } }, - markdown: { - serializedName: "markdown", + artifactsApplied: { + serializedName: "properties.formulaContent.properties.artifactDeploymentStatus.artifactsApplied", type: { - name: "String" + name: "Number" } }, - enabled: { - serializedName: "enabled", + totalArtifacts: { + serializedName: "properties.formulaContent.properties.artifactDeploymentStatus.totalArtifacts", type: { - name: "String" + name: "Number" } }, - expirationDate: { - serializedName: "expirationDate", + offer: { + serializedName: "properties.formulaContent.properties.galleryImageReference.offer", type: { - name: "DateTime" + name: "String" } }, - expired: { - serializedName: "expired", + publisher: { + serializedName: "properties.formulaContent.properties.galleryImageReference.publisher", type: { - name: "Boolean" + name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "provisioningState", + sku: { + serializedName: "properties.formulaContent.properties.galleryImageReference.sku", type: { name: "String" } }, - uniqueIdentifier: { - readOnly: true, - serializedName: "uniqueIdentifier", + osType2: { + serializedName: "properties.formulaContent.properties.galleryImageReference.osType", type: { name: "String" } - } - } - } -}; - -export const LabSupportProperties: msRest.CompositeMapper = { - serializedName: "LabSupportProperties", - type: { - name: "Composite", - className: "LabSupportProperties", - modelProperties: { - enabled: { - serializedName: "enabled", + }, + version: { + serializedName: "properties.formulaContent.properties.galleryImageReference.version", type: { name: "String" } }, - markdown: { - serializedName: "markdown", + planId: { + serializedName: "properties.formulaContent.properties.planId", type: { name: "String" } - } - } - } -}; - -export const Lab: msRest.CompositeMapper = { - serializedName: "Lab", - type: { - name: "Composite", - className: "Lab", - modelProperties: { - ...Resource.type.modelProperties, - defaultStorageAccount: { - readOnly: true, - serializedName: "properties.defaultStorageAccount", + }, + osDiskSizeGb: { + serializedName: "properties.formulaContent.properties.osDiskSizeGb", type: { - name: "String" + name: "Number" } }, - defaultPremiumStorageAccount: { - readOnly: true, - serializedName: "properties.defaultPremiumStorageAccount", + statuses: { + serializedName: "properties.formulaContent.properties.computeVm.statuses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeVmInstanceViewStatus" + } + } } }, - artifactsStorageAccount: { - readOnly: true, - serializedName: "properties.artifactsStorageAccount", + osType3: { + serializedName: "properties.formulaContent.properties.computeVm.osType", type: { name: "String" } }, - premiumDataDiskStorageAccount: { - readOnly: true, - serializedName: "properties.premiumDataDiskStorageAccount", + vmSize: { + serializedName: "properties.formulaContent.properties.computeVm.vmSize", type: { name: "String" } }, - vaultName: { - readOnly: true, - serializedName: "properties.vaultName", + networkInterfaceId: { + serializedName: "properties.formulaContent.properties.computeVm.networkInterfaceId", type: { name: "String" } }, - labStorageType: { - serializedName: "properties.labStorageType", + osDiskId: { + serializedName: "properties.formulaContent.properties.computeVm.osDiskId", type: { name: "String" } }, - mandatoryArtifactsResourceIdsLinux: { - serializedName: "properties.mandatoryArtifactsResourceIdsLinux", + dataDiskIds: { + serializedName: "properties.formulaContent.properties.computeVm.dataDiskIds", type: { name: "Sequence", element: { @@ -3988,1267 +2867,1179 @@ export const Lab: msRest.CompositeMapper = { } } }, - mandatoryArtifactsResourceIdsWindows: { - serializedName: "properties.mandatoryArtifactsResourceIdsWindows", + dataDisks: { + serializedName: "properties.formulaContent.properties.computeVm.dataDisks", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ComputeDataDisk" } } } }, - createdDate: { - readOnly: true, - serializedName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - premiumDataDisks: { - serializedName: "properties.premiumDataDisks", + virtualNetworkId: { + serializedName: "properties.formulaContent.properties.networkInterface.virtualNetworkId", type: { name: "String" } }, - environmentPermission: { - serializedName: "properties.environmentPermission", + subnetId: { + serializedName: "properties.formulaContent.properties.networkInterface.subnetId", type: { name: "String" } }, - announcement: { - serializedName: "properties.announcement", + publicIpAddressId: { + serializedName: "properties.formulaContent.properties.networkInterface.publicIpAddressId", type: { - name: "Composite", - className: "LabAnnouncementProperties" + name: "String" } }, - support: { - serializedName: "properties.support", + publicIpAddress: { + serializedName: "properties.formulaContent.properties.networkInterface.publicIpAddress", type: { - name: "Composite", - className: "LabSupportProperties" + name: "String" } }, - vmCreationResourceGroup: { - readOnly: true, - serializedName: "properties.vmCreationResourceGroup", + privateIpAddress: { + serializedName: "properties.formulaContent.properties.networkInterface.privateIpAddress", type: { name: "String" } }, - publicIpId: { - readOnly: true, - serializedName: "properties.publicIpId", + dnsName: { + serializedName: "properties.formulaContent.properties.networkInterface.dnsName", type: { name: "String" } }, - loadBalancerId: { - readOnly: true, - serializedName: "properties.loadBalancerId", + rdpAuthority: { + serializedName: "properties.formulaContent.properties.networkInterface.rdpAuthority", type: { name: "String" } }, - networkSecurityGroupId: { - readOnly: true, - serializedName: "properties.networkSecurityGroupId", + sshAuthority: { + serializedName: "properties.formulaContent.properties.networkInterface.sshAuthority", type: { name: "String" } }, - extendedProperties: { - serializedName: "properties.extendedProperties", + inboundNatRules: { + serializedName: "properties.formulaContent.properties.networkInterface.sharedPublicIpAddressConfiguration.inboundNatRules", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "InboundNatRule" } } } }, - provisioningState: { + formulaId: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "properties.formulaContent.properties.applicableSchedule.id", type: { name: "String" } }, - uniqueIdentifier: { + formulaName: { readOnly: true, - serializedName: "properties.uniqueIdentifier", + serializedName: "properties.formulaContent.properties.applicableSchedule.name", type: { name: "String" } - } - } - } -}; - -export const LabAnnouncementPropertiesFragment: msRest.CompositeMapper = { - serializedName: "LabAnnouncementPropertiesFragment", - type: { - name: "Composite", - className: "LabAnnouncementPropertiesFragment", - modelProperties: { - title: { - serializedName: "title", + }, + formulaType: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.type", type: { name: "String" } }, - markdown: { - serializedName: "markdown", + id1: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.id", type: { name: "String" } }, - enabled: { - serializedName: "enabled", + name1: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.name", type: { name: "String" } }, - expirationDate: { - serializedName: "expirationDate", + type1: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.type", type: { - name: "DateTime" + name: "String" } }, - expired: { - serializedName: "expired", + formulaTags: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.tags", type: { - name: "Boolean" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const TargetCostProperties: msRest.CompositeMapper = { - serializedName: "TargetCostProperties", - type: { - name: "Composite", - className: "TargetCostProperties", - modelProperties: { + }, + formulaLocation: { + required: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.location", + type: { + name: "String" + } + }, status: { - serializedName: "status", + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.status", + defaultValue: 'Disabled', type: { name: "String" } }, - target: { - serializedName: "target", + taskType: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.taskType", type: { - name: "Number" + name: "String" } }, - costThresholds: { - serializedName: "costThresholds", + weekdays: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.weeklyRecurrence.weekdays", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CostThresholdProperties" + name: "String" } } } }, - cycleStartDateTime: { - serializedName: "cycleStartDateTime", + time: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.weeklyRecurrence.time", type: { - name: "DateTime" + name: "String" } }, - cycleEndDateTime: { - serializedName: "cycleEndDateTime", + time1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.dailyRecurrence.time", type: { - name: "DateTime" + name: "String" } }, - cycleType: { - serializedName: "cycleType", + minute: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.hourlyRecurrence.minute", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const LabCostSummaryProperties: msRest.CompositeMapper = { - serializedName: "LabCostSummaryProperties", - type: { - name: "Composite", - className: "LabCostSummaryProperties", - modelProperties: { - estimatedLabCost: { - serializedName: "estimatedLabCost", + }, + timeZoneId: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.timeZoneId", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const LabCostDetailsProperties: msRest.CompositeMapper = { - serializedName: "LabCostDetailsProperties", - type: { - name: "Composite", - className: "LabCostDetailsProperties", - modelProperties: { - date: { - serializedName: "date", + }, + status1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.status", + defaultValue: 'Disabled', type: { - name: "DateTime" + name: "String" } }, - cost: { - serializedName: "cost", + timeInMinutes: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.timeInMinutes", type: { name: "Number" } }, - costType: { - serializedName: "costType", + webhookUrl: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.webhookUrl", type: { name: "String" } - } - } - } -}; - -export const LabResourceCostProperties: msRest.CompositeMapper = { - serializedName: "LabResourceCostProperties", - type: { - name: "Composite", - className: "LabResourceCostProperties", - modelProperties: { - resourcename: { - serializedName: "resourcename", + }, + emailRecipient: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.emailRecipient", type: { name: "String" } }, - resourceUId: { - serializedName: "resourceUId", + notificationLocale: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.notificationLocale", type: { name: "String" } }, - resourceCost: { - serializedName: "resourceCost", + createdDate1: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.createdDate", type: { - name: "Number" + name: "DateTime" } }, - resourceType: { - serializedName: "resourceType", + targetResourceId: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.targetResourceId", type: { name: "String" } }, - resourceOwner: { - serializedName: "resourceOwner", + provisioningState: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.provisioningState", type: { name: "String" } }, - resourcePricingTier: { - serializedName: "resourcePricingTier", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.properties.uniqueIdentifier", type: { name: "String" } }, - resourceStatus: { - serializedName: "resourceStatus", + scheduleSystemData: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsShutdown.systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - resourceId: { - serializedName: "resourceId", + id2: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.id", type: { name: "String" } }, - externalResourceId: { - serializedName: "externalResourceId", + name2: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.name", type: { name: "String" } - } - } - } -}; - -export const LabCost: msRest.CompositeMapper = { - serializedName: "LabCost", - type: { - name: "Composite", - className: "LabCost", - modelProperties: { - ...Resource.type.modelProperties, - targetCost: { - serializedName: "properties.targetCost", - type: { - name: "Composite", - className: "TargetCostProperties" - } }, - labCostSummary: { + type2: { readOnly: true, - serializedName: "properties.labCostSummary", + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.type", type: { - name: "Composite", - className: "LabCostSummaryProperties" + name: "String" } }, - labCostDetails: { - readOnly: true, - serializedName: "properties.labCostDetails", + tags1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "LabCostDetailsProperties" + name: "String" } } } }, - resourceCosts: { - readOnly: true, - serializedName: "properties.resourceCosts", + location1: { + required: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.location", + type: { + name: "String" + } + }, + status2: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.status", + defaultValue: 'Disabled', + type: { + name: "String" + } + }, + taskType1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.taskType", + type: { + name: "String" + } + }, + weekdays1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.weeklyRecurrence.weekdays", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "LabResourceCostProperties" + name: "String" } } } }, - currencyCode: { - serializedName: "properties.currencyCode", + time2: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.weeklyRecurrence.time", type: { name: "String" } }, - startDateTime: { - serializedName: "properties.startDateTime", + time3: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.dailyRecurrence.time", type: { - name: "DateTime" + name: "String" } }, - endDateTime: { - serializedName: "properties.endDateTime", + minute1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.hourlyRecurrence.minute", type: { - name: "DateTime" + name: "Number" } }, - createdDate: { - serializedName: "properties.createdDate", + timeZoneId1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.timeZoneId", type: { - name: "DateTime" + name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + status3: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.status", + defaultValue: 'Disabled', type: { name: "String" } }, - uniqueIdentifier: { - readOnly: true, - serializedName: "properties.uniqueIdentifier", + timeInMinutes1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.timeInMinutes", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const LabSupportPropertiesFragment: msRest.CompositeMapper = { - serializedName: "LabSupportPropertiesFragment", - type: { - name: "Composite", - className: "LabSupportPropertiesFragment", - modelProperties: { - enabled: { - serializedName: "enabled", + }, + webhookUrl1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.webhookUrl", type: { name: "String" } }, - markdown: { - serializedName: "markdown", + emailRecipient1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.emailRecipient", type: { name: "String" } - } - } - } -}; - -export const LabFragment: msRest.CompositeMapper = { - serializedName: "LabFragment", - type: { - name: "Composite", - className: "LabFragment", - modelProperties: { - ...UpdateResource.type.modelProperties, - labStorageType: { - serializedName: "properties.labStorageType", + }, + notificationLocale1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.notificationLocale", type: { name: "String" } }, - mandatoryArtifactsResourceIdsLinux: { - serializedName: "properties.mandatoryArtifactsResourceIdsLinux", + createdDate2: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.createdDate", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "DateTime" } }, - mandatoryArtifactsResourceIdsWindows: { - serializedName: "properties.mandatoryArtifactsResourceIdsWindows", + targetResourceId1: { + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.targetResourceId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - premiumDataDisks: { - serializedName: "properties.premiumDataDisks", + provisioningState1: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.provisioningState", type: { name: "String" } }, - environmentPermission: { - serializedName: "properties.environmentPermission", + uniqueIdentifier1: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.properties.uniqueIdentifier", type: { name: "String" } }, - announcement: { - serializedName: "properties.announcement", + systemData1: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.properties.labVmsStartup.systemData", type: { name: "Composite", - className: "LabAnnouncementPropertiesFragment" + className: "SystemData" } }, - support: { - serializedName: "properties.support", + systemData2: { + readOnly: true, + serializedName: "properties.formulaContent.properties.applicableSchedule.systemData", type: { name: "Composite", - className: "LabSupportPropertiesFragment" + className: "SystemData" } }, - extendedProperties: { - serializedName: "properties.extendedProperties", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const LabVhd: msRest.CompositeMapper = { - serializedName: "LabVhd", - type: { - name: "Composite", - className: "LabVhd", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const LabVirtualMachine: msRest.CompositeMapper = { - serializedName: "LabVirtualMachine", - type: { - name: "Composite", - className: "LabVirtualMachine", - modelProperties: { - ...Resource.type.modelProperties, - notes: { - serializedName: "properties.notes", + expirationDate: { + serializedName: "properties.formulaContent.properties.expirationDate", type: { - name: "String" + name: "DateTime" } }, - ownerObjectId: { - serializedName: "properties.ownerObjectId", + allowClaim: { + serializedName: "properties.formulaContent.properties.allowClaim", + defaultValue: false, type: { - name: "String" + name: "Boolean" } }, - ownerUserPrincipalName: { - serializedName: "properties.ownerUserPrincipalName", + storageType: { + serializedName: "properties.formulaContent.properties.storageType", + defaultValue: 'Standard', type: { name: "String" } }, - createdByUserId: { - serializedName: "properties.createdByUserId", + virtualMachineCreationSource: { + readOnly: true, + serializedName: "properties.formulaContent.properties.virtualMachineCreationSource", type: { name: "String" } }, - createdByUser: { - serializedName: "properties.createdByUser", + environmentId: { + serializedName: "properties.formulaContent.properties.environmentId", type: { name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", + dataDiskParameters: { + serializedName: "properties.formulaContent.properties.dataDiskParameters", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataDiskProperties" + } + } } }, - computeId: { - serializedName: "properties.computeId", + scheduleParameters: { + serializedName: "properties.formulaContent.properties.scheduleParameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScheduleCreationParameter" + } + } } }, - customImageId: { - serializedName: "properties.customImageId", + lastKnownPowerState: { + readOnly: true, + serializedName: "properties.formulaContent.properties.lastKnownPowerState", type: { name: "String" } }, - osType: { - serializedName: "properties.osType", + canApplyArtifacts: { + readOnly: true, + serializedName: "properties.formulaContent.properties.canApplyArtifacts", type: { - name: "String" + name: "Boolean" } }, - size: { - serializedName: "properties.size", + provisioningState2: { + readOnly: true, + serializedName: "properties.formulaContent.properties.provisioningState", type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + uniqueIdentifier2: { + readOnly: true, + serializedName: "properties.formulaContent.properties.uniqueIdentifier", type: { name: "String" } }, - password: { - serializedName: "properties.password", + name3: { + serializedName: "properties.formulaContent.name", type: { name: "String" } }, - sshKey: { - serializedName: "properties.sshKey", + location2: { + serializedName: "properties.formulaContent.location", type: { name: "String" } }, - isAuthenticationWithSshKey: { - serializedName: "properties.isAuthenticationWithSshKey", + tags2: { + serializedName: "properties.formulaContent.tags", type: { - name: "Boolean" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - fqdn: { - serializedName: "properties.fqdn", + labVmId: { + serializedName: "properties.vm.labVmId", type: { name: "String" } }, - labSubnetName: { - serializedName: "properties.labSubnetName", + provisioningState3: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - labVirtualNetworkId: { - serializedName: "properties.labVirtualNetworkId", + uniqueIdentifier3: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", 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", + systemData: { + readOnly: true, + serializedName: "systemData", type: { name: "Composite", - className: "GalleryImageReference" + className: "SystemData" } - }, - planId: { - serializedName: "properties.planId", + } + } + } +}; + +export const FormulaFragment: msRest.CompositeMapper = { + serializedName: "FormulaFragment", + type: { + name: "Composite", + className: "FormulaFragment", + modelProperties: { + ...Tags.type.modelProperties + } + } +}; + +export const GalleryImage: msRest.CompositeMapper = { + serializedName: "GalleryImage", + type: { + name: "Composite", + className: "GalleryImage", + modelProperties: { + ...Resource.type.modelProperties, + author: { + serializedName: "properties.author", type: { name: "String" } }, - computeVm: { + createdDate: { readOnly: true, - serializedName: "properties.computeVm", - type: { - name: "Composite", - className: "ComputeVmProperties" - } - }, - networkInterface: { - serializedName: "properties.networkInterface", + serializedName: "properties.createdDate", type: { - name: "Composite", - className: "NetworkInterfaceProperties" + name: "DateTime" } }, - applicableSchedule: { - readOnly: true, - serializedName: "properties.applicableSchedule", + description: { + serializedName: "properties.description", type: { - name: "Composite", - className: "ApplicableSchedule" + name: "String" } }, - expirationDate: { - serializedName: "properties.expirationDate", + offer: { + serializedName: "properties.imageReference.offer", type: { - name: "DateTime" + name: "String" } }, - allowClaim: { - serializedName: "properties.allowClaim", + publisher: { + serializedName: "properties.imageReference.publisher", type: { - name: "Boolean" + name: "String" } }, - storageType: { - serializedName: "properties.storageType", + sku: { + serializedName: "properties.imageReference.sku", type: { name: "String" } }, - virtualMachineCreationSource: { - serializedName: "properties.virtualMachineCreationSource", + osType: { + serializedName: "properties.imageReference.osType", type: { name: "String" } }, - environmentId: { - serializedName: "properties.environmentId", + version: { + serializedName: "properties.imageReference.version", type: { name: "String" } }, - dataDiskParameters: { - serializedName: "properties.dataDiskParameters", + icon: { + serializedName: "properties.icon", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDiskProperties" - } - } + name: "String" } }, - scheduleParameters: { - serializedName: "properties.scheduleParameters", + enabled: { + serializedName: "properties.enabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScheduleCreationParameter" - } - } + name: "Boolean" } }, - lastKnownPowerState: { - serializedName: "properties.lastKnownPowerState", + planId: { + serializedName: "properties.planId", type: { name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + isPlanAuthorized: { + serializedName: "properties.isPlanAuthorized", type: { - name: "String" + name: "Boolean" } }, - uniqueIdentifier: { + systemData: { readOnly: true, - serializedName: "properties.uniqueIdentifier", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const LabVirtualMachineFragment: msRest.CompositeMapper = { - serializedName: "LabVirtualMachineFragment", +export const ParameterInfo: msRest.CompositeMapper = { + serializedName: "ParameterInfo", type: { name: "Composite", - className: "LabVirtualMachineFragment", + className: "ParameterInfo", modelProperties: { - ...UpdateResource.type.modelProperties, - notes: { - serializedName: "properties.notes", + name: { + serializedName: "name", type: { name: "String" } }, - ownerObjectId: { - serializedName: "properties.ownerObjectId", + value: { + serializedName: "value", type: { name: "String" } - }, - ownerUserPrincipalName: { - serializedName: "properties.ownerUserPrincipalName", + } + } + } +}; + +export const GenerateArmTemplateRequest: msRest.CompositeMapper = { + serializedName: "GenerateArmTemplateRequest", + type: { + name: "Composite", + className: "GenerateArmTemplateRequest", + modelProperties: { + virtualMachineName: { + serializedName: "virtualMachineName", type: { name: "String" } }, - createdByUserId: { - serializedName: "properties.createdByUserId", + parameters: { + serializedName: "parameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterInfo" + } + } } }, - createdByUser: { - serializedName: "properties.createdByUser", + location: { + serializedName: "location", type: { name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", + fileUploadOptions: { + serializedName: "fileUploadOptions", type: { - name: "DateTime" + name: "String" } - }, - computeId: { - serializedName: "properties.computeId", + } + } + } +}; + +export const GenerateUploadUriParameter: msRest.CompositeMapper = { + serializedName: "GenerateUploadUriParameter", + type: { + name: "Composite", + className: "GenerateUploadUriParameter", + modelProperties: { + blobName: { + serializedName: "blobName", type: { name: "String" } - }, - customImageId: { - serializedName: "properties.customImageId", + } + } + } +}; + +export const GenerateUploadUriResponse: msRest.CompositeMapper = { + serializedName: "GenerateUploadUriResponse", + type: { + name: "Composite", + className: "GenerateUploadUriResponse", + modelProperties: { + uploadUri: { + serializedName: "uploadUri", type: { name: "String" } - }, - osType: { - serializedName: "properties.osType", + } + } + } +}; + +export const ImageVersionProperties: msRest.CompositeMapper = { + serializedName: "ImageVersionProperties", + type: { + name: "Composite", + className: "ImageVersionProperties", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } - }, - size: { - serializedName: "properties.size", + } + } + } +}; + +export const ImportLabVirtualMachineRequest: msRest.CompositeMapper = { + serializedName: "ImportLabVirtualMachineRequest", + type: { + name: "Composite", + className: "ImportLabVirtualMachineRequest", + modelProperties: { + sourceVirtualMachineResourceId: { + serializedName: "sourceVirtualMachineResourceId", type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + destinationVirtualMachineName: { + serializedName: "destinationVirtualMachineName", type: { name: "String" } - }, - password: { - serializedName: "properties.password", + } + } + } +}; + +export const Lab: msRest.CompositeMapper = { + serializedName: "Lab", + type: { + name: "Composite", + className: "Lab", + modelProperties: { + ...TrackedResource.type.modelProperties, + defaultStorageAccount: { + readOnly: true, + serializedName: "properties.defaultStorageAccount", type: { name: "String" } }, - sshKey: { - serializedName: "properties.sshKey", + defaultPremiumStorageAccount: { + readOnly: true, + serializedName: "properties.defaultPremiumStorageAccount", type: { name: "String" } }, - isAuthenticationWithSshKey: { - serializedName: "properties.isAuthenticationWithSshKey", + artifactsStorageAccount: { + serializedName: "properties.artifactsStorageAccount", type: { - name: "Boolean" + name: "String" } }, - fqdn: { - serializedName: "properties.fqdn", + premiumDataDiskStorageAccount: { + readOnly: true, + serializedName: "properties.premiumDataDiskStorageAccount", type: { name: "String" } }, - labSubnetName: { - serializedName: "properties.labSubnetName", + vaultName: { + readOnly: true, + serializedName: "properties.vaultName", type: { name: "String" } }, - labVirtualNetworkId: { - serializedName: "properties.labVirtualNetworkId", + labStorageType: { + serializedName: "properties.labStorageType", + defaultValue: 'Premium', type: { name: "String" } }, - disallowPublicIpAddress: { - serializedName: "properties.disallowPublicIpAddress", + mandatoryArtifactsResourceIdsLinux: { + serializedName: "properties.mandatoryArtifactsResourceIdsLinux", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - artifacts: { - serializedName: "properties.artifacts", + mandatoryArtifactsResourceIdsWindows: { + serializedName: "properties.mandatoryArtifactsResourceIdsWindows", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ArtifactInstallPropertiesFragment" + name: "String" } } } }, - artifactDeploymentStatus: { - serializedName: "properties.artifactDeploymentStatus", + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", type: { - name: "Composite", - className: "ArtifactDeploymentStatusPropertiesFragment" + name: "DateTime" } }, - galleryImageReference: { - serializedName: "properties.galleryImageReference", + premiumDataDisks: { + serializedName: "properties.premiumDataDisks", type: { - name: "Composite", - className: "GalleryImageReferenceFragment" + name: "String" } }, - planId: { - serializedName: "properties.planId", + environmentPermission: { + serializedName: "properties.environmentPermission", type: { name: "String" } }, - networkInterface: { - serializedName: "properties.networkInterface", + title: { + serializedName: "properties.announcement.title", type: { - name: "Composite", - className: "NetworkInterfacePropertiesFragment" + name: "String" + } + }, + markdown: { + serializedName: "properties.announcement.markdown", + type: { + name: "String" + } + }, + enabled: { + serializedName: "properties.announcement.enabled", + type: { + name: "String" } }, expirationDate: { - serializedName: "properties.expirationDate", + serializedName: "properties.announcement.expirationDate", type: { name: "DateTime" } }, - allowClaim: { - serializedName: "properties.allowClaim", + expired: { + serializedName: "properties.announcement.expired", type: { name: "Boolean" } }, - storageType: { - serializedName: "properties.storageType", + provisioningState: { + readOnly: true, + serializedName: "properties.announcement.provisioningState", type: { name: "String" } }, - virtualMachineCreationSource: { - serializedName: "properties.virtualMachineCreationSource", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.announcement.uniqueIdentifier", type: { name: "String" } }, - environmentId: { - serializedName: "properties.environmentId", + enabled1: { + serializedName: "properties.support.enabled", type: { name: "String" } }, - dataDiskParameters: { - serializedName: "properties.dataDiskParameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDiskPropertiesFragment" - } - } - } - }, - scheduleParameters: { - serializedName: "properties.scheduleParameters", + markdown1: { + serializedName: "properties.support.markdown", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScheduleCreationParameterFragment" - } - } + name: "String" } }, - lastKnownPowerState: { - serializedName: "properties.lastKnownPowerState", + vmCreationResourceGroup: { + serializedName: "properties.vmCreationResourceGroup", type: { name: "String" } - } - } - } -}; - -export const NotificationChannel: msRest.CompositeMapper = { - serializedName: "NotificationChannel", - type: { - name: "Composite", - className: "NotificationChannel", - modelProperties: { - ...Resource.type.modelProperties, - webHookUrl: { - serializedName: "properties.webHookUrl", + }, + publicIpId: { + readOnly: true, + serializedName: "properties.publicIpId", type: { name: "String" } }, - emailRecipient: { - serializedName: "properties.emailRecipient", + loadBalancerId: { + readOnly: true, + serializedName: "properties.loadBalancerId", type: { name: "String" } }, - notificationLocale: { - serializedName: "properties.notificationLocale", + networkSecurityGroupId: { + readOnly: true, + serializedName: "properties.networkSecurityGroupId", type: { name: "String" } }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - events: { - serializedName: "properties.events", + extendedProperties: { + serializedName: "properties.extendedProperties", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "Event" + name: "String" } } } }, - createdDate: { - readOnly: true, - serializedName: "properties.createdDate", + browserConnect: { + serializedName: "properties.browserConnect", type: { - name: "DateTime" + name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + disableAutoUpgradeCseMinorVersion: { + serializedName: "properties.disableAutoUpgradeCseMinorVersion", type: { - name: "String" + name: "Boolean" } }, - uniqueIdentifier: { - readOnly: true, - serializedName: "properties.uniqueIdentifier", + managementIdentities: { + serializedName: "properties.managementIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Object" + } + } } - } - } - } -}; - -export const NotificationChannelFragment: msRest.CompositeMapper = { - serializedName: "NotificationChannelFragment", - type: { - name: "Composite", - className: "NotificationChannelFragment", - modelProperties: { - ...UpdateResource.type.modelProperties, - webHookUrl: { - serializedName: "properties.webHookUrl", + }, + isolateLabResources: { + serializedName: "properties.isolateLabResources", type: { name: "String" } }, - emailRecipient: { - serializedName: "properties.emailRecipient", + diskEncryptionSetId: { + serializedName: "properties.encryption.diskEncryptionSetId", type: { name: "String" } }, - notificationLocale: { - serializedName: "properties.notificationLocale", + labType: { + serializedName: "properties.encryption.type", type: { name: "String" } }, - description: { - serializedName: "properties.description", + defaultSecretName: { + serializedName: "properties.defaultSecretName", type: { name: "String" } }, - events: { - serializedName: "properties.events", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EventFragment" - } - } - } - } - } - } -}; - -export const NotifyParameters: msRest.CompositeMapper = { - serializedName: "NotifyParameters", - type: { - name: "Composite", - className: "NotifyParameters", - modelProperties: { - eventName: { - serializedName: "eventName", + provisioningState1: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - jsonPayload: { - serializedName: "jsonPayload", + uniqueIdentifier1: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", type: { name: "String" } - } - } - } -}; - -export const OperationError: msRest.CompositeMapper = { - serializedName: "OperationError", - type: { - name: "Composite", - className: "OperationError", - modelProperties: { - code: { - serializedName: "code", + }, + type1: { + serializedName: "identity.type", type: { name: "String" } }, - message: { - serializedName: "message", + principalId: { + serializedName: "identity.principalId", type: { name: "String" } - } - } - } -}; - -export const OperationMetadataDisplay: msRest.CompositeMapper = { - serializedName: "OperationMetadataDisplay", - type: { - name: "Composite", - className: "OperationMetadataDisplay", - modelProperties: { - provider: { - serializedName: "provider", + }, + tenantId: { + serializedName: "identity.tenantId", type: { name: "String" } }, - resource: { - serializedName: "resource", + clientSecretUrl: { + serializedName: "identity.clientSecretUrl", type: { name: "String" } }, - operation: { - serializedName: "operation", + userAssignedIdentities: { + serializedName: "identity.userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Object" + } + } } }, - description: { - serializedName: "description", + systemData: { + readOnly: true, + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const OperationMetadata: msRest.CompositeMapper = { - serializedName: "OperationMetadata", +export const LabCost: msRest.CompositeMapper = { + serializedName: "LabCost", type: { name: "Composite", - className: "OperationMetadata", + className: "LabCost", modelProperties: { - name: { - serializedName: "name", + ...Resource.type.modelProperties, + status: { + serializedName: "properties.targetCost.status", type: { name: "String" } }, - display: { - serializedName: "display", + target: { + serializedName: "properties.targetCost.target", type: { - name: "Composite", - className: "OperationMetadataDisplay" + name: "Number" } - } - } - } -}; - -export const OperationResult: msRest.CompositeMapper = { - serializedName: "OperationResult", - type: { - name: "Composite", - className: "OperationResult", - modelProperties: { - status: { - serializedName: "status", + }, + costThresholds: { + serializedName: "properties.targetCost.costThresholds", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CostThresholdProperties" + } + } } }, - statusCode: { - serializedName: "statusCode", + cycleStartDateTime: { + serializedName: "properties.targetCost.cycleStartDateTime", type: { - name: "String" + name: "DateTime" } }, - error: { - serializedName: "error", + cycleEndDateTime: { + serializedName: "properties.targetCost.cycleEndDateTime", type: { - name: "Composite", - className: "OperationError" + name: "DateTime" } - } - } - } -}; - -export const Policy: msRest.CompositeMapper = { - serializedName: "Policy", - type: { - name: "Composite", - className: "Policy", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + }, + cycleType: { + serializedName: "properties.targetCost.cycleType", type: { name: "String" } }, - status: { - serializedName: "properties.status", + estimatedLabCost: { + serializedName: "properties.labCostSummary.estimatedLabCost", type: { - name: "String" + name: "Number" } }, - factName: { - serializedName: "properties.factName", + labCostDetails: { + readOnly: true, + serializedName: "properties.labCostDetails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LabCostDetailsProperties" + } + } } }, - factData: { - serializedName: "properties.factData", + resourceCosts: { + readOnly: true, + serializedName: "properties.resourceCosts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LabResourceCostProperties" + } + } } }, - threshold: { - serializedName: "properties.threshold", + currencyCode: { + serializedName: "properties.currencyCode", type: { name: "String" } }, - evaluatorType: { - serializedName: "properties.evaluatorType", + startDateTime: { + serializedName: "properties.startDateTime", type: { - name: "String" + name: "DateTime" + } + }, + endDateTime: { + serializedName: "properties.endDateTime", + type: { + name: "DateTime" } }, createdDate: { - readOnly: true, serializedName: "properties.createdDate", type: { name: "DateTime" @@ -5267,110 +4058,251 @@ export const Policy: msRest.CompositeMapper = { type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } }; -export const PolicyFragment: msRest.CompositeMapper = { - serializedName: "PolicyFragment", +export const LabFragment: msRest.CompositeMapper = { + serializedName: "LabFragment", type: { name: "Composite", - className: "PolicyFragment", + className: "LabFragment", modelProperties: { - ...UpdateResource.type.modelProperties, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - type: { + ...Tags.type.modelProperties + } + } +}; + +export const LabSecret: msRest.CompositeMapper = { + serializedName: "LabSecret", + type: { + name: "Composite", + className: "LabSecret", + modelProperties: { + ...TrackedResource.type.modelProperties, + value: { + serializedName: "properties.value", + type: { name: "String" } }, - factName: { - serializedName: "properties.factName", + keyVaultEntry: { + readOnly: true, + serializedName: "properties.keyVaultEntry", type: { name: "String" } }, - factData: { - serializedName: "properties.factData", + enabledForArtifacts: { + serializedName: "properties.enabledForArtifacts", type: { - name: "String" + name: "Boolean" } }, - threshold: { - serializedName: "properties.threshold", + enabledForVmCreation: { + serializedName: "properties.enabledForVmCreation", + type: { + name: "Boolean" + } + }, + enabledForArmEnvironments: { + serializedName: "properties.enabledForArmEnvironments", + type: { + name: "Boolean" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - evaluatorType: { - serializedName: "properties.evaluatorType", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } }; -export const Port: msRest.CompositeMapper = { - serializedName: "Port", +export const LabSecretFragment: msRest.CompositeMapper = { + serializedName: "LabSecretFragment", type: { name: "Composite", - className: "Port", + className: "LabSecretFragment", modelProperties: { - transportProtocol: { - serializedName: "transportProtocol", + ...Tags.type.modelProperties + } + } +}; + +export const LabVhd: msRest.CompositeMapper = { + serializedName: "LabVhd", + type: { + name: "Composite", + className: "LabVhd", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } + } + } + } +}; + +export const LabVhdList: msRest.CompositeMapper = { + serializedName: "LabVhdList", + type: { + name: "Composite", + className: "LabVhdList", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LabVhd" + } + } + } }, - backendPort: { - serializedName: "backendPort", + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } } } } }; -export const PortFragment: msRest.CompositeMapper = { - serializedName: "PortFragment", +export const NotificationChannel: msRest.CompositeMapper = { + serializedName: "NotificationChannel", type: { name: "Composite", - className: "PortFragment", + className: "NotificationChannel", modelProperties: { - transportProtocol: { - serializedName: "transportProtocol", + ...TrackedResource.type.modelProperties, + webHookUrl: { + serializedName: "properties.webHookUrl", type: { name: "String" } }, - backendPort: { - serializedName: "backendPort", + emailRecipient: { + serializedName: "properties.emailRecipient", type: { - name: "Number" + name: "String" + } + }, + notificationLocale: { + serializedName: "properties.notificationLocale", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + events: { + serializedName: "properties.events", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Event" + } + } + } + }, + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" } } } } }; -export const RdpConnection: msRest.CompositeMapper = { - serializedName: "RdpConnection", +export const NotificationChannelFragment: msRest.CompositeMapper = { + serializedName: "NotificationChannelFragment", type: { name: "Composite", - className: "RdpConnection", + className: "NotificationChannelFragment", modelProperties: { - contents: { - serializedName: "contents", + ...Tags.type.modelProperties + } + } +}; + +export const NotifyParameters: msRest.CompositeMapper = { + serializedName: "NotifyParameters", + type: { + name: "Composite", + className: "NotifyParameters", + modelProperties: { + eventName: { + serializedName: "eventName", + type: { + name: "String" + } + }, + jsonPayload: { + serializedName: "jsonPayload", type: { name: "String" } @@ -5379,14 +4311,32 @@ export const RdpConnection: msRest.CompositeMapper = { } }; -export const ResizeLabVirtualMachineProperties: msRest.CompositeMapper = { - serializedName: "ResizeLabVirtualMachineProperties", +export const OperationResult: msRest.CompositeMapper = { + serializedName: "OperationResult", type: { name: "Composite", - className: "ResizeLabVirtualMachineProperties", + className: "OperationResult", modelProperties: { - size: { - serializedName: "size", + status: { + serializedName: "status", + type: { + name: "String" + } + }, + statusCode: { + serializedName: "statusCode", + type: { + name: "String" + } + }, + code: { + serializedName: "error.code", + type: { + name: "String" + } + }, + message: { + serializedName: "error.message", type: { name: "String" } @@ -5395,525 +4345,1871 @@ export const ResizeLabVirtualMachineProperties: msRest.CompositeMapper = { } }; -export const RetargetScheduleProperties: msRest.CompositeMapper = { - serializedName: "RetargetScheduleProperties", +export const Policy: msRest.CompositeMapper = { + serializedName: "Policy", type: { name: "Composite", - className: "RetargetScheduleProperties", + className: "Policy", modelProperties: { - currentResourceId: { - serializedName: "currentResourceId", + ...TrackedResource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "String" + } + }, + factName: { + serializedName: "properties.factName", + type: { + name: "String" + } + }, + factData: { + serializedName: "properties.factData", + type: { + name: "String" + } + }, + threshold: { + serializedName: "properties.threshold", + type: { + name: "String" + } + }, + evaluatorType: { + serializedName: "properties.evaluatorType", + type: { + name: "String" + } + }, + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const PolicyFragment: msRest.CompositeMapper = { + serializedName: "PolicyFragment", + type: { + name: "Composite", + className: "PolicyFragment", + modelProperties: { + ...Tags.type.modelProperties + } + } +}; + +export const PolicySet: msRest.CompositeMapper = { + serializedName: "PolicySet", + type: { + name: "Composite", + className: "PolicySet", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const Port: msRest.CompositeMapper = { + serializedName: "Port", + type: { + name: "Composite", + className: "Port", + modelProperties: { + transportProtocol: { + serializedName: "transportProtocol", + type: { + name: "String" + } + }, + backendPort: { + serializedName: "backendPort", + type: { + name: "Number" + } + } + } + } +}; + +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: { + name: "Composite", + className: "RetargetScheduleProperties", + modelProperties: { + currentResourceId: { + serializedName: "currentResourceId", + type: { + name: "String" + } + }, + targetResourceId: { + serializedName: "targetResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const ScheduleFragment: msRest.CompositeMapper = { + serializedName: "ScheduleFragment", + type: { + name: "Composite", + className: "ScheduleFragment", + modelProperties: { + ...Tags.type.modelProperties + } + } +}; + +export const Secret: msRest.CompositeMapper = { + serializedName: "Secret", + type: { + name: "Composite", + className: "Secret", + modelProperties: { + ...TrackedResource.type.modelProperties, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const SecretFragment: msRest.CompositeMapper = { + serializedName: "SecretFragment", + type: { + name: "Composite", + className: "SecretFragment", + modelProperties: { + ...Tags.type.modelProperties + } + } +}; + +export const ServiceFabric: msRest.CompositeMapper = { + serializedName: "ServiceFabric", + type: { + name: "Composite", + className: "ServiceFabric", + modelProperties: { + ...TrackedResource.type.modelProperties, + externalServiceFabricId: { + serializedName: "properties.externalServiceFabricId", + type: { + name: "String" + } + }, + environmentId: { + serializedName: "properties.environmentId", + type: { + name: "String" + } + }, + serviceFabricId: { + readOnly: true, + serializedName: "properties.applicableSchedule.id", + type: { + name: "String" + } + }, + serviceFabricName: { + readOnly: true, + serializedName: "properties.applicableSchedule.name", + type: { + name: "String" + } + }, + serviceFabricType: { + readOnly: true, + serializedName: "properties.applicableSchedule.type", + type: { + name: "String" + } + }, + id1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.id", + type: { + name: "String" + } + }, + name1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.name", + type: { + name: "String" + } + }, + type1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.type", + type: { + name: "String" + } + }, + serviceFabricTags: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + serviceFabricLocation: { + required: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.location", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.status", + defaultValue: 'Disabled', + type: { + name: "String" + } + }, + taskType: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.taskType", + type: { + name: "String" + } + }, + weekdays: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.weeklyRecurrence.weekdays", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + time: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.weeklyRecurrence.time", + type: { + name: "String" + } + }, + time1: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.dailyRecurrence.time", + type: { + name: "String" + } + }, + minute: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.hourlyRecurrence.minute", + type: { + name: "Number" + } + }, + timeZoneId: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.timeZoneId", + type: { + name: "String" + } + }, + status1: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.status", + defaultValue: 'Disabled', + type: { + name: "String" + } + }, + timeInMinutes: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.timeInMinutes", + type: { + name: "Number" + } + }, + webhookUrl: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.webhookUrl", + type: { + name: "String" + } + }, + emailRecipient: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.emailRecipient", + type: { + name: "String" + } + }, + notificationLocale: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.notificationLocale", + type: { + name: "String" + } + }, + createdDate: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.createdDate", + type: { + name: "DateTime" + } + }, + targetResourceId: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.targetResourceId", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.uniqueIdentifier", + type: { + name: "String" + } + }, + scheduleSystemData: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + id2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.id", + type: { + name: "String" + } + }, + name2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.name", + type: { + name: "String" + } + }, + type2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.type", + type: { + name: "String" + } + }, + tags1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location1: { + required: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.location", + type: { + name: "String" + } + }, + status2: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.status", + defaultValue: 'Disabled', + type: { + name: "String" + } + }, + taskType1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.taskType", + type: { + name: "String" + } + }, + weekdays1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.weeklyRecurrence.weekdays", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + time2: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.weeklyRecurrence.time", + type: { + name: "String" + } + }, + time3: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.dailyRecurrence.time", + type: { + name: "String" + } + }, + minute1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.hourlyRecurrence.minute", + type: { + name: "Number" + } + }, + timeZoneId1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.timeZoneId", + type: { + name: "String" + } + }, + status3: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.status", + defaultValue: 'Disabled', + type: { + name: "String" + } + }, + timeInMinutes1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.timeInMinutes", + type: { + name: "Number" + } + }, + webhookUrl1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.webhookUrl", + type: { + name: "String" + } + }, + emailRecipient1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.emailRecipient", + type: { + name: "String" + } + }, + notificationLocale1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.notificationLocale", + type: { + name: "String" + } + }, + createdDate1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.createdDate", + type: { + name: "DateTime" + } + }, + targetResourceId1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.targetResourceId", + type: { + name: "String" + } + }, + provisioningState1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.uniqueIdentifier", + type: { + name: "String" + } + }, + systemData1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + systemData2: { + readOnly: true, + serializedName: "properties.applicableSchedule.systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + provisioningState2: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier2: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const ServiceFabricFragment: msRest.CompositeMapper = { + serializedName: "ServiceFabricFragment", + type: { + name: "Composite", + className: "ServiceFabricFragment", + modelProperties: { + ...Tags.type.modelProperties + } + } +}; + +export const ServiceRunner: msRest.CompositeMapper = { + serializedName: "ServiceRunner", + type: { + name: "Composite", + className: "ServiceRunner", + modelProperties: { + ...TrackedResource.type.modelProperties, + identityUsageType: { + serializedName: "properties.identityUsageType", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + }, + serviceRunnerType: { + serializedName: "identity.type", + type: { + name: "String" + } + }, + principalId: { + serializedName: "identity.principalId", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "identity.tenantId", + type: { + name: "String" + } + }, + clientSecretUrl: { + serializedName: "identity.clientSecretUrl", + type: { + name: "String" + } + }, + userAssignedIdentities: { + serializedName: "identity.userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const SharedGallery: msRest.CompositeMapper = { + serializedName: "SharedGallery", + type: { + name: "Composite", + className: "SharedGallery", + modelProperties: { + ...TrackedResource.type.modelProperties, + galleryId: { + serializedName: "properties.galleryId", + type: { + name: "String" + } + }, + allowAllImages: { + serializedName: "properties.allowAllImages", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const SharedGalleryFragment: msRest.CompositeMapper = { + serializedName: "SharedGalleryFragment", + type: { + name: "Composite", + className: "SharedGalleryFragment", + modelProperties: { + ...Tags.type.modelProperties + } + } +}; + +export const SharedImage: msRest.CompositeMapper = { + serializedName: "SharedImage", + type: { + name: "Composite", + className: "SharedImage", + modelProperties: { + ...TrackedResource.type.modelProperties, + definitionName: { + serializedName: "properties.definitionName", + type: { + name: "String" + } + }, + osType: { + serializedName: "properties.osType", + type: { + name: "String" + } + }, + imageType: { + serializedName: "properties.imageType", + type: { + name: "String" + } + }, + enableState: { + serializedName: "properties.enableState", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + versions: { + serializedName: "properties.versions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageVersionProperties" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const SharedImageFragment: msRest.CompositeMapper = { + serializedName: "SharedImageFragment", + type: { + name: "Composite", + className: "SharedImageFragment", + modelProperties: { + ...Tags.type.modelProperties + } + } +}; + +export const Subnet: msRest.CompositeMapper = { + serializedName: "Subnet", + type: { + name: "Composite", + className: "Subnet", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + labSubnetName: { + serializedName: "labSubnetName", + type: { + name: "String" + } + }, + allowPublicIp: { + serializedName: "allowPublicIp", + type: { + name: "String" + } + } + } + } +}; + +export const SubnetOverride: msRest.CompositeMapper = { + serializedName: "SubnetOverride", + type: { + name: "Composite", + className: "SubnetOverride", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + labSubnetName: { + serializedName: "labSubnetName", + type: { + name: "String" + } + }, + useInVmCreationPermission: { + serializedName: "useInVmCreationPermission", + type: { + name: "String" + } + }, + usePublicIpAddressPermission: { + serializedName: "usePublicIpAddressPermission", + type: { + name: "String" + } + }, + allowedPorts: { + serializedName: "sharedPublicIpAddressConfiguration.allowedPorts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Port" + } + } + } + }, + virtualNetworkPoolName: { + serializedName: "virtualNetworkPoolName", + type: { + name: "String" + } + } + } + } +}; + +export const User: msRest.CompositeMapper = { + serializedName: "User", + type: { + name: "Composite", + className: "User", + modelProperties: { + ...TrackedResource.type.modelProperties, + principalName: { + serializedName: "properties.identity.principalName", + type: { + name: "String" + } + }, + principalId: { + serializedName: "properties.identity.principalId", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.identity.tenantId", + type: { + name: "String" + } + }, + objectId: { + serializedName: "properties.identity.objectId", + type: { + name: "String" + } + }, + appId: { + serializedName: "properties.identity.appId", + type: { + name: "String" + } + }, + keyVaultUri: { + serializedName: "properties.secretStore.keyVaultUri", + type: { + name: "String" + } + }, + keyVaultId: { + serializedName: "properties.secretStore.keyVaultId", + type: { + name: "String" + } + }, + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const UserFragment: msRest.CompositeMapper = { + serializedName: "UserFragment", + type: { + name: "Composite", + className: "UserFragment", + modelProperties: { + ...Tags.type.modelProperties + } + } +}; + +export const VirtualMachine: msRest.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachine", + modelProperties: { + ...TrackedResource.type.modelProperties, + notes: { + serializedName: "properties.notes", + type: { + name: "String" + } + }, + ownerObjectId: { + serializedName: "properties.ownerObjectId", + defaultValue: 'dynamicValue', + type: { + name: "String" + } + }, + ownerUserPrincipalName: { + serializedName: "properties.ownerUserPrincipalName", + type: { + name: "String" + } + }, + createdByUserId: { + readOnly: true, + serializedName: "properties.createdByUserId", + type: { + name: "String" + } + }, + createdByUser: { + readOnly: true, + serializedName: "properties.createdByUser", + type: { + name: "String" + } + }, + createdDate: { + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + computeId: { + readOnly: true, + serializedName: "properties.computeId", + type: { + name: "String" + } + }, + customImageId: { + serializedName: "properties.customImageId", + type: { + name: "String" + } + }, + galleryImageVersionId: { + serializedName: "properties.galleryImageVersionId", + type: { + name: "String" + } + }, + sharedImageId: { + serializedName: "properties.sharedImageId", + type: { + name: "String" + } + }, + sharedImageVersion: { + serializedName: "properties.sharedImageVersion", + type: { + name: "String" + } + }, + osType: { + readOnly: true, + 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: { + readOnly: true, + serializedName: "properties.fqdn", + type: { + name: "String" + } + }, + labSubnetName: { + serializedName: "properties.labSubnetName", + type: { + name: "String" + } + }, + labVirtualNetworkId: { + serializedName: "properties.labVirtualNetworkId", + type: { + name: "String" + } + }, + disallowPublicIpAddress: { + serializedName: "properties.disallowPublicIpAddress", + defaultValue: false, + type: { + name: "Boolean" + } + }, + artifacts: { + serializedName: "properties.artifacts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArtifactInstallProperties" + } + } + } + }, + deploymentStatus: { + serializedName: "properties.artifactDeploymentStatus.deploymentStatus", + type: { + name: "String" + } + }, + artifactsApplied: { + serializedName: "properties.artifactDeploymentStatus.artifactsApplied", + type: { + name: "Number" + } + }, + totalArtifacts: { + serializedName: "properties.artifactDeploymentStatus.totalArtifacts", + type: { + name: "Number" + } + }, + offer: { + serializedName: "properties.galleryImageReference.offer", + type: { + name: "String" + } + }, + publisher: { + serializedName: "properties.galleryImageReference.publisher", + type: { + name: "String" + } + }, + sku: { + serializedName: "properties.galleryImageReference.sku", + type: { + name: "String" + } + }, + osType1: { + serializedName: "properties.galleryImageReference.osType", + type: { + name: "String" + } + }, + version: { + serializedName: "properties.galleryImageReference.version", + type: { + name: "String" + } + }, + planId: { + serializedName: "properties.planId", + type: { + name: "String" + } + }, + osDiskSizeGb: { + serializedName: "properties.osDiskSizeGb", + type: { + name: "Number" + } + }, + statuses: { + serializedName: "properties.computeVm.statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeVmInstanceViewStatus" + } + } + } + }, + osType2: { + serializedName: "properties.computeVm.osType", + type: { + name: "String" + } + }, + vmSize: { + serializedName: "properties.computeVm.vmSize", + type: { + name: "String" + } + }, + networkInterfaceId: { + serializedName: "properties.computeVm.networkInterfaceId", + type: { + name: "String" + } + }, + osDiskId: { + serializedName: "properties.computeVm.osDiskId", + type: { + name: "String" + } + }, + dataDiskIds: { + serializedName: "properties.computeVm.dataDiskIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + dataDisks: { + serializedName: "properties.computeVm.dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeDataDisk" + } + } + } + }, + virtualNetworkId: { + serializedName: "properties.networkInterface.virtualNetworkId", + type: { + name: "String" + } + }, + subnetId: { + serializedName: "properties.networkInterface.subnetId", + type: { + name: "String" + } + }, + publicIpAddressId: { + serializedName: "properties.networkInterface.publicIpAddressId", + type: { + name: "String" + } + }, + publicIpAddress: { + serializedName: "properties.networkInterface.publicIpAddress", + type: { + name: "String" + } + }, + privateIpAddress: { + serializedName: "properties.networkInterface.privateIpAddress", + type: { + name: "String" + } + }, + dnsName: { + serializedName: "properties.networkInterface.dnsName", + type: { + name: "String" + } + }, + rdpAuthority: { + serializedName: "properties.networkInterface.rdpAuthority", + type: { + name: "String" + } + }, + sshAuthority: { + serializedName: "properties.networkInterface.sshAuthority", + type: { + name: "String" + } + }, + inboundNatRules: { + serializedName: "properties.networkInterface.sharedPublicIpAddressConfiguration.inboundNatRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundNatRule" + } + } + } + }, + virtualMachineId: { + readOnly: true, + serializedName: "properties.applicableSchedule.id", type: { name: "String" } }, - targetResourceId: { - serializedName: "targetResourceId", + virtualMachineName: { + readOnly: true, + serializedName: "properties.applicableSchedule.name", type: { name: "String" } - } - } - } -}; - -export const Secret: msRest.CompositeMapper = { - serializedName: "Secret", - type: { - name: "Composite", - className: "Secret", - modelProperties: { - ...Resource.type.modelProperties, - value: { - serializedName: "properties.value", + }, + virtualMachineType: { + readOnly: true, + serializedName: "properties.applicableSchedule.type", type: { name: "String" } }, - provisioningState: { + id1: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.id", type: { name: "String" } }, - uniqueIdentifier: { + name1: { readOnly: true, - serializedName: "properties.uniqueIdentifier", + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.name", type: { name: "String" } - } - } - } -}; - -export const SecretFragment: msRest.CompositeMapper = { - serializedName: "SecretFragment", - type: { - name: "Composite", - className: "SecretFragment", - modelProperties: { - ...UpdateResource.type.modelProperties, - value: { - serializedName: "properties.value", + }, + type1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.type", type: { name: "String" } - } - } - } -}; - -export const ServiceFabric: msRest.CompositeMapper = { - serializedName: "ServiceFabric", - type: { - name: "Composite", - className: "ServiceFabric", - modelProperties: { - ...Resource.type.modelProperties, - externalServiceFabricId: { - serializedName: "properties.externalServiceFabricId", + }, + virtualMachineTags: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - environmentId: { - serializedName: "properties.environmentId", + virtualMachineLocation: { + required: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.location", type: { name: "String" } }, - applicableSchedule: { - readOnly: true, - serializedName: "properties.applicableSchedule", + status: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.status", + defaultValue: 'Disabled', type: { - name: "Composite", - className: "ApplicableSchedule" + name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + taskType: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.taskType", type: { name: "String" } }, - uniqueIdentifier: { - readOnly: true, - serializedName: "properties.uniqueIdentifier", + weekdays: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.weeklyRecurrence.weekdays", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const ServiceFabricFragment: msRest.CompositeMapper = { - serializedName: "ServiceFabricFragment", - type: { - name: "Composite", - className: "ServiceFabricFragment", - modelProperties: { - ...UpdateResource.type.modelProperties, - externalServiceFabricId: { - serializedName: "properties.externalServiceFabricId", + }, + time: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.weeklyRecurrence.time", type: { name: "String" } }, - environmentId: { - serializedName: "properties.environmentId", + time1: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.dailyRecurrence.time", type: { name: "String" } - } - } - } -}; - -export const ServiceRunner: msRest.CompositeMapper = { - serializedName: "ServiceRunner", - type: { - name: "Composite", - className: "ServiceRunner", - modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + }, + minute: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.hourlyRecurrence.minute", type: { - name: "Composite", - className: "IdentityProperties" + name: "Number" } - } - } - } -}; - -export const ShutdownNotificationContent: msRest.CompositeMapper = { - serializedName: "ShutdownNotificationContent", - type: { - name: "Composite", - className: "ShutdownNotificationContent", - modelProperties: { - skipUrl: { - serializedName: "skipUrl", + }, + timeZoneId: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.timeZoneId", type: { name: "String" } }, - delayUrl60: { - serializedName: "delayUrl60", + status1: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.status", + defaultValue: 'Disabled', type: { name: "String" } }, - delayUrl120: { - serializedName: "delayUrl120", + timeInMinutes: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.timeInMinutes", + type: { + name: "Number" + } + }, + webhookUrl: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.webhookUrl", type: { name: "String" } }, - vmName: { - serializedName: "vmName", + emailRecipient: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.emailRecipient", type: { name: "String" } }, - guid: { - serializedName: "guid", + notificationLocale: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.notificationSettings.notificationLocale", type: { name: "String" } }, - owner: { - serializedName: "owner", + createdDate1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.createdDate", + type: { + name: "DateTime" + } + }, + targetResourceId: { + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.targetResourceId", type: { name: "String" } }, - vmUrl: { - serializedName: "vmUrl", + provisioningState: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.provisioningState", type: { name: "String" } }, - minutesUntilShutdown: { - serializedName: "minutesUntilShutdown", + uniqueIdentifier: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.properties.uniqueIdentifier", type: { name: "String" } }, - eventType: { - serializedName: "eventType", + scheduleSystemData: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsShutdown.systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + id2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.id", type: { name: "String" } }, - text: { - serializedName: "text", + name2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.name", type: { name: "String" } }, - subscriptionId: { - serializedName: "subscriptionId", + type2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.type", type: { name: "String" } }, - resourceGroupName: { - serializedName: "resourceGroupName", + tags1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location1: { + required: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.location", type: { name: "String" } }, - labName: { - serializedName: "labName", + status2: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.status", + defaultValue: 'Disabled', type: { name: "String" } - } - } - } -}; - -export const Subnet: msRest.CompositeMapper = { - serializedName: "Subnet", - type: { - name: "Composite", - className: "Subnet", - modelProperties: { - resourceId: { - serializedName: "resourceId", + }, + taskType1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.taskType", type: { name: "String" } }, - labSubnetName: { - serializedName: "labSubnetName", + weekdays1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.weeklyRecurrence.weekdays", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + time2: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.weeklyRecurrence.time", type: { name: "String" } }, - allowPublicIp: { - serializedName: "allowPublicIp", + time3: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.dailyRecurrence.time", type: { name: "String" } - } - } - } -}; - -export const SubnetFragment: msRest.CompositeMapper = { - serializedName: "SubnetFragment", - type: { - name: "Composite", - className: "SubnetFragment", - modelProperties: { - resourceId: { - serializedName: "resourceId", + }, + minute1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.hourlyRecurrence.minute", + type: { + name: "Number" + } + }, + timeZoneId1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.timeZoneId", type: { name: "String" } }, - labSubnetName: { - serializedName: "labSubnetName", + status3: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.status", + defaultValue: 'Disabled', type: { name: "String" } }, - allowPublicIp: { - serializedName: "allowPublicIp", + timeInMinutes1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.timeInMinutes", + type: { + name: "Number" + } + }, + webhookUrl1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.webhookUrl", type: { name: "String" } - } - } - } -}; - -export const SubnetSharedPublicIpAddressConfiguration: msRest.CompositeMapper = { - serializedName: "SubnetSharedPublicIpAddressConfiguration", - type: { - name: "Composite", - className: "SubnetSharedPublicIpAddressConfiguration", - modelProperties: { - allowedPorts: { - serializedName: "allowedPorts", + }, + emailRecipient1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.emailRecipient", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Port" - } - } + name: "String" } - } - } - } -}; - -export const SubnetOverride: msRest.CompositeMapper = { - serializedName: "SubnetOverride", - type: { - name: "Composite", - className: "SubnetOverride", - modelProperties: { - resourceId: { - serializedName: "resourceId", + }, + notificationLocale1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.notificationSettings.notificationLocale", type: { name: "String" } }, - labSubnetName: { - serializedName: "labSubnetName", + createdDate2: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.createdDate", + type: { + name: "DateTime" + } + }, + targetResourceId1: { + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.targetResourceId", type: { name: "String" } }, - useInVmCreationPermission: { - serializedName: "useInVmCreationPermission", + provisioningState1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.provisioningState", type: { name: "String" } }, - usePublicIpAddressPermission: { - serializedName: "usePublicIpAddressPermission", + uniqueIdentifier1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.properties.uniqueIdentifier", type: { name: "String" } }, - sharedPublicIpAddressConfiguration: { - serializedName: "sharedPublicIpAddressConfiguration", + systemData1: { + readOnly: true, + serializedName: "properties.applicableSchedule.properties.labVmsStartup.systemData", type: { name: "Composite", - className: "SubnetSharedPublicIpAddressConfiguration" + className: "SystemData" } }, - virtualNetworkPoolName: { - serializedName: "virtualNetworkPoolName", + systemData2: { + readOnly: true, + serializedName: "properties.applicableSchedule.systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } - } - } - } -}; - -export const SubnetSharedPublicIpAddressConfigurationFragment: msRest.CompositeMapper = { - serializedName: "SubnetSharedPublicIpAddressConfigurationFragment", - type: { - name: "Composite", - className: "SubnetSharedPublicIpAddressConfigurationFragment", - modelProperties: { - allowedPorts: { - serializedName: "allowedPorts", + }, + expirationDate: { + serializedName: "properties.expirationDate", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PortFragment" - } - } + name: "DateTime" } - } - } - } -}; - -export const SubnetOverrideFragment: msRest.CompositeMapper = { - serializedName: "SubnetOverrideFragment", - type: { - name: "Composite", - className: "SubnetOverrideFragment", - modelProperties: { - resourceId: { - serializedName: "resourceId", + }, + allowClaim: { + serializedName: "properties.allowClaim", + defaultValue: false, type: { - name: "String" + name: "Boolean" } }, - labSubnetName: { - serializedName: "labSubnetName", + storageType: { + serializedName: "properties.storageType", + defaultValue: 'Standard', type: { name: "String" } }, - useInVmCreationPermission: { - serializedName: "useInVmCreationPermission", + virtualMachineCreationSource: { + readOnly: true, + serializedName: "properties.virtualMachineCreationSource", type: { name: "String" } }, - usePublicIpAddressPermission: { - serializedName: "usePublicIpAddressPermission", + environmentId: { + serializedName: "properties.environmentId", type: { name: "String" } }, - sharedPublicIpAddressConfiguration: { - serializedName: "sharedPublicIpAddressConfiguration", + dataDiskParameters: { + serializedName: "properties.dataDiskParameters", type: { - name: "Composite", - className: "SubnetSharedPublicIpAddressConfigurationFragment" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataDiskProperties" + } + } } }, - virtualNetworkPoolName: { - serializedName: "virtualNetworkPoolName", + scheduleParameters: { + serializedName: "properties.scheduleParameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScheduleCreationParameter" + } + } } - } - } - } -}; - -export const UserIdentity: msRest.CompositeMapper = { - serializedName: "UserIdentity", - type: { - name: "Composite", - className: "UserIdentity", - modelProperties: { - principalName: { - serializedName: "principalName", + }, + lastKnownPowerState: { + readOnly: true, + serializedName: "properties.lastKnownPowerState", type: { name: "String" } }, - principalId: { - serializedName: "principalId", + canApplyArtifacts: { + readOnly: true, + serializedName: "properties.canApplyArtifacts", type: { - name: "String" + name: "Boolean" } }, - tenantId: { - serializedName: "tenantId", + provisioningState2: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - objectId: { - serializedName: "objectId", + uniqueIdentifier2: { + readOnly: true, + serializedName: "properties.uniqueIdentifier", type: { name: "String" } }, - appId: { - serializedName: "appId", + systemData: { + readOnly: true, + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const UserSecretStore: msRest.CompositeMapper = { - serializedName: "UserSecretStore", +export const VirtualMachineFragment: msRest.CompositeMapper = { + serializedName: "VirtualMachineFragment", type: { name: "Composite", - className: "UserSecretStore", + className: "VirtualMachineFragment", modelProperties: { - keyVaultUri: { - serializedName: "keyVaultUri", - type: { - name: "String" - } - }, - keyVaultId: { - serializedName: "keyVaultId", - type: { - name: "String" - } - } + ...Tags.type.modelProperties } } }; -export const User: msRest.CompositeMapper = { - serializedName: "User", +export const VirtualNetwork: msRest.CompositeMapper = { + serializedName: "VirtualNetwork", type: { name: "Composite", - className: "User", + className: "VirtualNetwork", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "properties.identity", + ...TrackedResource.type.modelProperties, + allowedSubnets: { + serializedName: "properties.allowedSubnets", type: { - name: "Composite", - className: "UserIdentity" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Subnet" + } + } } }, - secretStore: { - serializedName: "properties.secretStore", + description: { + serializedName: "properties.description", type: { - name: "Composite", - className: "UserSecretStore" + name: "String" + } + }, + externalProviderResourceId: { + serializedName: "properties.externalProviderResourceId", + type: { + name: "String" + } + }, + externalSubnets: { + readOnly: true, + serializedName: "properties.externalSubnets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExternalSubnet" + } + } + } + }, + subnetOverrides: { + serializedName: "properties.subnetOverrides", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubnetOverride" + } + } } }, createdDate: { @@ -5936,65 +6232,51 @@ export const User: msRest.CompositeMapper = { type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } }; -export const UserIdentityFragment: msRest.CompositeMapper = { - serializedName: "UserIdentityFragment", +export const VirtualNetworkFragment: msRest.CompositeMapper = { + serializedName: "VirtualNetworkFragment", type: { name: "Composite", - className: "UserIdentityFragment", + className: "VirtualNetworkFragment", modelProperties: { - principalName: { - serializedName: "principalName", - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - type: { - name: "String" - } - }, - objectId: { - serializedName: "objectId", - type: { - name: "String" - } - }, - appId: { - serializedName: "appId", - type: { - name: "String" - } - } + ...Tags.type.modelProperties } } }; -export const UserSecretStoreFragment: msRest.CompositeMapper = { - serializedName: "UserSecretStoreFragment", +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", type: { name: "Composite", - className: "UserSecretStoreFragment", + className: "ProxyResource", modelProperties: { - keyVaultUri: { - serializedName: "keyVaultUri", - type: { - name: "String" - } - }, - keyVaultId: { - serializedName: "keyVaultId", + ...Resource.type.modelProperties + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", type: { name: "String" } @@ -6003,104 +6285,134 @@ export const UserSecretStoreFragment: msRest.CompositeMapper = { } }; -export const UserFragment: msRest.CompositeMapper = { - serializedName: "UserFragment", +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", type: { name: "Composite", - className: "UserFragment", + className: "ErrorAdditionalInfo", modelProperties: { - ...UpdateResource.type.modelProperties, - identity: { - serializedName: "properties.identity", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Composite", - className: "UserIdentityFragment" + name: "String" } }, - secretStore: { - serializedName: "properties.secretStore", + info: { + readOnly: true, + serializedName: "info", type: { - name: "Composite", - className: "UserSecretStoreFragment" + name: "Object" } } } } }; -export const VirtualNetwork: msRest.CompositeMapper = { - serializedName: "VirtualNetwork", +export const ErrorDetail: msRest.CompositeMapper = { + serializedName: "ErrorDetail", type: { name: "Composite", - className: "VirtualNetwork", + className: "ErrorDetail", modelProperties: { - ...Resource.type.modelProperties, - allowedSubnets: { - serializedName: "properties.allowedSubnets", + code: { + readOnly: true, + serializedName: "code", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Subnet" - } - } + name: "String" } }, - description: { - serializedName: "properties.description", + message: { + readOnly: true, + serializedName: "message", type: { name: "String" } }, - externalProviderResourceId: { - serializedName: "properties.externalProviderResourceId", + target: { + readOnly: true, + serializedName: "target", type: { name: "String" } }, - externalSubnets: { + details: { readOnly: true, - serializedName: "properties.externalSubnets", + serializedName: "details", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ExternalSubnet" + className: "ErrorDetail" } } } }, - subnetOverrides: { - serializedName: "properties.subnetOverrides", + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubnetOverride" + className: "ErrorAdditionalInfo" } } } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + readOnly: true, + serializedName: "provider", + type: { + name: "String" + } }, - createdDate: { + resource: { readOnly: true, - serializedName: "properties.createdDate", + serializedName: "resource", type: { - name: "DateTime" + name: "String" } }, - provisioningState: { + operation: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "operation", type: { name: "String" } }, - uniqueIdentifier: { + description: { readOnly: true, - serializedName: "properties.uniqueIdentifier", + serializedName: "description", type: { name: "String" } @@ -6109,67 +6421,66 @@ export const VirtualNetwork: msRest.CompositeMapper = { } }; -export const VirtualNetworkFragment: msRest.CompositeMapper = { - serializedName: "VirtualNetworkFragment", +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", type: { name: "Composite", - className: "VirtualNetworkFragment", + className: "Operation", modelProperties: { - ...UpdateResource.type.modelProperties, - allowedSubnets: { - serializedName: "properties.allowedSubnets", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubnetFragment" - } - } + name: "String" } }, - description: { - serializedName: "properties.description", + isDataAction: { + readOnly: true, + serializedName: "isDataAction", type: { - name: "String" + name: "Boolean" } }, - externalProviderResourceId: { - serializedName: "properties.externalProviderResourceId", + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + readOnly: true, + serializedName: "origin", type: { name: "String" } }, - subnetOverrides: { - serializedName: "properties.subnetOverrides", + actionType: { + readOnly: true, + serializedName: "actionType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubnetOverrideFragment" - } - } + name: "String" } } } } }; -export const ProviderOperationResult: msRest.CompositeMapper = { - serializedName: "ProviderOperationResult", +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", type: { name: "Composite", - className: "ProviderOperationResult", + className: "OperationListResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OperationMetadata" + className: "Operation" } } } @@ -6192,6 +6503,7 @@ export const LabList: msRest.CompositeMapper = { className: "LabList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6213,34 +6525,6 @@ export const LabList: msRest.CompositeMapper = { } }; -export const LabVhdList: msRest.CompositeMapper = { - serializedName: "LabVhdList", - type: { - name: "Composite", - className: "LabVhdList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LabVhd" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const ScheduleList: msRest.CompositeMapper = { serializedName: "ScheduleList", type: { @@ -6248,6 +6532,7 @@ export const ScheduleList: msRest.CompositeMapper = { className: "ScheduleList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6276,6 +6561,7 @@ export const ArtifactSourceList: msRest.CompositeMapper = { className: "ArtifactSourceList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6304,6 +6590,7 @@ export const ArmTemplateList: msRest.CompositeMapper = { className: "ArmTemplateList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6332,6 +6619,7 @@ export const ArtifactList: msRest.CompositeMapper = { className: "ArtifactList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6360,6 +6648,7 @@ export const CustomImageList: msRest.CompositeMapper = { className: "CustomImageList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6388,6 +6677,7 @@ export const FormulaList: msRest.CompositeMapper = { className: "FormulaList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6416,6 +6706,7 @@ export const GalleryImageList: msRest.CompositeMapper = { className: "GalleryImageList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6444,6 +6735,7 @@ export const NotificationChannelList: msRest.CompositeMapper = { className: "NotificationChannelList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6465,6 +6757,35 @@ export const NotificationChannelList: msRest.CompositeMapper = { } }; +export const PolicySetList: msRest.CompositeMapper = { + serializedName: "PolicySetList", + type: { + name: "Composite", + className: "PolicySetList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicySet" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const PolicyList: msRest.CompositeMapper = { serializedName: "PolicyList", type: { @@ -6472,6 +6793,7 @@ export const PolicyList: msRest.CompositeMapper = { className: "PolicyList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6493,6 +6815,35 @@ export const PolicyList: msRest.CompositeMapper = { } }; +export const LabSecretList: msRest.CompositeMapper = { + serializedName: "LabSecretList", + type: { + name: "Composite", + className: "LabSecretList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LabSecret" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ServiceRunnerList: msRest.CompositeMapper = { serializedName: "ServiceRunnerList", type: { @@ -6500,6 +6851,7 @@ export const ServiceRunnerList: msRest.CompositeMapper = { className: "ServiceRunnerList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6521,6 +6873,64 @@ export const ServiceRunnerList: msRest.CompositeMapper = { } }; +export const SharedGalleryList: msRest.CompositeMapper = { + serializedName: "SharedGalleryList", + type: { + name: "Composite", + className: "SharedGalleryList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGallery" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SharedImageList: msRest.CompositeMapper = { + serializedName: "SharedImageList", + type: { + name: "Composite", + className: "SharedImageList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedImage" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const UserList: msRest.CompositeMapper = { serializedName: "UserList", type: { @@ -6528,6 +6938,7 @@ export const UserList: msRest.CompositeMapper = { className: "UserList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6556,6 +6967,7 @@ export const DiskList: msRest.CompositeMapper = { className: "DiskList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6577,20 +6989,21 @@ export const DiskList: msRest.CompositeMapper = { } }; -export const DtlEnvironmentList: msRest.CompositeMapper = { - serializedName: "DtlEnvironmentList", +export const EnvironmentList: msRest.CompositeMapper = { + serializedName: "EnvironmentList", type: { name: "Composite", - className: "DtlEnvironmentList", + className: "EnvironmentList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DtlEnvironment" + className: "Environment" } } } @@ -6612,6 +7025,7 @@ export const SecretList: msRest.CompositeMapper = { className: "SecretList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6640,6 +7054,7 @@ export const ServiceFabricList: msRest.CompositeMapper = { className: "ServiceFabricList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6661,20 +7076,21 @@ export const ServiceFabricList: msRest.CompositeMapper = { } }; -export const LabVirtualMachineList: msRest.CompositeMapper = { - serializedName: "LabVirtualMachineList", +export const VirtualMachineList: msRest.CompositeMapper = { + serializedName: "VirtualMachineList", type: { name: "Composite", - className: "LabVirtualMachineList", + className: "VirtualMachineList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "LabVirtualMachine" + className: "VirtualMachine" } } } @@ -6696,6 +7112,7 @@ export const VirtualNetworkList: msRest.CompositeMapper = { className: "VirtualNetworkList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -6716,3 +7133,32 @@ export const VirtualNetworkList: msRest.CompositeMapper = { } } }; + +export const BastionHostList: msRest.CompositeMapper = { + serializedName: "BastionHostList", + type: { + name: "Composite", + className: "BastionHostList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BastionHost" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/notificationChannelsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/notificationChannelsMappers.ts index 0090ea0baf9e..32ce348b8bd0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/notificationChannelsMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/notificationChannelsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,124 +8,84 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationChannelList, NotificationSettings, - NotificationSettingsFragment, NotifyParameters, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/operationsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/operationsMappers.ts index 2ea848782dbd..6003ce6206c0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/operationsMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/operationsMappers.ts @@ -1,13 +1,14 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - CloudError, - OperationError, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, OperationResult } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/parameters.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/parameters.ts index 3ba8b8e45ccc..32be14c75e97 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/parameters.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -25,7 +24,9 @@ export const apiVersion: msRest.OperationQueryParameter = { mapper: { required: true, serializedName: "api-version", - defaultValue: '2018-09-15', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -75,16 +76,6 @@ export const labName: msRest.OperationURLParameter = { } } }; -export const locationName: msRest.OperationURLParameter = { - parameterPath: "locationName", - mapper: { - required: true, - serializedName: "locationName", - type: { - name: "String" - } - } -}; export const name: msRest.OperationURLParameter = { parameterPath: "name", mapper: { @@ -133,6 +124,10 @@ export const resourceGroupName: msRest.OperationURLParameter = { mapper: { required: true, serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1 + }, type: { name: "String" } @@ -148,11 +143,24 @@ export const serviceFabricName: msRest.OperationURLParameter = { } } }; +export const sharedGalleryName: msRest.OperationURLParameter = { + parameterPath: "sharedGalleryName", + mapper: { + required: true, + serializedName: "sharedGalleryName", + type: { + name: "String" + } + } +}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { required: true, serializedName: "subscriptionId", + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -190,3 +198,13 @@ export const virtualMachineName: msRest.OperationURLParameter = { } } }; +export const virtualNetworkName: msRest.OperationURLParameter = { + parameterPath: "virtualNetworkName", + mapper: { + required: true, + serializedName: "virtualNetworkName", + type: { + name: "String" + } + } +}; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/policiesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/policiesMappers.ts index bfa35688c503..ca187d6b829f 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/policiesMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/policiesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, PolicyList, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/policySetsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/policySetsMappers.ts index b504a82a986f..6e9f7df401e9 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/policySetsMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/policySetsMappers.ts @@ -1,16 +1,76 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - CloudError, + ApplicableSchedule, + ApplicableScheduleProperties, + ArmTemplate, + ArmTemplateParameterProperties, + Artifact, + ArtifactInstallProperties, + ArtifactParameterProperties, + ArtifactSource, + AzureEntityResource, + BaseResource, + BastionHost, + ComputeDataDisk, + ComputeVmInstanceViewStatus, + Cost, + CostThresholdProperties, + CustomImage, + DataDiskProperties, + DataDiskStorageTypeInfo, + DayDetails, + Disk, + Environment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, EvaluatePoliciesProperties, EvaluatePoliciesRequest, EvaluatePoliciesResponse, + Event, + ExternalSubnet, + Formula, + GalleryImage, + HourDetails, + ImageVersionProperties, + InboundNatRule, + Lab, + LabCost, + LabCostDetailsProperties, + LabResourceCostProperties, + LabSecret, + NotificationChannel, + NotificationSettings, + ParametersValueFileInfo, + Policy, + PolicySet, + PolicySetList, PolicySetResult, - PolicyViolation + PolicyViolation, + Port, + ProxyResource, + Resource, + Schedule, + ScheduleCreationParameter, + ScheduleProperties, + Secret, + ServiceFabric, + ServiceRunner, + SharedGallery, + SharedImage, + Subnet, + SubnetOverride, + SystemData, + TrackedResource, + User, + VirtualMachine, + VirtualNetwork, + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/providerOperationsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/providerOperationsMappers.ts index 0e3a2c313781..fddc3077d64b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/providerOperationsMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/providerOperationsMappers.ts @@ -1,14 +1,16 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - CloudError, - OperationMetadata, - OperationMetadataDisplay, - ProviderOperationResult + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Operation, + OperationDisplay, + OperationListResult } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/schedulesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/schedulesMappers.ts index 857fc155cbef..7e169346c0f9 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/schedulesMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/schedulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, ScheduleList, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/secretsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/secretsMappers.ts index 423e8cbee700..de64b498d4e7 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/secretsMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/secretsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, SecretList, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/serviceFabricSchedulesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/serviceFabricSchedulesMappers.ts index 857fc155cbef..7e169346c0f9 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/serviceFabricSchedulesMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/serviceFabricSchedulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, ScheduleList, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/serviceFabricsMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/serviceFabricsMappers.ts index d0f3530182c3..d39ab88571b1 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/serviceFabricsMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/serviceFabricsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceFabricList, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/serviceRunnersMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/serviceRunnersMappers.ts index 320d4fa5459e..153e3e17ad8d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/serviceRunnersMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/serviceRunnersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,73 +8,64 @@ export { ApplicableSchedule, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, Artifact, - ArtifactDeploymentStatusProperties, ArtifactInstallProperties, ArtifactParameterProperties, ArtifactSource, - AttachNewDataDiskOptions, + AzureEntityResource, BaseResource, - BulkCreationParameters, - CloudError, + BastionHost, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, - CustomImagePropertiesCustom, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromVm, DataDiskProperties, DataDiskStorageTypeInfo, DayDetails, Disk, - DtlEnvironment, - EnvironmentDeploymentProperties, + Environment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, ExternalSubnet, Formula, - FormulaPropertiesFromVm, GalleryImage, - GalleryImageReference, HourDetails, - IdentityProperties, + ImageVersionProperties, InboundNatRule, Lab, - LabAnnouncementProperties, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabResourceCostProperties, - LabSupportProperties, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LinuxOsInfo, - NetworkInterfaceProperties, + LabSecret, NotificationChannel, NotificationSettings, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, + PolicySet, Port, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, + ScheduleProperties, Secret, ServiceFabric, ServiceRunner, ServiceRunnerList, - SharedPublicIpAddressConfiguration, + SharedGallery, + SharedImage, Subnet, SubnetOverride, - SubnetSharedPublicIpAddressConfiguration, - TargetCostProperties, + SystemData, + TrackedResource, User, - UserIdentity, - UserSecretStore, + VirtualMachine, VirtualNetwork, - WeekDetails, - WindowsOsInfo + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/sharedGalleriesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/sharedGalleriesMappers.ts new file mode 100644 index 000000000000..c4cb795403a4 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/sharedGalleriesMappers.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApplicableSchedule, + ApplicableScheduleProperties, + ArmTemplate, + ArmTemplateParameterProperties, + Artifact, + ArtifactInstallProperties, + ArtifactParameterProperties, + ArtifactSource, + ArtifactSourceFragment, + AzureEntityResource, + BaseResource, + BastionHost, + BastionHostFragment, + ComputeDataDisk, + ComputeVmInstanceViewStatus, + Cost, + CostThresholdProperties, + CustomImage, + CustomImageFragment, + DataDiskProperties, + DataDiskStorageTypeInfo, + DayDetails, + Disk, + DiskFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Event, + ExternalSubnet, + Formula, + FormulaFragment, + GalleryImage, + HourDetails, + ImageVersionProperties, + InboundNatRule, + Lab, + LabCost, + LabCostDetailsProperties, + LabFragment, + LabResourceCostProperties, + LabSecret, + LabSecretFragment, + NotificationChannel, + NotificationChannelFragment, + NotificationSettings, + ParametersValueFileInfo, + Policy, + PolicyFragment, + PolicySet, + Port, + ProxyResource, + Resource, + Schedule, + ScheduleCreationParameter, + ScheduleFragment, + ScheduleProperties, + Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, + ServiceRunner, + SharedGallery, + SharedGalleryFragment, + SharedGalleryList, + SharedImage, + SharedImageFragment, + Subnet, + SubnetOverride, + SystemData, + Tags, + TrackedResource, + User, + UserFragment, + VirtualMachine, + VirtualMachineFragment, + VirtualNetwork, + VirtualNetworkFragment, + WeekDetails +} from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/sharedImagesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/sharedImagesMappers.ts new file mode 100644 index 000000000000..f3ce53f414a7 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/sharedImagesMappers.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApplicableSchedule, + ApplicableScheduleProperties, + ArmTemplate, + ArmTemplateParameterProperties, + Artifact, + ArtifactInstallProperties, + ArtifactParameterProperties, + ArtifactSource, + ArtifactSourceFragment, + AzureEntityResource, + BaseResource, + BastionHost, + BastionHostFragment, + ComputeDataDisk, + ComputeVmInstanceViewStatus, + Cost, + CostThresholdProperties, + CustomImage, + CustomImageFragment, + DataDiskProperties, + DataDiskStorageTypeInfo, + DayDetails, + Disk, + DiskFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Event, + ExternalSubnet, + Formula, + FormulaFragment, + GalleryImage, + HourDetails, + ImageVersionProperties, + InboundNatRule, + Lab, + LabCost, + LabCostDetailsProperties, + LabFragment, + LabResourceCostProperties, + LabSecret, + LabSecretFragment, + NotificationChannel, + NotificationChannelFragment, + NotificationSettings, + ParametersValueFileInfo, + Policy, + PolicyFragment, + PolicySet, + Port, + ProxyResource, + Resource, + Schedule, + ScheduleCreationParameter, + ScheduleFragment, + ScheduleProperties, + Secret, + SecretFragment, + ServiceFabric, + ServiceFabricFragment, + ServiceRunner, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, + SharedImageList, + Subnet, + SubnetOverride, + SystemData, + Tags, + TrackedResource, + User, + UserFragment, + VirtualMachine, + VirtualMachineFragment, + VirtualNetwork, + VirtualNetworkFragment, + WeekDetails +} from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/usersMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/usersMappers.ts index 58a07b7aa6e4..92d8f839ed66 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/usersMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/usersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, UserList, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/virtualMachineSchedulesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/virtualMachineSchedulesMappers.ts index 857fc155cbef..7e169346c0f9 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/virtualMachineSchedulesMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/virtualMachineSchedulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, ScheduleList, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/virtualMachinesMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/virtualMachinesMappers.ts index 01e0bed10615..383462ba2485 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/virtualMachinesMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/virtualMachinesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,127 +8,87 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ApplyArtifactsRequest, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, DetachDataDiskProperties, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LabVirtualMachineList, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, RdpConnection, ResizeLabVirtualMachineProperties, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, + VirtualMachineList, VirtualNetwork, VirtualNetworkFragment, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/virtualNetworksMappers.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/virtualNetworksMappers.ts index a7d4f33a1886..87dbac9dacf4 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/virtualNetworksMappers.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/virtualNetworksMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,123 +8,83 @@ export { ApplicableSchedule, - ApplicableScheduleFragment, + ApplicableScheduleProperties, ArmTemplate, ArmTemplateParameterProperties, - ArmTemplateParameterPropertiesFragment, Artifact, - ArtifactDeploymentStatusProperties, - ArtifactDeploymentStatusPropertiesFragment, ArtifactInstallProperties, - ArtifactInstallPropertiesFragment, ArtifactParameterProperties, - ArtifactParameterPropertiesFragment, ArtifactSource, ArtifactSourceFragment, - AttachNewDataDiskOptions, - AttachNewDataDiskOptionsFragment, + AzureEntityResource, BaseResource, - BulkCreationParameters, - BulkCreationParametersFragment, - CloudError, + BastionHost, + BastionHostFragment, ComputeDataDisk, ComputeVmInstanceViewStatus, - ComputeVmProperties, + Cost, CostThresholdProperties, CustomImage, CustomImageFragment, - CustomImagePropertiesCustom, - CustomImagePropertiesCustomFragment, - CustomImagePropertiesFromPlan, - CustomImagePropertiesFromPlanFragment, - CustomImagePropertiesFromVm, - CustomImagePropertiesFromVmFragment, DataDiskProperties, - DataDiskPropertiesFragment, DataDiskStorageTypeInfo, - DataDiskStorageTypeInfoFragment, DayDetails, - DayDetailsFragment, Disk, DiskFragment, - DtlEnvironment, - DtlEnvironmentFragment, - EnvironmentDeploymentProperties, - EnvironmentDeploymentPropertiesFragment, + Environment, + EnvironmentFragment, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Event, - EventFragment, ExternalSubnet, Formula, FormulaFragment, - FormulaPropertiesFromVm, - FormulaPropertiesFromVmFragment, GalleryImage, - GalleryImageReference, - GalleryImageReferenceFragment, HourDetails, - HourDetailsFragment, - IdentityProperties, + ImageVersionProperties, InboundNatRule, - InboundNatRuleFragment, Lab, - LabAnnouncementProperties, - LabAnnouncementPropertiesFragment, LabCost, LabCostDetailsProperties, - LabCostSummaryProperties, LabFragment, LabResourceCostProperties, - LabSupportProperties, - LabSupportPropertiesFragment, - LabVirtualMachine, - LabVirtualMachineCreationParameter, - LabVirtualMachineCreationParameterFragment, - LabVirtualMachineFragment, - LinuxOsInfo, - LinuxOsInfoFragment, - NetworkInterfaceProperties, - NetworkInterfacePropertiesFragment, + LabSecret, + LabSecretFragment, NotificationChannel, NotificationChannelFragment, NotificationSettings, - NotificationSettingsFragment, ParametersValueFileInfo, - PercentageCostThresholdProperties, Policy, PolicyFragment, + PolicySet, Port, - PortFragment, + ProxyResource, Resource, Schedule, ScheduleCreationParameter, - ScheduleCreationParameterFragment, ScheduleFragment, + ScheduleProperties, Secret, SecretFragment, ServiceFabric, ServiceFabricFragment, ServiceRunner, - SharedPublicIpAddressConfiguration, - SharedPublicIpAddressConfigurationFragment, + SharedGallery, + SharedGalleryFragment, + SharedImage, + SharedImageFragment, Subnet, - SubnetFragment, SubnetOverride, - SubnetOverrideFragment, - SubnetSharedPublicIpAddressConfiguration, - SubnetSharedPublicIpAddressConfigurationFragment, - TargetCostProperties, - UpdateResource, + SystemData, + Tags, + TrackedResource, User, UserFragment, - UserIdentity, - UserIdentityFragment, - UserSecretStore, - UserSecretStoreFragment, + VirtualMachine, + VirtualMachineFragment, VirtualNetwork, VirtualNetworkFragment, VirtualNetworkList, - WeekDetails, - WeekDetailsFragment, - WindowsOsInfo, - WindowsOsInfoFragment + WeekDetails } from "../models/mappers"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/armTemplates.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/armTemplates.ts index 321013ad7c50..2fa7ed474f98 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/armTemplates.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/armTemplates.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,7 +27,7 @@ export class ArmTemplates { /** * List azure resource manager templates in a given artifact source. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param [options] The optional parameters @@ -36,14 +35,14 @@ export class ArmTemplates { */ list(resourceGroupName: string, labName: string, artifactSourceName: string, options?: Models.ArmTemplatesListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param callback The callback */ list(resourceGroupName: string, labName: string, artifactSourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param options The optional parameters @@ -64,32 +63,32 @@ export class ArmTemplates { /** * Get azure resource manager template. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. - * @param name The name of the azure Resource Manager template. + * @param name The name of the azure resource manager template. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options?: Models.ArmTemplatesGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. - * @param name The name of the azure Resource Manager template. + * @param name The name of the azure resource manager template. * @param callback The callback */ get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. - * @param name The name of the azure Resource Manager template. + * @param name The name of the azure resource manager template. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options: Models.ArmTemplatesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options?: Models.ArmTemplatesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -108,7 +107,7 @@ export class ArmTemplates { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ArmTemplatesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -119,8 +118,8 @@ export class ArmTemplates { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ArmTemplatesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ArmTemplatesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -143,7 +142,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.artifactSourceName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -157,7 +155,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArmTemplateList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -174,7 +172,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -185,7 +182,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArmTemplate }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -198,6 +195,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -206,7 +209,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArmTemplateList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/artifactSources.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/artifactSources.ts index 0820c40006db..90f58f687018 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/artifactSources.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/artifactSources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,20 +27,20 @@ export class ArtifactSources { /** * List artifact sources in a given lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, options?: Models.ArtifactSourcesListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param callback The callback */ list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback @@ -60,29 +59,29 @@ export class ArtifactSources { /** * Get artifact source. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, name: string, options?: Models.ArtifactSourcesGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. * @param callback The callback */ get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, name: string, options: Models.ArtifactSourcesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, name: string, options?: Models.ArtifactSourcesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +95,7 @@ export class ArtifactSources { /** * Create or replace an existing artifact source. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. * @param artifactSource Properties of an artifact source. @@ -105,7 +104,7 @@ export class ArtifactSources { */ createOrUpdate(resourceGroupName: string, labName: string, name: string, artifactSource: Models.ArtifactSource, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. * @param artifactSource Properties of an artifact source. @@ -113,7 +112,7 @@ export class ArtifactSources { */ createOrUpdate(resourceGroupName: string, labName: string, name: string, artifactSource: Models.ArtifactSource, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. * @param artifactSource Properties of an artifact source. @@ -136,7 +135,7 @@ export class ArtifactSources { /** * Delete artifact source. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. * @param [options] The optional parameters @@ -144,14 +143,14 @@ export class ArtifactSources { */ deleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. * @param callback The callback */ deleteMethod(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. * @param options The optional parameters @@ -171,28 +170,31 @@ export class ArtifactSources { } /** - * Modify properties of artifact sources. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of artifact sources. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. - * @param artifactSource Properties of an artifact source. + * @param artifactSource Allows modifying tags of artifact sources. All other properties will be + * ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, labName: string, name: string, artifactSource: Models.ArtifactSourceFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. - * @param artifactSource Properties of an artifact source. + * @param artifactSource Allows modifying tags of artifact sources. All other properties will be + * ignored. * @param callback The callback */ update(resourceGroupName: string, labName: string, name: string, artifactSource: Models.ArtifactSourceFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the artifact source. - * @param artifactSource Properties of an artifact source. + * @param artifactSource Allows modifying tags of artifact sources. All other properties will be + * ignored. * @param options The optional parameters * @param callback The callback */ @@ -216,7 +218,7 @@ export class ArtifactSources { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ArtifactSourcesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -227,8 +229,8 @@ export class ArtifactSources { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ArtifactSourcesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ArtifactSourcesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -250,7 +252,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.labName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -264,7 +265,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArtifactSourceList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -280,7 +281,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -291,7 +291,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArtifactSource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -327,7 +327,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArtifactSource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -352,7 +352,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -385,7 +385,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArtifactSource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -398,6 +398,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -406,7 +412,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArtifactSourceList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/artifacts.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/artifacts.ts index 95452d5acfee..87861391fa8a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/artifacts.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/artifacts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,7 +27,7 @@ export class Artifacts { /** * List artifacts in a given artifact source. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param [options] The optional parameters @@ -36,14 +35,14 @@ export class Artifacts { */ list(resourceGroupName: string, labName: string, artifactSourceName: string, options?: Models.ArtifactsListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param callback The callback */ list(resourceGroupName: string, labName: string, artifactSourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param options The optional parameters @@ -64,16 +63,16 @@ export class Artifacts { /** * Get artifact. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param name The name of the artifact. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options?: Models.ArtifactsGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param name The name of the artifact. @@ -81,15 +80,15 @@ export class Artifacts { */ get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param name The name of the artifact. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options: Models.ArtifactsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options?: Models.ArtifactsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -105,7 +104,7 @@ export class Artifacts { /** * Generates an ARM template for the given artifact, uploads the required files to a storage * account, and validates the generated artifact. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param name The name of the artifact. @@ -116,7 +115,7 @@ export class Artifacts { */ generateArmTemplate(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, generateArmTemplateRequest: Models.GenerateArmTemplateRequest, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param name The name of the artifact. @@ -126,7 +125,7 @@ export class Artifacts { */ generateArmTemplate(resourceGroupName: string, labName: string, artifactSourceName: string, name: string, generateArmTemplateRequest: Models.GenerateArmTemplateRequest, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param artifactSourceName The name of the artifact source. * @param name The name of the artifact. @@ -156,7 +155,7 @@ export class Artifacts { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ArtifactsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -167,8 +166,8 @@ export class Artifacts { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ArtifactsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ArtifactsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -191,7 +190,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.artifactSourceName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -205,7 +203,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArtifactList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -222,7 +220,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -233,7 +230,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Artifact }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -267,7 +264,7 @@ const generateArmTemplateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArmTemplateInfo }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -280,6 +277,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -288,7 +291,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ArtifactList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/bastionHosts.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/bastionHosts.ts new file mode 100644 index 000000000000..757fcaaed79d --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/bastionHosts.ts @@ -0,0 +1,435 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/bastionHostsMappers"; +import * as Parameters from "../models/parameters"; +import { DevTestLabsClientContext } from "../devTestLabsClientContext"; + +/** Class representing a BastionHosts. */ +export class BastionHosts { + private readonly client: DevTestLabsClientContext; + + /** + * Create a BastionHosts. + * @param {DevTestLabsClientContext} client Reference to the service client. + */ + constructor(client: DevTestLabsClientContext) { + this.client = client; + } + + /** + * List bastionhosts in a given virtual network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, labName: string, virtualNetworkName: string, options?: Models.BastionHostsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param callback The callback + */ + list(resourceGroupName: string, labName: string, virtualNetworkName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, labName: string, virtualNetworkName: string, options: Models.BastionHostsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, virtualNetworkName: string, options?: Models.BastionHostsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + virtualNetworkName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get bastionhost. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param name The name of the bastionhost. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param name The name of the bastionhost. + * @param callback The callback + */ + get(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param name The name of the bastionhost. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + virtualNetworkName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or replace an existing bastionHost. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param name The name of the bastionhost. + * @param bastionHost Profile of a Bastion Host + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, bastionHost: Models.BastionHost, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,labName,virtualNetworkName,name,bastionHost,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete bastionhost. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param name The name of the bastionhost. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,labName,virtualNetworkName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Allows modifying tags of bastionhosts. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param name The name of the bastionhost. + * @param bastionHost Allows modifying tags of bastionhosts. All other properties will be ignored. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, bastionHost: Models.BastionHostFragment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param name The name of the bastionhost. + * @param bastionHost Allows modifying tags of bastionhosts. All other properties will be ignored. + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, bastionHost: Models.BastionHostFragment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param name The name of the bastionhost. + * @param bastionHost Allows modifying tags of bastionhosts. All other properties will be ignored. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, bastionHost: Models.BastionHostFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, bastionHost: Models.BastionHostFragment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + virtualNetworkName, + name, + bastionHost, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Create or replace an existing bastionHost. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param name The name of the bastionhost. + * @param bastionHost Profile of a Bastion Host + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, bastionHost: Models.BastionHost, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + virtualNetworkName, + name, + bastionHost, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Delete bastionhost. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param virtualNetworkName The name of the virtual network. + * @param name The name of the bastionhost. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, labName: string, virtualNetworkName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + virtualNetworkName, + name, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List bastionhosts in a given virtual network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.BastionHostsListNextOptionalParams): 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: Models.BastionHostsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BastionHostsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{virtualNetworkName}/bastionhosts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.virtualNetworkName + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BastionHostList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{virtualNetworkName}/bastionhosts/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.virtualNetworkName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BastionHost + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{virtualNetworkName}/bastionhosts/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.virtualNetworkName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "bastionHost", + mapper: { + ...Mappers.BastionHostFragment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BastionHost + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{virtualNetworkName}/bastionhosts/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.virtualNetworkName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "bastionHost", + mapper: { + ...Mappers.BastionHost, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BastionHost + }, + 201: { + bodyMapper: Mappers.BastionHost + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{virtualNetworkName}/bastionhosts/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.virtualNetworkName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BastionHostList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/costs.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/costs.ts index 16fcc5dab183..f336d0faa0ce 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/costs.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/costs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,7 +27,7 @@ export class Costs { /** * Get cost. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the cost. * @param [options] The optional parameters @@ -36,14 +35,14 @@ export class Costs { */ get(resourceGroupName: string, labName: string, name: string, options?: Models.CostsGetOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the cost. * @param callback The callback */ get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the cost. * @param options The optional parameters @@ -64,7 +63,7 @@ export class Costs { /** * Create or replace an existing cost. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the cost. * @param labCost A cost item. @@ -73,7 +72,7 @@ export class Costs { */ createOrUpdate(resourceGroupName: string, labName: string, name: string, labCost: Models.LabCost, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the cost. * @param labCost A cost item. @@ -81,7 +80,7 @@ export class Costs { */ createOrUpdate(resourceGroupName: string, labName: string, name: string, labCost: Models.LabCost, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the cost. * @param labCost A cost item. @@ -126,7 +125,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LabCost }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -162,7 +161,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LabCost }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/customImages.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/customImages.ts index 4e20e6b45d3d..1548f0b2eee3 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/customImages.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/customImages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,20 +28,20 @@ export class CustomImages { /** * List custom images in a given lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, options?: Models.CustomImagesListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param callback The callback */ list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback @@ -61,29 +60,29 @@ export class CustomImages { /** * Get custom image. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the custom image. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, name: string, options?: Models.CustomImagesGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the custom image. * @param callback The callback */ get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the custom image. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, name: string, options: Models.CustomImagesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, name: string, options?: Models.CustomImagesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -97,7 +96,7 @@ export class CustomImages { /** * Create or replace an existing custom image. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the custom image. * @param customImage A custom image. @@ -111,7 +110,7 @@ export class CustomImages { /** * Delete custom image. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the custom image. * @param [options] The optional parameters @@ -123,28 +122,28 @@ export class CustomImages { } /** - * Modify properties of custom images. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of custom images. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the custom image. - * @param customImage A custom image. + * @param customImage Allows modifying tags of custom images. All other properties will be ignored. * @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 resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the custom image. - * @param customImage A custom image. + * @param customImage Allows modifying tags of custom images. All other properties will be ignored. * @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 resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the custom image. - * @param customImage A custom image. + * @param customImage Allows modifying tags of custom images. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -164,7 +163,7 @@ export class CustomImages { /** * Create or replace an existing custom image. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the custom image. * @param customImage A custom image. @@ -186,7 +185,7 @@ export class CustomImages { /** * Delete custom image. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the custom image. * @param [options] The optional parameters @@ -210,7 +209,7 @@ export class CustomImages { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.CustomImagesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -221,8 +220,8 @@ export class CustomImages { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.CustomImagesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.CustomImagesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -244,7 +243,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.labName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -258,7 +256,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.CustomImageList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -274,7 +272,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -285,7 +282,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.CustomImage }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -318,7 +315,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.CustomImage }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -353,8 +350,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.CustomImage }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -380,7 +378,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -393,6 +391,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -401,7 +405,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.CustomImageList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/disks.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/disks.ts index ba32267a81d3..f322de08d72d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/disks.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/disks.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,7 +28,7 @@ export class Disks { /** * List disks in a given user profile. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param [options] The optional parameters @@ -37,14 +36,14 @@ export class Disks { */ list(resourceGroupName: string, labName: string, userName: string, options?: Models.DisksListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param callback The callback */ list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param options The optional parameters @@ -65,16 +64,16 @@ export class Disks { /** * Get disk. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, userName: string, name: string, options?: Models.DisksGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. @@ -82,15 +81,15 @@ export class Disks { */ get(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, userName: string, name: string, options: Models.DisksGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, userName: string, name: string, options?: Models.DisksGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, userName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -105,7 +104,7 @@ export class Disks { /** * Create or replace an existing disk. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. @@ -120,7 +119,7 @@ export class Disks { /** * Delete disk. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. @@ -133,31 +132,31 @@ export class Disks { } /** - * Modify properties of disks. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of disks. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 disk Allows modifying tags of disks. All other properties will be ignored. * @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 resourceGroupName The name of the resource group. The name is case insensitive. * @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 disk Allows modifying tags of disks. All other properties will be ignored. * @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 resourceGroupName The name of the resource group. The name is case insensitive. * @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 disk Allows modifying tags of disks. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -179,7 +178,7 @@ export class Disks { /** * Attach and create the lease of the disk to the virtual machine. This operation can take a while * to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. @@ -195,7 +194,7 @@ export class Disks { /** * Detach and break the lease of the disk attached to the virtual machine. This operation can take * a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. @@ -210,7 +209,7 @@ export class Disks { /** * Create or replace an existing disk. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. @@ -234,7 +233,7 @@ export class Disks { /** * Delete disk. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. @@ -257,7 +256,7 @@ export class Disks { /** * Attach and create the lease of the disk to the virtual machine. This operation can take a while * to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. @@ -282,7 +281,7 @@ export class Disks { /** * Detach and break the lease of the disk attached to the virtual machine. This operation can take * a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. @@ -310,7 +309,7 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.DisksListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -321,8 +320,8 @@ export class Disks { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.DisksListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DisksListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -345,7 +344,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.userName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -359,7 +357,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DiskList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -376,7 +374,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -387,7 +384,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Disk }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -421,7 +418,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Disk }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -457,8 +454,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.Disk }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -485,7 +483,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -518,7 +516,7 @@ const beginAttachOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -551,7 +549,7 @@ const beginDetachOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -564,6 +562,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -572,7 +576,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DiskList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/environments.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/environments.ts index 2da4b6827c16..06c00063b85a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/environments.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/environments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,7 +28,7 @@ export class Environments { /** * List environments in a given user profile. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param [options] The optional parameters @@ -37,21 +36,21 @@ export class Environments { */ list(resourceGroupName: string, labName: string, userName: string, options?: Models.EnvironmentsListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @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 resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -65,32 +64,32 @@ export class Environments { /** * Get environment. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the environment. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, userName: string, name: string, options?: Models.EnvironmentsGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the environment. * @param callback The callback */ - get(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the environment. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, userName: string, name: string, options: Models.EnvironmentsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, userName: string, name: string, options?: Models.EnvironmentsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, userName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -105,22 +104,22 @@ export class Environments { /** * Create or replace an existing environment. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 environment An environment, which is essentially an ARM template deployment. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironment, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,labName,userName,name,dtlEnvironment,options) + createOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, environment: Models.Environment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,labName,userName,name,environment,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** * Delete environment. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the environment. @@ -133,43 +132,43 @@ export class Environments { } /** - * Modify properties of environments. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of environments. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 environment Allows modifying tags of environments. All other properties will be ignored. * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironmentFragment, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, labName: string, userName: string, name: string, environment: Models.EnvironmentFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 environment Allows modifying tags of environments. All other properties will be ignored. * @param callback The callback */ - update(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironmentFragment, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, userName: string, name: string, environment: Models.EnvironmentFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 environment Allows modifying tags of environments. All other properties will be ignored. * @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, labName: string, userName: string, name: string, environment: Models.EnvironmentFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, userName: string, name: string, environment: Models.EnvironmentFragment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, labName, userName, name, - dtlEnvironment, + environment, options }, updateOperationSpec, @@ -178,22 +177,22 @@ export class Environments { /** * Create or replace an existing environment. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 environment An environment, which is essentially an ARM template deployment. * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, dtlEnvironment: Models.DtlEnvironment, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, environment: Models.Environment, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, labName, userName, name, - dtlEnvironment, + environment, options }, beginCreateOrUpdateOperationSpec, @@ -202,7 +201,7 @@ export class Environments { /** * Delete environment. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the environment. @@ -228,19 +227,19 @@ export class Environments { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.EnvironmentsListNextOptionalParams): Promise; /** * @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.EnvironmentsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.EnvironmentsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -263,7 +262,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.userName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -274,10 +272,10 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.DtlEnvironmentList + bodyMapper: Mappers.EnvironmentList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -294,7 +292,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -302,10 +299,10 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.DtlEnvironment + bodyMapper: Mappers.Environment }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -328,18 +325,18 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "dtlEnvironment", + parameterPath: "environment", mapper: { - ...Mappers.DtlEnvironmentFragment, + ...Mappers.EnvironmentFragment, required: true } }, responses: { 200: { - bodyMapper: Mappers.DtlEnvironment + bodyMapper: Mappers.Environment }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -362,21 +359,22 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "dtlEnvironment", + parameterPath: "environment", mapper: { - ...Mappers.DtlEnvironment, + ...Mappers.Environment, required: true } }, responses: { 200: { - bodyMapper: Mappers.DtlEnvironment + bodyMapper: Mappers.Environment }, 201: { - bodyMapper: Mappers.DtlEnvironment + bodyMapper: Mappers.Environment }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -403,7 +401,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -416,15 +414,21 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.DtlEnvironmentList + bodyMapper: Mappers.EnvironmentList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/formulas.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/formulas.ts index cf109bc2d9ca..66058effc43e 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/formulas.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/formulas.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,20 +28,20 @@ export class Formulas { /** * List formulas in a given lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, options?: Models.FormulasListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param callback The callback */ list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback @@ -61,29 +60,29 @@ export class Formulas { /** * Get formula. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the formula. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, name: string, options?: Models.FormulasGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the formula. * @param callback The callback */ get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the formula. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, name: string, options: Models.FormulasGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, name: string, options?: Models.FormulasGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -97,7 +96,7 @@ export class Formulas { /** * Create or replace an existing Formula. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 @@ -111,7 +110,7 @@ export class Formulas { /** * Delete formula. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the formula. * @param [options] The optional parameters @@ -119,14 +118,14 @@ export class Formulas { */ deleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the formula. * @param callback The callback */ deleteMethod(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the formula. * @param options The optional parameters @@ -146,28 +145,28 @@ export class Formulas { } /** - * Modify properties of formulas. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of formulas. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 formula Allows modifying tags of formulas. All other properties will be ignored. * @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 resourceGroupName The name of the resource group. The name is case insensitive. * @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 formula Allows modifying tags of formulas. All other properties will be ignored. * @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 resourceGroupName The name of the resource group. The name is case insensitive. * @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 formula Allows modifying tags of formulas. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -187,7 +186,7 @@ export class Formulas { /** * Create or replace an existing Formula. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 @@ -213,7 +212,7 @@ export class Formulas { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.FormulasListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -224,8 +223,8 @@ export class Formulas { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.FormulasListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.FormulasListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -247,7 +246,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.labName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -261,7 +259,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.FormulaList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -277,7 +275,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -288,7 +285,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Formula }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -313,7 +310,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -346,7 +343,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Formula }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -381,8 +378,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.Formula }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -395,6 +393,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -403,7 +407,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.FormulaList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/galleryImages.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/galleryImages.ts index 2e75c0446479..21310415568d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/galleryImages.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/galleryImages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,20 +27,20 @@ export class GalleryImages { /** * List gallery images in a given lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, options?: Models.GalleryImagesListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param callback The callback */ list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback @@ -58,13 +57,49 @@ export class GalleryImages { callback) as Promise; } + /** + * Get gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the gallery image. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the gallery image. + * @param callback The callback + */ + get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the gallery image. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + /** * List gallery images in a given lab. * @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; + listNext(nextPageLink: string, options?: Models.GalleryImagesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -75,8 +110,8 @@ export class GalleryImages { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.GalleryImagesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.GalleryImagesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -98,7 +133,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.labName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -112,7 +146,33 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.GalleryImageList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/galleryimages/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GalleryImage + }, + default: { + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -125,6 +185,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -133,7 +199,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.GalleryImageList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/globalSchedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/globalSchedules.ts index 0d21826053d2..10794154b71a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/globalSchedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/globalSchedules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -53,18 +52,18 @@ export class GlobalSchedules { /** * List schedules in a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: Models.GlobalSchedulesListByResourceGroupOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -81,26 +80,26 @@ export class GlobalSchedules { /** * Get schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, name: string, options?: Models.GlobalSchedulesGetOptionalParams): Promise; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param callback The callback */ get(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, name: string, options: Models.GlobalSchedulesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, name: string, options?: Models.GlobalSchedulesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -113,7 +112,7 @@ export class GlobalSchedules { /** * Create or replace an existing schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param schedule A schedule. * @param [options] The optional parameters @@ -121,14 +120,14 @@ export class GlobalSchedules { */ createOrUpdate(resourceGroupName: string, name: string, schedule: Models.Schedule, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param schedule A schedule. * @param callback The callback */ createOrUpdate(resourceGroupName: string, name: string, schedule: Models.Schedule, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param schedule A schedule. * @param options The optional parameters @@ -149,20 +148,20 @@ export class GlobalSchedules { /** * Delete schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param callback The callback */ deleteMethod(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param options The optional parameters * @param callback The callback @@ -180,25 +179,25 @@ export class GlobalSchedules { } /** - * Modify properties of schedules. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of schedules. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, name: string, schedule: Models.ScheduleFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param callback The callback */ update(resourceGroupName: string, name: string, schedule: Models.ScheduleFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -217,7 +216,7 @@ export class GlobalSchedules { /** * Execute a schedule. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param [options] The optional parameters * @returns Promise @@ -229,7 +228,7 @@ export class GlobalSchedules { /** * Updates a schedule's target resource Id. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param retargetScheduleProperties Properties for retargeting a virtual machine schedule. * @param [options] The optional parameters @@ -242,7 +241,7 @@ export class GlobalSchedules { /** * Execute a schedule. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param [options] The optional parameters * @returns Promise @@ -260,7 +259,7 @@ export class GlobalSchedules { /** * Updates a schedule's target resource Id. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the schedule. * @param retargetScheduleProperties Properties for retargeting a virtual machine schedule. * @param [options] The optional parameters @@ -284,7 +283,7 @@ export class GlobalSchedules { * @param [options] The optional parameters * @returns Promise */ - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySubscriptionNext(nextPageLink: string, options?: Models.GlobalSchedulesListBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -295,8 +294,8 @@ export class GlobalSchedules { * @param options The optional parameters * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: Models.GlobalSchedulesListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.GlobalSchedulesListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -312,7 +311,7 @@ export class GlobalSchedules { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.GlobalSchedulesListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -323,8 +322,8 @@ export class GlobalSchedules { * @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.GlobalSchedulesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.GlobalSchedulesListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -344,7 +343,6 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -358,7 +356,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -372,7 +370,6 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -386,7 +383,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -401,7 +398,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -412,7 +408,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -447,7 +443,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -471,7 +467,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -503,7 +499,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -527,7 +523,7 @@ const beginExecuteOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -558,7 +554,7 @@ const beginRetargetOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -571,6 +567,12 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -579,7 +581,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -592,6 +594,12 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -600,7 +608,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/index.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/index.ts index be4417019e72..e0ed78470ab3 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/index.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,7 +9,6 @@ export * from "./providerOperations"; export * from "./labs"; -export * from "./operations"; export * from "./globalSchedules"; export * from "./artifactSources"; export * from "./armTemplates"; @@ -23,7 +21,10 @@ export * from "./notificationChannels"; export * from "./policySets"; export * from "./policies"; export * from "./schedules"; +export * from "./labSecrets"; export * from "./serviceRunners"; +export * from "./sharedGalleries"; +export * from "./sharedImages"; export * from "./users"; export * from "./disks"; export * from "./environments"; @@ -33,3 +34,5 @@ export * from "./serviceFabricSchedules"; export * from "./virtualMachines"; export * from "./virtualMachineSchedules"; export * from "./virtualNetworks"; +export * from "./bastionHosts"; +export * from "./operations"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/labSecrets.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/labSecrets.ts new file mode 100644 index 000000000000..8b29899bc0e2 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/labSecrets.ts @@ -0,0 +1,412 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/labSecretsMappers"; +import * as Parameters from "../models/parameters"; +import { DevTestLabsClientContext } from "../devTestLabsClientContext"; + +/** Class representing a LabSecrets. */ +export class LabSecrets { + private readonly client: DevTestLabsClientContext; + + /** + * Create a LabSecrets. + * @param {DevTestLabsClientContext} client Reference to the service client. + */ + constructor(client: DevTestLabsClientContext) { + this.client = client; + } + + /** + * List lab secrets in a given lab. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, labName: string, options?: Models.LabSecretsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param callback The callback + */ + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, labName: string, options: Models.LabSecretsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.LabSecretsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get lab secret. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the lab secret. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the lab secret. + * @param callback The callback + */ + get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the lab secret. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or replace an existing Lab Secret. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the lab secret. + * @param labSecret A shared secret in a lab. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, labName: string, name: string, labSecret: Models.LabSecret, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,labName,name,labSecret,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete lab secret. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the lab secret. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,labName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Allows modifying tags of lab secrets. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the lab secret. + * @param secret Allows modifying tags of lab secrets. All other properties will be ignored. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, labName: string, name: string, secret: Models.SecretFragment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the lab secret. + * @param secret Allows modifying tags of lab secrets. All other properties will be ignored. + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, name: string, secret: Models.SecretFragment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the lab secret. + * @param secret Allows modifying tags of lab secrets. All other properties will be ignored. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, name: string, secret: Models.SecretFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, name: string, secret: Models.SecretFragment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + secret, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Create or replace an existing Lab Secret. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the lab secret. + * @param labSecret A shared secret in a lab. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, labName: string, name: string, labSecret: Models.LabSecret, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + name, + labSecret, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Delete lab secret. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the lab secret. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + labName, + name, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List lab secrets in a given lab. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.LabSecretsListNextOptionalParams): 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: Models.LabSecretsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.LabSecretsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/secrets", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LabSecretList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/secrets/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LabSecret + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/secrets/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "secret", + mapper: { + ...Mappers.SecretFragment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LabSecret + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/secrets/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "labSecret", + mapper: { + ...Mappers.LabSecret, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LabSecret + }, + 201: { + bodyMapper: Mappers.LabSecret + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/secrets/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LabSecretList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/labs.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/labs.ts index f86dc41739aa..049ea11f3fd9 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/labs.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/labs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -53,18 +52,18 @@ export class Labs { /** * List labs in a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: Models.LabsListByResourceGroupOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -81,26 +80,26 @@ export class Labs { /** * Get lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, name: string, options?: Models.LabsGetOptionalParams): Promise; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param callback The callback */ get(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, name: string, options: Models.LabsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, name: string, options?: Models.LabsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -113,7 +112,7 @@ export class Labs { /** * Create or replace an existing lab. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param lab A lab. * @param [options] The optional parameters @@ -126,7 +125,7 @@ export class Labs { /** * Delete lab. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param [options] The optional parameters * @returns Promise @@ -137,25 +136,25 @@ export class Labs { } /** - * Modify properties of labs. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of labs. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. - * @param lab A lab. + * @param lab Allows modifying tags of labs. All other properties will be ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, name: string, lab: Models.LabFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. - * @param lab A lab. + * @param lab Allows modifying tags of labs. All other properties will be ignored. * @param callback The callback */ update(resourceGroupName: string, name: string, lab: Models.LabFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. - * @param lab A lab. + * @param lab Allows modifying tags of labs. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -175,7 +174,7 @@ export class Labs { /** * Claim a random claimable virtual machine in the lab. This operation can take a while to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param [options] The optional parameters * @returns Promise @@ -187,7 +186,7 @@ export class Labs { /** * Create virtual machines in a lab. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param labVirtualMachineCreationParameter Properties for creating a virtual machine. * @param [options] The optional parameters @@ -198,10 +197,42 @@ export class Labs { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Ensure the current user has a valid profile in the lab. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name The name of the lab. + * @param [options] The optional parameters + * @returns Promise + */ + ensureCurrentUserProfile(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name The name of the lab. + * @param callback The callback + */ + ensureCurrentUserProfile(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name The name of the lab. + * @param options The optional parameters + * @param callback The callback + */ + ensureCurrentUserProfile(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + ensureCurrentUserProfile(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + ensureCurrentUserProfileOperationSpec, + callback); + } + /** * Exports the lab resource usage into a storage account This operation can take a while to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param exportResourceUsageParameters The parameters of the export operation. * @param [options] The optional parameters @@ -214,7 +245,7 @@ export class Labs { /** * Generate a URI for uploading custom disk images to a Lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param generateUploadUriParameter Properties for generating an upload URI. * @param [options] The optional parameters @@ -222,14 +253,14 @@ export class Labs { */ generateUploadUri(resourceGroupName: string, name: string, generateUploadUriParameter: Models.GenerateUploadUriParameter, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param generateUploadUriParameter Properties for generating an upload URI. * @param callback The callback */ generateUploadUri(resourceGroupName: string, name: string, generateUploadUriParameter: Models.GenerateUploadUriParameter, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param generateUploadUriParameter Properties for generating an upload URI. * @param options The optional parameters @@ -250,7 +281,7 @@ export class Labs { /** * 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 resourceGroupName The name of the resource group. The name is case insensitive. * @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 @@ -264,20 +295,20 @@ export class Labs { /** * List disk images available for custom image creation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param [options] The optional parameters * @returns Promise */ listVhds(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param callback The callback */ listVhds(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param options The optional parameters * @param callback The callback @@ -296,7 +327,7 @@ export class Labs { /** * Create or replace an existing lab. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param lab A lab. * @param [options] The optional parameters @@ -316,7 +347,7 @@ export class Labs { /** * Delete lab. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param [options] The optional parameters * @returns Promise @@ -335,7 +366,7 @@ export class Labs { /** * Claim a random claimable virtual machine in the lab. This operation can take a while to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param [options] The optional parameters * @returns Promise @@ -353,7 +384,7 @@ export class Labs { /** * Create virtual machines in a lab. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param labVirtualMachineCreationParameter Properties for creating a virtual machine. * @param [options] The optional parameters @@ -374,7 +405,7 @@ export class Labs { /** * Exports the lab resource usage into a storage account This operation can take a while to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the lab. * @param exportResourceUsageParameters The parameters of the export operation. * @param [options] The optional parameters @@ -394,7 +425,7 @@ export class Labs { /** * 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 resourceGroupName The name of the resource group. The name is case insensitive. * @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 @@ -419,7 +450,7 @@ export class Labs { * @param [options] The optional parameters * @returns Promise */ - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySubscriptionNext(nextPageLink: string, options?: Models.LabsListBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -430,8 +461,8 @@ export class Labs { * @param options The optional parameters * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: Models.LabsListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.LabsListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -447,7 +478,7 @@ export class Labs { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.LabsListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -458,8 +489,8 @@ export class Labs { * @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.LabsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.LabsListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -468,34 +499,6 @@ export class Labs { listByResourceGroupNextOperationSpec, callback) as Promise; } - - /** - * List disk images available for custom image creation. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listVhdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listVhdsNextOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -507,7 +510,6 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -521,7 +523,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LabList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -535,7 +537,6 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -549,7 +550,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LabList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -564,7 +565,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -575,7 +575,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Lab }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -607,7 +607,30 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Lab }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const ensureCurrentUserProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/ensureCurrentUserProfile", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -639,7 +662,7 @@ const generateUploadUriOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.GenerateUploadUriResponse }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -664,7 +687,7 @@ const listVhdsOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LabVhdList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -698,8 +721,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.Lab }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -724,7 +748,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -748,7 +772,7 @@ const beginClaimAnyVmOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -779,7 +803,7 @@ const beginCreateEnvironmentOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -810,7 +834,7 @@ const beginExportResourceUsageOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -841,7 +865,7 @@ const beginImportVirtualMachineOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -854,6 +878,12 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -862,7 +892,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LabList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -875,36 +905,21 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LabList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listVhdsNextOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.LabVhdList + bodyMapper: Mappers.LabList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/notificationChannels.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/notificationChannels.ts index 8ce165fb3844..8575144a5450 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/notificationChannels.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/notificationChannels.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,20 +27,20 @@ export class NotificationChannels { /** * List notification channels in a given lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, options?: Models.NotificationChannelsListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param callback The callback */ list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback @@ -60,29 +59,29 @@ export class NotificationChannels { /** * Get notification channel. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, name: string, options?: Models.NotificationChannelsGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param callback The callback */ get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, name: string, options: Models.NotificationChannelsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, name: string, options?: Models.NotificationChannelsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,27 +94,27 @@ export class NotificationChannels { } /** - * Create or replace an existing notificationChannel. - * @param resourceGroupName The name of the resource group. + * Create or replace an existing Notification Channel. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param notificationChannel A notification. * @param [options] The optional parameters * @returns Promise */ createOrUpdate(resourceGroupName: string, labName: string, name: string, notificationChannel: Models.NotificationChannel, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param notificationChannel A notification. * @param callback The callback */ createOrUpdate(resourceGroupName: string, labName: string, name: string, notificationChannel: Models.NotificationChannel, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param notificationChannel A notification. * @param options The optional parameters * @param callback The callback @@ -136,24 +135,24 @@ export class NotificationChannels { /** * Delete notification channel. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param callback The callback */ deleteMethod(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param options The optional parameters * @param callback The callback */ @@ -171,28 +170,31 @@ export class NotificationChannels { } /** - * Modify properties of notification channels. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of notification channels. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. - * @param notificationChannel A notification. + * @param name The name of the notification channel. + * @param notificationChannel Allows modifying tags of notification channels. All other properties + * will be ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, labName: string, name: string, notificationChannel: Models.NotificationChannelFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. - * @param notificationChannel A notification. + * @param name The name of the notification channel. + * @param notificationChannel Allows modifying tags of notification channels. All other properties + * will be ignored. * @param callback The callback */ update(resourceGroupName: string, labName: string, name: string, notificationChannel: Models.NotificationChannelFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. - * @param notificationChannel A notification. + * @param name The name of the notification channel. + * @param notificationChannel Allows modifying tags of notification channels. All other properties + * will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -212,26 +214,26 @@ export class NotificationChannels { /** * Send notification to provided channel. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param notifyParameters Properties for generating a Notification. * @param [options] The optional parameters * @returns Promise */ notify(resourceGroupName: string, labName: string, name: string, notifyParameters: Models.NotifyParameters, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param notifyParameters Properties for generating a Notification. * @param callback The callback */ notify(resourceGroupName: string, labName: string, name: string, notifyParameters: Models.NotifyParameters, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. - * @param name The name of the notificationChannel. + * @param name The name of the notification channel. * @param notifyParameters Properties for generating a Notification. * @param options The optional parameters * @param callback The callback @@ -256,7 +258,7 @@ export class NotificationChannels { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.NotificationChannelsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -267,8 +269,8 @@ export class NotificationChannels { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.NotificationChannelsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.NotificationChannelsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -290,7 +292,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.labName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -304,7 +305,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.NotificationChannelList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -320,7 +321,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -331,7 +331,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.NotificationChannel }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -367,7 +367,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.NotificationChannel }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -392,7 +392,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -425,7 +425,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.NotificationChannel }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -456,7 +456,7 @@ const notifyOperationSpec: msRest.OperationSpec = { responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -469,6 +469,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -477,7 +483,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.NotificationChannelList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/operations.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/operations.ts index e9516fa84bc3..917ad73cb9e5 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/operations.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,29 +27,29 @@ export class Operations { /** * Get operation. - * @param locationName The name of the location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the operation. * @param [options] The optional parameters * @returns Promise */ - get(locationName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param locationName The name of the location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the operation. * @param callback The callback */ - get(locationName: string, name: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param locationName The name of the location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name The name of the operation. * @param options The optional parameters * @param callback The callback */ - get(locationName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(locationName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - locationName, + resourceGroupName, name, options }, @@ -63,10 +62,10 @@ export class Operations { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/operations/{name}", urlParameters: [ Parameters.subscriptionId, - Parameters.locationName, + Parameters.resourceGroupName, Parameters.name ], queryParameters: [ @@ -80,7 +79,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/policies.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/policies.ts index 596ef83cabe7..fd1338f13088 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/policies.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/policies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,7 +27,7 @@ export class Policies { /** * List policies in a given policy set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param [options] The optional parameters @@ -36,14 +35,14 @@ export class Policies { */ list(resourceGroupName: string, labName: string, policySetName: string, options?: Models.PoliciesListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param callback The callback */ list(resourceGroupName: string, labName: string, policySetName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param options The optional parameters @@ -64,16 +63,16 @@ export class Policies { /** * Get policy. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, policySetName: string, name: string, options?: Models.PoliciesGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, policySetName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. @@ -81,15 +80,15 @@ export class Policies { */ get(resourceGroupName: string, labName: string, policySetName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, policySetName: string, name: string, options: Models.PoliciesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, policySetName: string, name: string, options?: Models.PoliciesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, policySetName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, policySetName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -104,7 +103,7 @@ export class Policies { /** * Create or replace an existing policy. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. @@ -114,7 +113,7 @@ export class Policies { */ createOrUpdate(resourceGroupName: string, labName: string, policySetName: string, name: string, policy: Models.Policy, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. @@ -123,7 +122,7 @@ export class Policies { */ createOrUpdate(resourceGroupName: string, labName: string, policySetName: string, name: string, policy: Models.Policy, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. @@ -148,7 +147,7 @@ export class Policies { /** * Delete policy. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. @@ -157,7 +156,7 @@ export class Policies { */ deleteMethod(resourceGroupName: string, labName: string, policySetName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. @@ -165,7 +164,7 @@ export class Policies { */ deleteMethod(resourceGroupName: string, labName: string, policySetName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. @@ -187,31 +186,31 @@ export class Policies { } /** - * Modify properties of policies. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of policies. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. - * @param policy A Policy. + * @param policy Allows modifying tags of policies. All other properties will be ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, labName: string, policySetName: string, name: string, policy: Models.PolicyFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. - * @param policy A Policy. + * @param policy Allows modifying tags of policies. All other properties will be ignored. * @param callback The callback */ update(resourceGroupName: string, labName: string, policySetName: string, name: string, policy: Models.PolicyFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param policySetName The name of the policy set. * @param name The name of the policy. - * @param policy A Policy. + * @param policy Allows modifying tags of policies. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -236,7 +235,7 @@ export class Policies { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.PoliciesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -247,8 +246,8 @@ export class Policies { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.PoliciesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.PoliciesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -271,7 +270,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.policySetName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -285,7 +283,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PolicyList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -302,7 +300,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -313,7 +310,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Policy }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -350,7 +347,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Policy }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -376,7 +373,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -410,7 +407,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Policy }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -423,6 +420,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -431,7 +434,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PolicyList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/policySets.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/policySets.ts index c35da19a1264..32a3a39a3428 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/policySets.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/policySets.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -26,9 +25,41 @@ export class PolicySets { this.client = client; } + /** + * List policy sets in a given lab. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, labName: string, options?: Models.PolicySetsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param callback The callback + */ + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, labName: string, options: Models.PolicySetsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.PolicySetsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Evaluates lab policy. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the policy set. * @param evaluatePoliciesRequest Request body for evaluating a policy set. @@ -37,7 +68,7 @@ export class PolicySets { */ evaluatePolicies(resourceGroupName: string, labName: string, name: string, evaluatePoliciesRequest: Models.EvaluatePoliciesRequest, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the policy set. * @param evaluatePoliciesRequest Request body for evaluating a policy set. @@ -45,7 +76,7 @@ export class PolicySets { */ evaluatePolicies(resourceGroupName: string, labName: string, name: string, evaluatePoliciesRequest: Models.EvaluatePoliciesRequest, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the policy set. * @param evaluatePoliciesRequest Request body for evaluating a policy set. @@ -65,10 +96,66 @@ export class PolicySets { evaluatePoliciesOperationSpec, callback) as Promise; } + + /** + * List policy sets in a given lab. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.PolicySetsListNextOptionalParams): 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: Models.PolicySetsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.PolicySetsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicySetList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const evaluatePoliciesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies", @@ -96,7 +183,34 @@ const evaluatePoliciesOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.EvaluatePoliciesResponse }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicySetList + }, + default: { + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/providerOperations.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/providerOperations.ts index 163a0eadb7cc..405e3e634063 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/providerOperations.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/providerOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -35,13 +34,13 @@ export class ProviderOperations { /** * @param callback The callback */ - list(callback: msRest.ServiceCallback): void; + list(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -61,14 +60,14 @@ export class ProviderOperations { * @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -92,10 +91,10 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ProviderOperationResult + bodyMapper: Mappers.OperationListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -108,15 +107,18 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ProviderOperationResult + bodyMapper: Mappers.OperationListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/schedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/schedules.ts index 59afb9182540..a6a673e59db0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/schedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/schedules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,20 +28,20 @@ export class Schedules { /** * List schedules in a given lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, options?: Models.SchedulesListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param callback The callback */ list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback @@ -61,29 +60,29 @@ export class Schedules { /** * Get schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, name: string, options?: Models.SchedulesGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param callback The callback */ get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, name: string, options: Models.SchedulesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, name: string, options?: Models.SchedulesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -97,7 +96,7 @@ export class Schedules { /** * Create or replace an existing schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param schedule A schedule. @@ -106,7 +105,7 @@ export class Schedules { */ createOrUpdate(resourceGroupName: string, labName: string, name: string, schedule: Models.Schedule, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param schedule A schedule. @@ -114,7 +113,7 @@ export class Schedules { */ createOrUpdate(resourceGroupName: string, labName: string, name: string, schedule: Models.Schedule, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param schedule A schedule. @@ -137,7 +136,7 @@ export class Schedules { /** * Delete schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param [options] The optional parameters @@ -145,14 +144,14 @@ export class Schedules { */ deleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param callback The callback */ deleteMethod(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param options The optional parameters @@ -172,28 +171,28 @@ export class Schedules { } /** - * Modify properties of schedules. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of schedules. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, labName: string, name: string, schedule: Models.ScheduleFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param callback The callback */ update(resourceGroupName: string, labName: string, name: string, schedule: Models.ScheduleFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -213,7 +212,7 @@ export class Schedules { /** * Execute a schedule. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param [options] The optional parameters @@ -226,7 +225,7 @@ export class Schedules { /** * Lists all applicable schedules - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param [options] The optional parameters @@ -234,14 +233,14 @@ export class Schedules { */ listApplicable(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param callback The callback */ listApplicable(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param options The optional parameters @@ -262,7 +261,7 @@ export class Schedules { /** * Execute a schedule. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the schedule. * @param [options] The optional parameters @@ -286,7 +285,7 @@ export class Schedules { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.SchedulesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -297,8 +296,8 @@ export class Schedules { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.SchedulesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SchedulesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -307,34 +306,6 @@ export class Schedules { listNextOperationSpec, callback) as Promise; } - - /** - * Lists all applicable schedules - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listApplicableNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listApplicableNextOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -348,7 +319,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.labName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -362,7 +332,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -378,7 +348,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -389,7 +358,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -425,7 +394,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -450,7 +419,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -483,7 +452,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -509,7 +478,7 @@ const listApplicableOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -534,7 +503,7 @@ const beginExecuteOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -547,26 +516,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ScheduleList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listApplicableNextOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -576,7 +530,7 @@ const listApplicableNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/secrets.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/secrets.ts index 2b3a91a3c14c..5130cd1ec6d9 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/secrets.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/secrets.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,7 +28,7 @@ export class Secrets { /** * List secrets in a given user profile. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param [options] The optional parameters @@ -37,14 +36,14 @@ export class Secrets { */ list(resourceGroupName: string, labName: string, userName: string, options?: Models.SecretsListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param callback The callback */ list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param options The optional parameters @@ -65,16 +64,16 @@ export class Secrets { /** * Get secret. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 */ - get(resourceGroupName: string, labName: string, userName: string, name: string, options?: Models.SecretsGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. @@ -82,15 +81,15 @@ export class Secrets { */ get(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 * @param callback The callback */ - get(resourceGroupName: string, labName: string, userName: string, name: string, options: Models.SecretsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, userName: string, name: string, options?: Models.SecretsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, userName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -105,7 +104,7 @@ export class Secrets { /** * Create or replace an existing secret. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. @@ -120,7 +119,7 @@ export class Secrets { /** * Delete secret. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. @@ -129,7 +128,7 @@ export class Secrets { */ deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. @@ -137,7 +136,7 @@ export class Secrets { */ deleteMethod(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. @@ -159,31 +158,31 @@ export class Secrets { } /** - * Modify properties of secrets. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of secrets. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 secret Allows modifying tags of secrets. All other properties will be ignored. * @param [options] The optional parameters * @returns 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 resourceGroupName The name of the resource group. The name is case insensitive. * @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 secret Allows modifying tags of secrets. All other properties will be ignored. * @param callback The callback */ 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 resourceGroupName The name of the resource group. The name is case insensitive. * @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 secret Allows modifying tags of secrets. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -204,7 +203,7 @@ export class Secrets { /** * Create or replace an existing secret. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the secret. @@ -232,7 +231,7 @@ export class Secrets { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.SecretsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -243,8 +242,8 @@ export class Secrets { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.SecretsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SecretsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -267,7 +266,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.userName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -281,7 +279,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SecretList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -298,7 +296,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -309,7 +306,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Secret }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -335,7 +332,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -369,7 +366,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Secret }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -405,8 +402,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.Secret }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -419,6 +417,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -427,7 +431,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SecretList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabricSchedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabricSchedules.ts index 5174bf0d28b4..5f750f23e28f 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabricSchedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabricSchedules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,27 +28,27 @@ export class ServiceFabricSchedules { /** * List schedules in a given service fabric. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, options?: Models.ServiceFabricSchedulesListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param callback The callback */ list(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param options The optional parameters * @param callback The callback */ @@ -69,35 +68,35 @@ export class ServiceFabricSchedules { /** * Get schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, options?: Models.ServiceFabricSchedulesGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param callback The callback */ get(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, options: Models.ServiceFabricSchedulesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, options?: Models.ServiceFabricSchedulesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -113,10 +112,10 @@ export class ServiceFabricSchedules { /** * Create or replace an existing schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param schedule A schedule. * @param [options] The optional parameters @@ -124,20 +123,20 @@ export class ServiceFabricSchedules { */ createOrUpdate(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, schedule: Models.Schedule, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param schedule A schedule. * @param callback The callback */ createOrUpdate(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, schedule: Models.Schedule, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param schedule A schedule. * @param options The optional parameters @@ -161,29 +160,29 @@ export class ServiceFabricSchedules { /** * Delete schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param callback The callback */ deleteMethod(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param options The optional parameters * @param callback The callback @@ -204,34 +203,34 @@ export class ServiceFabricSchedules { } /** - * Modify properties of schedules. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of schedules. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, schedule: Models.ScheduleFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param callback The callback */ update(resourceGroupName: string, labName: string, userName: string, serviceFabricName: string, name: string, schedule: Models.ScheduleFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -253,10 +252,10 @@ export class ServiceFabricSchedules { /** * Execute a schedule. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param [options] The optional parameters * @returns Promise @@ -268,10 +267,10 @@ export class ServiceFabricSchedules { /** * Execute a schedule. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param serviceFabricName The name of the service Fabric. + * @param serviceFabricName The name of the service fabric. * @param name The name of the schedule. * @param [options] The optional parameters * @returns Promise @@ -296,7 +295,7 @@ export class ServiceFabricSchedules { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ServiceFabricSchedulesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -307,8 +306,8 @@ export class ServiceFabricSchedules { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ServiceFabricSchedulesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ServiceFabricSchedulesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -332,7 +331,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.serviceFabricName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -346,7 +344,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -364,7 +362,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -375,7 +372,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -413,7 +410,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -440,7 +437,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -475,7 +472,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -502,7 +499,7 @@ const beginExecuteOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -515,6 +512,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -523,7 +526,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabrics.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabrics.ts index 54257f84f509..785a2c98be91 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabrics.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabrics.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,7 +28,7 @@ export class ServiceFabrics { /** * List service fabrics in a given user profile. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param [options] The optional parameters @@ -37,14 +36,14 @@ export class ServiceFabrics { */ list(resourceGroupName: string, labName: string, userName: string, options?: Models.ServiceFabricsListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param callback The callback */ list(resourceGroupName: string, labName: string, userName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. * @param options The optional parameters @@ -65,27 +64,27 @@ export class ServiceFabrics { /** * Get service fabric. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, labName: string, userName: string, name: string, options?: Models.ServiceFabricsGetOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param callback The callback */ get(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param options The optional parameters * @param callback The callback */ @@ -105,10 +104,10 @@ export class ServiceFabrics { /** * Create or replace an existing Service Fabric. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param serviceFabric A Service Fabric. * @param [options] The optional parameters * @returns Promise @@ -120,10 +119,10 @@ export class ServiceFabrics { /** * Delete service fabric. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param [options] The optional parameters * @returns Promise */ @@ -133,31 +132,34 @@ export class ServiceFabrics { } /** - * Modify properties of service fabrics. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of service fabrics. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. - * @param serviceFabric A Service Fabric. + * @param name The name of the service fabric. + * @param serviceFabric Allows modifying tags of service fabrics. All other properties will be + * ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, labName: string, userName: string, name: string, serviceFabric: Models.ServiceFabricFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. - * @param serviceFabric A Service Fabric. + * @param name The name of the service fabric. + * @param serviceFabric Allows modifying tags of service fabrics. All other properties will be + * ignored. * @param callback The callback */ update(resourceGroupName: string, labName: string, userName: string, name: string, serviceFabric: Models.ServiceFabricFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. - * @param serviceFabric A Service Fabric. + * @param name The name of the service fabric. + * @param serviceFabric Allows modifying tags of service fabrics. All other properties will be + * ignored. * @param options The optional parameters * @param callback The callback */ @@ -178,27 +180,27 @@ export class ServiceFabrics { /** * Lists the applicable start/stop schedules, if any. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param [options] The optional parameters * @returns Promise */ listApplicableSchedules(resourceGroupName: string, labName: string, userName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param callback The callback */ listApplicableSchedules(resourceGroupName: string, labName: string, userName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param options The optional parameters * @param callback The callback */ @@ -218,10 +220,10 @@ export class ServiceFabrics { /** * Start a service fabric. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param [options] The optional parameters * @returns Promise */ @@ -232,10 +234,10 @@ export class ServiceFabrics { /** * Stop a service fabric This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param [options] The optional parameters * @returns Promise */ @@ -246,10 +248,10 @@ export class ServiceFabrics { /** * Create or replace an existing Service Fabric. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param serviceFabric A Service Fabric. * @param [options] The optional parameters * @returns Promise @@ -270,10 +272,10 @@ export class ServiceFabrics { /** * Delete service fabric. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param [options] The optional parameters * @returns Promise */ @@ -292,10 +294,10 @@ export class ServiceFabrics { /** * Start a service fabric. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param [options] The optional parameters * @returns Promise */ @@ -314,10 +316,10 @@ export class ServiceFabrics { /** * Stop a service fabric This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param userName The name of the user profile. - * @param name The name of the service Fabric. + * @param name The name of the service fabric. * @param [options] The optional parameters * @returns Promise */ @@ -340,7 +342,7 @@ export class ServiceFabrics { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ServiceFabricsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -351,8 +353,8 @@ export class ServiceFabrics { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ServiceFabricsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ServiceFabricsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -389,7 +391,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ServiceFabricList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -417,7 +419,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ServiceFabric }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -451,7 +453,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ServiceFabric }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -478,7 +480,7 @@ const listApplicableSchedulesOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApplicableSchedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -514,8 +516,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.ServiceFabric }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -542,7 +545,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -568,7 +571,7 @@ const beginStartOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -594,7 +597,7 @@ const beginStopOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -607,6 +610,13 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -615,7 +625,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ServiceFabricList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceRunners.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceRunners.ts index c4b933724cd7..b571077e6de4 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceRunners.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceRunners.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/serviceRunnersMappers"; import * as Parameters from "../models/parameters"; @@ -28,20 +28,20 @@ export class ServiceRunners { /** * List service runners in a given lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, options?: Models.ServiceRunnersListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param callback The callback */ list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback @@ -60,7 +60,7 @@ export class ServiceRunners { /** * Get service runner. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the service runner. * @param [options] The optional parameters @@ -68,14 +68,14 @@ export class ServiceRunners { */ get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the service runner. * @param callback The callback */ get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the service runner. * @param options The optional parameters @@ -95,34 +95,43 @@ export class ServiceRunners { } /** - * Create or replace an existing Service runner. - * @param resourceGroupName The name of the resource group. + * Create or replace an existing Service runner. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the service runner. * @param serviceRunner A container for a managed identity to execute DevTest lab services. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, labName: string, name: string, serviceRunner: Models.ServiceRunner, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, labName: string, name: string, serviceRunner: Models.ServiceRunner, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,labName,name,serviceRunner,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** - * @param resourceGroupName The name of the resource group. + * Delete service runner. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the service runner. - * @param serviceRunner A container for a managed identity to execute DevTest lab services. - * @param callback The callback + * @param [options] The optional parameters + * @returns Promise */ - createOrUpdate(resourceGroupName: string, labName: string, name: string, serviceRunner: Models.ServiceRunner, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,labName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** - * @param resourceGroupName The name of the resource group. + * Create or replace an existing Service runner. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the service runner. * @param serviceRunner A container for a managed identity to execute DevTest lab services. - * @param options The optional parameters - * @param callback The callback + * @param [options] The optional parameters + * @returns Promise */ - createOrUpdate(resourceGroupName: string, labName: string, name: string, serviceRunner: Models.ServiceRunner, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, labName: string, name: string, serviceRunner: Models.ServiceRunner, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + beginCreateOrUpdate(resourceGroupName: string, labName: string, name: string, serviceRunner: Models.ServiceRunner, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( { resourceGroupName, labName, @@ -130,44 +139,28 @@ export class ServiceRunners { serviceRunner, options }, - createOrUpdateOperationSpec, - callback) as Promise; + beginCreateOrUpdateOperationSpec, + options); } /** - * Delete service runner. - * @param resourceGroupName The name of the resource group. + * Delete service runner. This operation can take a while to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the service runner. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(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 service runner. - * @param callback The callback - */ - deleteMethod(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 service runner. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + beginDeleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( { resourceGroupName, labName, name, options }, - deleteMethodOperationSpec, - callback); + beginDeleteMethodOperationSpec, + options); } /** @@ -176,7 +169,7 @@ export class ServiceRunners { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ServiceRunnersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -187,8 +180,8 @@ export class ServiceRunners { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ServiceRunnersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ServiceRunnersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -223,7 +216,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ServiceRunnerList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -249,13 +242,13 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ServiceRunner }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer }; -const createOrUpdateOperationSpec: msRest.OperationSpec = { +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}", urlParameters: [ @@ -284,14 +277,15 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.ServiceRunner }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}", urlParameters: [ @@ -308,9 +302,10 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { ], responses: { 200: {}, + 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -323,6 +318,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -331,7 +332,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ServiceRunnerList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/sharedGalleries.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/sharedGalleries.ts new file mode 100644 index 000000000000..b763787921a9 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/sharedGalleries.ts @@ -0,0 +1,419 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sharedGalleriesMappers"; +import * as Parameters from "../models/parameters"; +import { DevTestLabsClientContext } from "../devTestLabsClientContext"; + +/** Class representing a SharedGalleries. */ +export class SharedGalleries { + private readonly client: DevTestLabsClientContext; + + /** + * Create a SharedGalleries. + * @param {DevTestLabsClientContext} client Reference to the service client. + */ + constructor(client: DevTestLabsClientContext) { + this.client = client; + } + + /** + * List shared galleries in a given lab. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, labName: string, options?: Models.SharedGalleriesListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param callback The callback + */ + list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, labName: string, options: Models.SharedGalleriesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.SharedGalleriesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get shared gallery. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param callback The callback + */ + get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or replace an existing Shared Gallery. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param sharedGallery Properties of a shared gallery + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, labName: string, name: string, sharedGallery: Models.SharedGallery, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param sharedGallery Properties of a shared gallery + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, labName: string, name: string, sharedGallery: Models.SharedGallery, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param sharedGallery Properties of a shared gallery + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, labName: string, name: string, sharedGallery: Models.SharedGallery, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, labName: string, name: string, sharedGallery: Models.SharedGallery, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + sharedGallery, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete shared gallery. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Allows modifying tags of shared galleries. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param sharedGallery Allows modifying tags of shared galleries. All other properties will be + * ignored. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, labName: string, name: string, sharedGallery: Models.SharedGalleryFragment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param sharedGallery Allows modifying tags of shared galleries. All other properties will be + * ignored. + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, name: string, sharedGallery: Models.SharedGalleryFragment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the shared gallery. + * @param sharedGallery Allows modifying tags of shared galleries. All other properties will be + * ignored. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, name: string, sharedGallery: Models.SharedGalleryFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, name: string, sharedGallery: Models.SharedGalleryFragment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + sharedGallery, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * List shared galleries in a given lab. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedGalleriesListNextOptionalParams): 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: Models.SharedGalleriesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleriesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGallery + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "sharedGallery", + mapper: { + ...Mappers.SharedGallery, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SharedGallery + }, + 201: { + bodyMapper: Mappers.SharedGallery + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "sharedGallery", + mapper: { + ...Mappers.SharedGalleryFragment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SharedGallery + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedGalleryList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/sharedImages.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/sharedImages.ts new file mode 100644 index 000000000000..1dbf5270bddd --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/sharedImages.ts @@ -0,0 +1,444 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sharedImagesMappers"; +import * as Parameters from "../models/parameters"; +import { DevTestLabsClientContext } from "../devTestLabsClientContext"; + +/** Class representing a SharedImages. */ +export class SharedImages { + private readonly client: DevTestLabsClientContext; + + /** + * Create a SharedImages. + * @param {DevTestLabsClientContext} client Reference to the service client. + */ + constructor(client: DevTestLabsClientContext) { + this.client = client; + } + + /** + * List shared images in a given shared gallery. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, labName: string, sharedGalleryName: string, options?: Models.SharedImagesListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param callback The callback + */ + list(resourceGroupName: string, labName: string, sharedGalleryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, labName: string, sharedGalleryName: string, options: Models.SharedImagesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, sharedGalleryName: string, options?: Models.SharedImagesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + sharedGalleryName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get shared image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, options?: Models.SharedImagesGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param callback The callback + */ + get(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, options: Models.SharedImagesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, options?: Models.SharedImagesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + sharedGalleryName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or replace an existing Shared Image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param sharedImage Properties of a shared image + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, sharedImage: Models.SharedImage, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param sharedImage Properties of a shared image + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, sharedImage: Models.SharedImage, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param sharedImage Properties of a shared image + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, sharedImage: Models.SharedImage, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, sharedImage: Models.SharedImage, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + sharedGalleryName, + name, + sharedImage, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete shared image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + sharedGalleryName, + name, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Allows modifying tags of shared images. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param sharedImage Allows modifying tags of shared images. All other properties will be ignored. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, sharedImage: Models.SharedImageFragment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param sharedImage Allows modifying tags of shared images. All other properties will be ignored. + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, sharedImage: Models.SharedImageFragment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param sharedGalleryName The name of the shared gallery. + * @param name The name of the shared image. + * @param sharedImage Allows modifying tags of shared images. All other properties will be ignored. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, sharedImage: Models.SharedImageFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, sharedGalleryName: string, name: string, sharedImage: Models.SharedImageFragment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + sharedGalleryName, + name, + sharedImage, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * List shared images in a given shared gallery. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.SharedImagesListNextOptionalParams): 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: Models.SharedImagesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedImagesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{sharedGalleryName}/sharedimages", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.sharedGalleryName + ], + queryParameters: [ + Parameters.expand, + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedImageList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{sharedGalleryName}/sharedimages/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.sharedGalleryName, + Parameters.name + ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedImage + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{sharedGalleryName}/sharedimages/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.sharedGalleryName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "sharedImage", + mapper: { + ...Mappers.SharedImage, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SharedImage + }, + 201: { + bodyMapper: Mappers.SharedImage + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{sharedGalleryName}/sharedimages/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.sharedGalleryName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{sharedGalleryName}/sharedimages/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.sharedGalleryName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "sharedImage", + mapper: { + ...Mappers.SharedImageFragment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SharedImage + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.expand, + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SharedImageList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/users.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/users.ts index 01a7d31f246d..9f8d0acd2245 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/users.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/users.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,20 +28,20 @@ export class Users { /** * List user profiles in a given lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, options?: Models.UsersListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param callback The callback */ list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback @@ -61,29 +60,29 @@ export class Users { /** * Get user profile. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the user profile. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, name: string, options?: Models.UsersGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the user profile. * @param callback The callback */ get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the user profile. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, name: string, options: Models.UsersGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, name: string, options?: Models.UsersGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -97,7 +96,7 @@ export class Users { /** * Create or replace an existing user profile. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the user profile. * @param user Profile of a lab user. @@ -111,7 +110,7 @@ export class Users { /** * Delete user profile. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the user profile. * @param [options] The optional parameters @@ -123,28 +122,28 @@ export class Users { } /** - * Modify properties of user profiles. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of user profiles. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the user profile. - * @param user Profile of a lab user. + * @param user Allows modifying tags of user profiles. All other properties will be ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, labName: string, name: string, user: Models.UserFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the user profile. - * @param user Profile of a lab user. + * @param user Allows modifying tags of user profiles. All other properties will be ignored. * @param callback The callback */ update(resourceGroupName: string, labName: string, name: string, user: Models.UserFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the user profile. - * @param user Profile of a lab user. + * @param user Allows modifying tags of user profiles. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -164,7 +163,7 @@ export class Users { /** * Create or replace an existing user profile. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the user profile. * @param user Profile of a lab user. @@ -186,7 +185,7 @@ export class Users { /** * Delete user profile. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the user profile. * @param [options] The optional parameters @@ -210,7 +209,7 @@ export class Users { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.UsersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -221,8 +220,8 @@ export class Users { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.UsersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.UsersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -244,7 +243,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.labName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -258,7 +256,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.UserList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -274,7 +272,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -285,7 +282,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.User }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -318,7 +315,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.User }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -353,8 +350,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.User }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -380,7 +378,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -393,6 +391,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -401,7 +405,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.UserList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachineSchedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachineSchedules.ts index 460b610bf6f9..20607e9f2e73 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachineSchedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachineSchedules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,7 +28,7 @@ export class VirtualMachineSchedules { /** * List schedules in a given virtual machine. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param [options] The optional parameters @@ -37,14 +36,14 @@ export class VirtualMachineSchedules { */ list(resourceGroupName: string, labName: string, virtualMachineName: string, options?: Models.VirtualMachineSchedulesListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param callback The callback */ list(resourceGroupName: string, labName: string, virtualMachineName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param options The optional parameters @@ -65,16 +64,16 @@ export class VirtualMachineSchedules { /** * Get schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, options?: Models.VirtualMachineSchedulesGetOptionalParams): Promise; + get(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. @@ -82,15 +81,15 @@ export class VirtualMachineSchedules { */ get(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, options: Models.VirtualMachineSchedulesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, options?: Models.VirtualMachineSchedulesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -105,7 +104,7 @@ export class VirtualMachineSchedules { /** * Create or replace an existing schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. @@ -115,7 +114,7 @@ export class VirtualMachineSchedules { */ createOrUpdate(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, schedule: Models.Schedule, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. @@ -124,7 +123,7 @@ export class VirtualMachineSchedules { */ createOrUpdate(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, schedule: Models.Schedule, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. @@ -149,7 +148,7 @@ export class VirtualMachineSchedules { /** * Delete schedule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. @@ -158,7 +157,7 @@ export class VirtualMachineSchedules { */ deleteMethod(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. @@ -166,7 +165,7 @@ export class VirtualMachineSchedules { */ deleteMethod(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. @@ -188,31 +187,31 @@ export class VirtualMachineSchedules { } /** - * Modify properties of schedules. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of schedules. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, schedule: Models.ScheduleFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param callback The callback */ update(resourceGroupName: string, labName: string, virtualMachineName: string, name: string, schedule: Models.ScheduleFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. - * @param schedule A schedule. + * @param schedule Allows modifying tags of schedules. All other properties will be ignored. * @param options The optional parameters * @param callback The callback */ @@ -233,7 +232,7 @@ export class VirtualMachineSchedules { /** * Execute a schedule. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. @@ -247,7 +246,7 @@ export class VirtualMachineSchedules { /** * Execute a schedule. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param virtualMachineName The name of the virtual machine. * @param name The name of the schedule. @@ -273,7 +272,7 @@ export class VirtualMachineSchedules { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.VirtualMachineSchedulesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -284,8 +283,8 @@ export class VirtualMachineSchedules { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.VirtualMachineSchedulesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.VirtualMachineSchedulesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -308,7 +307,6 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.virtualMachineName ], queryParameters: [ - Parameters.expand, Parameters.filter, Parameters.top, Parameters.orderby, @@ -322,7 +320,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -339,7 +337,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.name ], queryParameters: [ - Parameters.expand, Parameters.apiVersion ], headerParameters: [ @@ -350,7 +347,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -387,7 +384,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -413,7 +410,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -447,7 +444,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Schedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -473,7 +470,7 @@ const beginExecuteOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -486,6 +483,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -494,7 +497,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ScheduleList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachines.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachines.ts index dbe0b61786d7..c594835211d1 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachines.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,26 +28,26 @@ export class VirtualMachines { /** * List virtual machines in a given lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, options?: Models.VirtualMachinesListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 resourceGroupName The name of the resource group. The name is case insensitive. * @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, labName: string, options: Models.VirtualMachinesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, labName: string, options?: Models.VirtualMachinesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -61,7 +60,7 @@ export class VirtualMachines { /** * Get virtual machine. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -69,21 +68,21 @@ export class VirtualMachines { */ get(resourceGroupName: string, labName: string, name: string, options?: Models.VirtualMachinesGetOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param callback The callback */ - get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, labName: string, name: string, options: Models.VirtualMachinesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, labName: string, name: string, options?: Models.VirtualMachinesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, labName: string, name: string, options: Models.VirtualMachinesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, labName: string, name: string, options?: Models.VirtualMachinesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -97,21 +96,21 @@ export class VirtualMachines { /** * Create or replace an existing Virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. - * @param labVirtualMachine A virtual machine. + * @param virtualMachine A virtual machine. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, labName: string, name: string, labVirtualMachine: Models.LabVirtualMachine, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,labName,name,labVirtualMachine,options) + createOrUpdate(resourceGroupName: string, labName: string, name: string, virtualMachine: Models.VirtualMachine, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,labName,name,virtualMachine,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** * Delete virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -123,39 +122,42 @@ export class VirtualMachines { } /** - * Modify properties of virtual machines. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of virtual machines. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. - * @param labVirtualMachine A virtual machine. + * @param virtualMachine Allows modifying tags of virtual machines. All other properties will be + * ignored. * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, labName: string, name: string, labVirtualMachine: Models.LabVirtualMachineFragment, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, labName: string, name: string, virtualMachine: Models.VirtualMachineFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. - * @param labVirtualMachine A virtual machine. + * @param virtualMachine Allows modifying tags of virtual machines. All other properties will be + * ignored. * @param callback The callback */ - update(resourceGroupName: string, labName: string, name: string, labVirtualMachine: Models.LabVirtualMachineFragment, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, name: string, virtualMachine: Models.VirtualMachineFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. - * @param labVirtualMachine A virtual machine. + * @param virtualMachine Allows modifying tags of virtual machines. All other properties will be + * ignored. * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, labName: string, name: string, labVirtualMachine: Models.LabVirtualMachineFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, labName: string, name: string, labVirtualMachine: Models.LabVirtualMachineFragment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, labName: string, name: string, virtualMachine: Models.VirtualMachineFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, labName: string, name: string, virtualMachine: Models.VirtualMachineFragment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, labName, name, - labVirtualMachine, + virtualMachine, options }, updateOperationSpec, @@ -165,7 +167,7 @@ export class VirtualMachines { /** * Attach a new or existing data disk to virtual machine. This operation can take a while to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param dataDiskProperties Request body for adding a new or existing data disk to a virtual @@ -180,7 +182,7 @@ export class VirtualMachines { /** * Apply artifacts to virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param applyArtifactsRequest Request body for applying artifacts to a virtual machine. @@ -194,7 +196,7 @@ export class VirtualMachines { /** * Take ownership of an existing virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -205,9 +207,45 @@ export class VirtualMachines { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Clears the artifact results of the virtual machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + clearArtifactResults(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param callback The callback + */ + clearArtifactResults(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param labName The name of the lab. + * @param name The name of the virtual machine. + * @param options The optional parameters + * @param callback The callback + */ + clearArtifactResults(resourceGroupName: string, labName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + clearArtifactResults(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + labName, + name, + options + }, + clearArtifactResultsOperationSpec, + callback); + } + /** * Detach the specified disk from the virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param detachDataDiskProperties Request body for detaching data disk from a virtual machine. @@ -221,7 +259,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 resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -229,14 +267,14 @@ export class VirtualMachines { */ getRdpFileContents(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @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 resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param options The optional parameters @@ -257,7 +295,7 @@ export class VirtualMachines { /** * Lists the applicable start/stop schedules, if any. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -265,14 +303,14 @@ export class VirtualMachines { */ listApplicableSchedules(resourceGroupName: string, labName: string, name: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param callback The callback */ listApplicableSchedules(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param options The optional parameters @@ -293,7 +331,7 @@ export class VirtualMachines { /** * Redeploy a virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -306,7 +344,7 @@ export class VirtualMachines { /** * Resize Virtual Machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param resizeLabVirtualMachineProperties Request body for resizing a virtual machine. @@ -320,7 +358,7 @@ export class VirtualMachines { /** * Restart a virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -333,7 +371,7 @@ export class VirtualMachines { /** * Start a virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -346,7 +384,7 @@ export class VirtualMachines { /** * Stop a virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -360,7 +398,7 @@ export class VirtualMachines { /** * 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 resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -373,7 +411,7 @@ export class VirtualMachines { /** * Release ownership of an existing virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -386,20 +424,20 @@ export class VirtualMachines { /** * Create or replace an existing Virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. - * @param labVirtualMachine A virtual machine. + * @param virtualMachine A virtual machine. * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, labName: string, name: string, labVirtualMachine: Models.LabVirtualMachine, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, labName: string, name: string, virtualMachine: Models.VirtualMachine, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, labName, name, - labVirtualMachine, + virtualMachine, options }, beginCreateOrUpdateOperationSpec, @@ -408,7 +446,7 @@ export class VirtualMachines { /** * Delete virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -429,7 +467,7 @@ export class VirtualMachines { /** * Attach a new or existing data disk to virtual machine. This operation can take a while to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param dataDiskProperties Request body for adding a new or existing data disk to a virtual @@ -452,7 +490,7 @@ export class VirtualMachines { /** * Apply artifacts to virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param applyArtifactsRequest Request body for applying artifacts to a virtual machine. @@ -474,7 +512,7 @@ export class VirtualMachines { /** * Take ownership of an existing virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -494,7 +532,7 @@ export class VirtualMachines { /** * Detach the specified disk from the virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param detachDataDiskProperties Request body for detaching data disk from a virtual machine. @@ -516,7 +554,7 @@ export class VirtualMachines { /** * Redeploy a virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -536,7 +574,7 @@ export class VirtualMachines { /** * Resize Virtual Machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param resizeLabVirtualMachineProperties Request body for resizing a virtual machine. @@ -558,7 +596,7 @@ export class VirtualMachines { /** * Restart a virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -578,7 +616,7 @@ export class VirtualMachines { /** * Start a virtual machine. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -598,7 +636,7 @@ export class VirtualMachines { /** * Stop a virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -619,7 +657,7 @@ export class VirtualMachines { /** * 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 resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -639,7 +677,7 @@ export class VirtualMachines { /** * Release ownership of an existing virtual machine This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual machine. * @param [options] The optional parameters @@ -663,19 +701,19 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.VirtualMachinesListNextOptionalParams): Promise; /** * @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.VirtualMachinesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.VirtualMachinesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -708,10 +746,10 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.LabVirtualMachineList + bodyMapper: Mappers.VirtualMachineList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -735,10 +773,10 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.LabVirtualMachine + bodyMapper: Mappers.VirtualMachine }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -760,18 +798,42 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "labVirtualMachine", + parameterPath: "virtualMachine", mapper: { - ...Mappers.LabVirtualMachineFragment, + ...Mappers.VirtualMachineFragment, required: true } }, responses: { 200: { - bodyMapper: Mappers.LabVirtualMachine + bodyMapper: Mappers.VirtualMachine }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const clearArtifactResultsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/clearArtifactResults", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.labName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -797,7 +859,7 @@ const getRdpFileContentsOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.RdpConnection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -823,7 +885,7 @@ const listApplicableSchedulesOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApplicableSchedule }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -845,21 +907,22 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "labVirtualMachine", + parameterPath: "virtualMachine", mapper: { - ...Mappers.LabVirtualMachine, + ...Mappers.VirtualMachine, required: true } }, responses: { 200: { - bodyMapper: Mappers.LabVirtualMachine + bodyMapper: Mappers.VirtualMachine }, 201: { - bodyMapper: Mappers.LabVirtualMachine + bodyMapper: Mappers.VirtualMachine }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -885,7 +948,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -917,7 +980,7 @@ const beginAddDataDiskOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -949,7 +1012,7 @@ const beginApplyArtifactsOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -974,7 +1037,7 @@ const beginClaimOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1006,7 +1069,7 @@ const beginDetachDataDiskOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1031,7 +1094,7 @@ const beginRedeployOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1063,7 +1126,7 @@ const beginResizeOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1088,7 +1151,7 @@ const beginRestartOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1113,7 +1176,7 @@ const beginStartOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1138,7 +1201,7 @@ const beginStopOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1163,7 +1226,7 @@ const beginTransferDisksOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1188,7 +1251,7 @@ const beginUnClaimOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1201,15 +1264,22 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.LabVirtualMachineList + bodyMapper: Mappers.VirtualMachineList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualNetworks.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualNetworks.ts index 2529fd5ec8a0..e64d2b1e9356 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualNetworks.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualNetworks.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,20 +28,20 @@ export class VirtualNetworks { /** * List virtual networks in a given lab. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, labName: string, options?: Models.VirtualNetworksListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param callback The callback */ list(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param options The optional parameters * @param callback The callback @@ -61,7 +60,7 @@ export class VirtualNetworks { /** * Get virtual network. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual network. * @param [options] The optional parameters @@ -69,14 +68,14 @@ export class VirtualNetworks { */ get(resourceGroupName: string, labName: string, name: string, options?: Models.VirtualNetworksGetOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual network. * @param callback The callback */ get(resourceGroupName: string, labName: string, name: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual network. * @param options The optional parameters @@ -97,7 +96,7 @@ export class VirtualNetworks { /** * Create or replace an existing virtual network. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual network. * @param virtualNetwork A virtual network. @@ -111,7 +110,7 @@ export class VirtualNetworks { /** * Delete virtual network. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual network. * @param [options] The optional parameters @@ -123,28 +122,31 @@ export class VirtualNetworks { } /** - * Modify properties of virtual networks. - * @param resourceGroupName The name of the resource group. + * Allows modifying tags of virtual networks. All other properties will be ignored. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual network. - * @param virtualNetwork A virtual network. + * @param virtualNetwork Allows modifying tags of virtual networks. All other properties will be + * ignored. * @param [options] The optional parameters * @returns Promise */ update(resourceGroupName: string, labName: string, name: string, virtualNetwork: Models.VirtualNetworkFragment, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual network. - * @param virtualNetwork A virtual network. + * @param virtualNetwork Allows modifying tags of virtual networks. All other properties will be + * ignored. * @param callback The callback */ update(resourceGroupName: string, labName: string, name: string, virtualNetwork: Models.VirtualNetworkFragment, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual network. - * @param virtualNetwork A virtual network. + * @param virtualNetwork Allows modifying tags of virtual networks. All other properties will be + * ignored. * @param options The optional parameters * @param callback The callback */ @@ -164,7 +166,7 @@ export class VirtualNetworks { /** * Create or replace an existing virtual network. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual network. * @param virtualNetwork A virtual network. @@ -186,7 +188,7 @@ export class VirtualNetworks { /** * Delete virtual network. This operation can take a while to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab. * @param name The name of the virtual network. * @param [options] The optional parameters @@ -210,7 +212,7 @@ export class VirtualNetworks { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.VirtualNetworksListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -221,8 +223,8 @@ export class VirtualNetworks { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.VirtualNetworksListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.VirtualNetworksListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -258,7 +260,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.VirtualNetworkList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -285,7 +287,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.VirtualNetwork }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -318,7 +320,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.VirtualNetwork }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -353,8 +355,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.VirtualNetwork }, + 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -380,7 +383,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -393,6 +396,13 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.filter, + Parameters.top, + Parameters.orderby, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -401,7 +411,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.VirtualNetworkList }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/devtestlabs/arm-devtestlabs/tsconfig.json b/sdk/devtestlabs/arm-devtestlabs/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/devtestlabs/arm-devtestlabs/tsconfig.json +++ b/sdk/devtestlabs/arm-devtestlabs/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true